News, Events, Conferences, What's New About, Partners, Jobs Phone, E-mail, Address, Location Free Evaluation


home
products
product videos
customer support


Resources
Frequently Asked Questions

Major API Changes from PCRE v2.4 to v2.6/3.6

Download PDF version of this faq: 2_4 to 2_6/3.6 API_Changes.pdf

“Load Balancer Class” and all the associated methods of that class. This class is completely new to version 2.6.

  1. getConnectedClient( )
    Returns a reference to a connected PCREApplicationClient object using the default load channel name "pcre_loadbalancer_p" and the default load balancing algorithm of load-factor.
  2. getConnectedClient(int Algorithm)
    Returns a reference to a connected PCREApplicationClient object using the default load channel name "pcre_loadbalancer_p" and the supplied algorithm constant.
  3. getConnectedClient(java.lang.String chnlName)
    Returns a reference to a connected PCREApplicationClient object using the supplied channel name and the default load balancing algorithm of load-factor.
  4. getConnectedClient(java.langString channel, int algorithm)
    Returns a reference to a connected PCREApplicationClient object using the supplied channel name and the supplied algorithm constant.
Various improvements and convenience methods were added to "PCREJob" Class. Listing of these methods:
  1. OutputToExcel(int formatType, java.lang.String excelFileName)
    Convenience method for exporting to Excel format type, it is effectively the same as ExportToExcel and ExportTo
  2. OutputToHTML (int formatType, java.lang.String htmlFileName)
    Convenience method for exporting to HTML format type, it is effectively the same as ExportToHTML and ExportTo
  3. OutputToWord(int formatType, java.lang.String wordFileName )
    Convenience method for exporting to Microsoft Word format type, it is effectively the same as ExportToWord and ExportTo
  4. SetPrivateData
    This method existed in 2.4, however in 2.5 additional functionality was added to this method by overloading this function. In 2.5 this method can now read an XML file from the file system and set private data to the table. (Please refer to the Java API Quick Reference for more detailed information)
  5. SetNthParameterValue(int paramN, java.lang.String value)
    Set the nth parameter field in this job's report by passing a String which will be converted to the appropriate type.
  6. GetParameterValue(java.lang.String parameterName)
    Get the value of a named parameter field. This function replaces the usual GetNParameterFields( ), GetNthParameterValue( ) sequence of calls.
  7. GetNthParameterValue
    Get the value of the nth parameter field in this job's report as a string regardless of data type.
  8. SetParameterValue (java.lang.String parameterName, java.lang. StringparameterValue)
    These are new functions added that take and return strings as inputs. Earlier these were difficult to use and required the "PCREParameterFieldInfo Class" and had to use earlier methods ( 2.4 ) GetParameterField( ).
  9. SetJobTitle( ) is a new API added that can be used to log any custom string to the server.log file so that it can be used by someone reviewing the logs to match a server log entry with a responsible party. E.g. SetJobTitle(“Joe Smith, Marketing Dept. ext. 5533”)
  10. Set/GetParameterPickListOption( )
    Used to set information regarding the pick list for parameters.
  11. Set/GetNthParameterValueDescripton( )
    Used to obtain the descriptive text for a parameter.
  12. Get/SetGraphAxisInfo( )
    Used to obtain information regarding the axis of the graph.
  13. Get/SetGraphFontInfo( )
    Used to obtain information regarding the font for the specified part of the graph such as the subtitle font.
  14. Get/SetGraphOptionInfo( )
    Used to obtain information regarding various graph properties such as graph type, legend position, etc.
  15. Get/SetGraphTextInfo( )
    Used to get the text for various elements of the graph such as the subtitle etc.
  16. Get/SetGraphTypeinfo( )
    Used to obtain infomation on the type of graph which will be displayed. such as bar graph, line graph etc.

The following methods have been removed from the PCREJob class: Please note that application programs that use graphing will have to make changes to their code to include and shift to the Graphing API’s listed above.

  1. Get/Set GraphData
  2. Get/SetGraphOptions
  3. Get/SetGraphText
  4. Get/SetGraphType

**Note that all COM API changes are similar to the ones listed for the Java API

BACK TO TOP
BACK TO START

© 2000-2001 Dynalivery Corporation
formerly Mobile Application Servers, Inc.