Skip to main content
Package: com.phoenix_int.aserver.client Class Hierarchy
Declaration
This class automates communications with ModelCenter Remote Execution. Communication can be performed asynchronously or synchronously. Synchronous communication is performed by calling any of the direct access functions, e.g. start() or listProperties(). Asynchronous communication is performed by calling a sendXXXRequest() function and then calling the matching getXXXResponse() when the response is ready. Listener methods are provided for notification of responses. Sample Usage:

Field Summary

Constructor Summary

Method Summary

Methods inherited from class java.lang.Object

clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail

START_REQUEST

Deprecated. See Also:

END_REQUEST

Deprecated. See Also:

GET_REQUEST

Deprecated. See Also:

SET_REQUEST

Deprecated. See Also:

LIST_REQUEST

Deprecated. See Also:

LIST_CLASSES_REQUEST

Deprecated. See Also:

LIST_PROPERTIES_REQUEST

Deprecated. See Also:

LIST_CATEGORIES_REQUEST

Deprecated. See Also:

EXECUTE_REQUEST

Deprecated. See Also:

DESCRIBE_REQUEST

Deprecated. See Also:

GET_ICON_REQUEST

Deprecated. See Also:

LIST_VALUES_REQUEST

Deprecated. See Also:

LIST_ARRAY_VALUES_REQUEST

Deprecated. See Also:

LIST_METHODS_REQUEST

Deprecated. See Also:

INVOKE_REQUEST

Deprecated. See Also:

ADD_PROXY_CLIENTS_REQUEST

Deprecated. See Also:

HISTORY_REQUEST

Deprecated. See Also:

GET_BY_URL_REQUEST

Deprecated. See Also:

GET_HIERARCHY_REQUEST

Deprecated. See Also:

SET_HIERARCHY_REQUEST

Deprecated. See Also:

DELETE_RUN_SHARE_REQUEST

Deprecated. See Also:

SET_DICTIONARY_REQUEST

Deprecated. See Also:

SET_BY_URL_REQUEST

Deprecated. See Also:

ARBITRARY_REQUEST

Deprecated. See Also:

LIST_VALUES_URL_REQUEST

Deprecated. See Also:

Constructor Detail

PHXAnalysisClient

Deprecated.

PHXAnalysisClient

Deprecated. Parameters:
  • host - the MCRE host to connect to, or the full URL style host specification (mcre://hostname:port)
Throws:
  • java.io.IOException - thrown if a connection cannot be established
  • java.net.UnknownHostException - thrown if the host does not match a valid host

PHXAnalysisClient

Deprecated. Parameters:
  • host - the MCRE host to connect to
  • port - the port to use for the MCRE (default is 1835)
Throws:
  • java.io.IOException - thrown if a connection cannot be established
  • java.net.UnknownHostException - thrown if the host does not match a valid host

PHXAnalysisClient

Deprecated. Parameters:
  • host - the MCRE host to connect to
  • port - the port to use for the MCRE (default is 1835)
  • timeout - the number of seconds to wait during the connect
Throws:
  • java.io.IOException - thrown if a connection cannot be established
  • java.net.UnknownHostException - thrown if the host does not match a valid host

PHXAnalysisClient

Deprecated. Parameters:
  • host - the MCRE host to connect to
  • timeout - the number of seconds to wait during the connect
  • username
  • password
Throws:
  • java.io.IOException - thrown if a connection cannot be established
  • java.net.UnknownHostException - thrown if the host does not match a valid host

Method Detail

connect

Deprecated. connects to MCRE on the specified host Parameters:
  • host - MCRE host to connect to, or the full URL style host specification (mcre://hostname:port)
Throws:
  • java.io.IOException - thrown if a connection cannot be established
  • java.net.UnknownHostException - thrown if the host does not match a valid host

connectURL

Deprecated. connects to MCRE using the specified URL, such as mcre://hostname. Parameters:
  • url - MCRE URL style host specification (mcre://hostname:port). May include path part, which will be ignored.
Throws:
  • java.io.IOException - thrown if a connection cannot be established
  • java.net.UnknownHostException - thrown if the host does not match a valid host
  • java.net.URISyntaxException

connectURL

Deprecated. connects to ModelCenter Remote Execution using the specified URL, such as mcre://hostname. Note that if you are using mcre+local style connections, you must have previously instantiated MCRE Engine as described in connectLocal(). Parameters:
  • url - MCRE URL style host specification (mcre://hostname:port). May include path part, which will be ignored.
Throws:
  • java.io.IOException - thrown if a connection cannot be established
  • java.net.UnknownHostException - thrown if the host does not match a valid host
  • java.net.URISyntaxException

connectLocal

Deprecated. Makes a virtual connection to ModelCenter Remote Execution inside of this process. MCRE must have been previously instantiated using this method:
Throws:
  • java.io.IOException - thrown if a connection cannot be established

connectLocal

Deprecated. Makes a virtual connection to the MCRE inside of this process. MCRE must have been previously instantiated using this method:
Throws:
  • java.io.IOException - thrown if a connection cannot be established

connectProcess

Deprecated. Makes a virtual connection to MCRE by calling a new java process. MCRE must have been previously instantiated using this method:
Throws:
  • java.io.IOException - thrown if a connection cannot be established

connect

Deprecated. connects to MCRE on the specified host Parameters:
  • host - MCRE host to connect to
  • port - the port to use for MCRE (default is 1835)
Throws:
  • java.io.IOException - thrown if a connection cannot be established
  • java.net.UnknownHostException - thrown if the host does not match a valid host

connect

Deprecated. connects to MCRE on the specified host Parameters:
  • host - MCRE host to connect to
  • port - the port to use for MCRE (default is 1835)
  • useSSL - Whether to connect using SSL
Throws:
  • java.io.IOException - thrown if a connection cannot be established
  • java.net.UnknownHostException - thrown if the host does not match a valid host

connectExternal

Deprecated. connects to MCRE via external tool Parameters:
  • host - MCRE host to connect to
  • timeout - the number of seconds to wait during the connect
  • username - the username to use in the external tool
  • password - the password to use in the external tool
Throws:
  • java.io.IOException - thrown if a connection cannot be established
  • java.net.UnknownHostException - thrown if the host does not match a valid host

connect

Deprecated. connects to MCRE on the specified host Parameters:
  • host - MCRE host to connect to
  • port - the port to use for MCRE (default is 1835)
  • useSSL - Whether to connect using SSL
  • timeout - the number of seconds to wait during the connect
Throws:
  • java.io.IOException - thrown if a connection cannot be established
  • java.net.UnknownHostException - thrown if the host does not match a valid host

connect

Deprecated. connects to MCRE on the specified host Parameters:
  • host - MCRE host to connect to
  • port - the port to use for MCRE (default is 1835)
  • useSSL - Whether to connect using SSL
  • timeout - the number of seconds to wait during the connect
  • username - the username for authentication
  • password - the password for authentication
Throws:
  • java.io.IOException - thrown if a connection cannot be established
  • java.net.UnknownHostException - thrown if the host does not match a valid host

handleLogin

Deprecated. Throws:
  • java.io.IOException

isConnected

Deprecated. determines if the client is currently connected to a server Returns:
  • true if currently connected

setDeleteDFT

Deprecated. Set whether the analysis client should auto-delete Direct File Transfer run shares or not

getHostName

Deprecated. retrieves the host name of the server Returns:
  • the host name, or “not connected” if not currently connected to the server

close

Deprecated. closes the connection to the server

finalize

Deprecated. Overrides:
  • finalize in class java.lang.Object
Throws:
  • java.lang.Throwable

addListener

Deprecated. adds a listener Parameters:
  • l - the listener

removeListener

Deprecated. removes a listener Parameters:
  • l - the listener

isResponseReady

Deprecated. indicates whether a response is ready Parameters:
  • id - the id of the response
Returns:
  • true if the response is ready

sendStartRequest

Deprecated. sends a request to start an analysis Parameters:
  • analysis - the analysis to start
  • instanceName - the name for the analysis
Returns:
  • the id for the response

getStartResponse

Deprecated. retrieves a response from the server Parameters:
  • id - the id for the response
  • wait - if true, the function blocks until the response is ready
Returns:
  • the response from the server
Throws:

start

Deprecated. starts an analysis Parameters:
  • analysis - the snalyais to start
  • instanceName - the name for the analysis
Returns:
  • the response from the server
Throws:
  • PHXServerSideException - thrown if something goes wrong. The exception message will contain the response from the server

sendEndRequest

Deprecated. sends a request to end an analysis Parameters:
  • analysis - the analysis to start
Returns:
  • the id for the response

getEndResponse

Deprecated. retrieves a response from the server Parameters:
  • id - the id for the response
  • wait - if true, the function blocks until the response is ready
Returns:
  • the response from the server
Throws:

end

Deprecated. ends an analysis Parameters:
  • analysis - the snalyais to end
Returns:
  • the response from the server
Throws:
  • PHXServerSideException - thrown if something goes wrong. The exception message will contain the response from the server

sendListClassesRequest

Deprecated. sends a request to list the classes Parameters:
  • category - the category to search. If null, then the root category is searched
Returns:
  • the id for the response

getListClassesResponse

Deprecated. retrieves a response from the server Parameters:
  • id - the id for the response
  • wait - if true, the function blocks until the response is ready
Returns:
  • an array of classes
Throws:

listClasses

Deprecated. lists the classes within a category Parameters:
  • category - the category to search. If null, then the root category is searched
Returns:
  • an array of classes
Throws:
  • PHXServerSideException - thrown if something goes wrong. The exception message will contain the response from the server

sendExecuteRequest

Deprecated. sends a request to execute an analysis Parameters:
  • analysis - the analysis to execute
Returns:
  • the id for the response

getExecuteResponse

Deprecated. retrieves a response from the server Parameters:
  • id - the id for the response
  • wait - if true, the function blocks until the response is ready
Returns:
  • the response from the server
Throws:

execute

Deprecated. exectutes an analysis Parameters:
  • analysis - the analyais to start
Returns:
  • the response from the server
Throws:
  • PHXServerSideException - thrown if something goes wrong. The exception message will contain the response from the server

sendAddProxyClientsRequest

Deprecated. Tells the server to add other hosts as part of the proxy chain Parameters:
  • clients - The comma separated list of hosts
Returns:
  • the id for the response

getAddProxyClientsResponse

Deprecated. retrieves a response from the server Parameters:
  • id - the id for the response
  • wait - if true, the function blocks until the response is ready
Returns:
  • the response from the server
Throws:

addProxyClients

Deprecated. Tells the server to add other hosts as part of the proxy chain Parameters:
  • clients - The comma separated list of hosts
Returns:
  • the response from the server
Throws:
  • PHXServerSideException - thrown if something goes wrong. The exception message will contain the response from the server

sendGetRequest

Deprecated. sends a request to get the value of a property Parameters:
  • property - the property to retrieve a value for
Returns:
  • the id for the response

getGetResponse

Deprecated. retrieves a response from the server Parameters:
  • id - the id for the response
  • wait - if true, the function blocks until the response is ready
Returns:
  • the value of the property
Throws:

getGetResponse2

Deprecated. retrieves a response from the server Parameters:
  • id - the id for the response
  • wait - if true, the function blocks until the response is ready
Returns:
  • the value of the property
Throws:

get

Deprecated. get the value of a property Parameters:
  • property - the property to retrieve a value for
Returns:
  • the value of the property
Throws:

get2

Deprecated. get the value of a property Parameters:
  • property - the property to retrieve a value for
Returns:
  • the value of the property
Throws:

sendGetByUrlRequest

Deprecated. sends a request to get the value of a property Parameters:
  • url - The url requested
Returns:
  • the id for the response

getGetByUrlResponse

Deprecated. retrieves a response from the server Parameters:
  • id - the id for the response
  • wait - if true, the function blocks until the response is ready
Returns:
  • the value of the property
Throws:

getByUrl

Deprecated. get the value of a property Parameters:
  • url - the url to get the file contents of
Returns:
  • the contents of the file
Throws:

sendSetByUrlRequest

Deprecated. sends a request to get the value of a property Parameters:
  • url - The url requested
Returns:
  • the id for the response

getSetByUrlResponse

Deprecated. retrieves a response from the server Parameters:
  • id - the id for the response
  • wait - if true, the function blocks until the response is ready
Returns:
  • the value of the property
Throws:

setByUrl

Deprecated. set the value of a variable Parameters:
  • varName - the variable to set
  • url - the url to set the variable at
Throws:
  • PHXServerSideException - thrown if something goes wrong. The exception message will contain the response from the server

sendSetRequest

Deprecated. sends a request to set the value of a property Parameters:
  • property - the property to retrieve a value for
Returns:
  • the id for the response

getSetResponse

Deprecated. retrieves a response from the server Parameters:
  • id - the id for the response
  • wait - if true, the function blocks until the response is ready
Returns:
  • the response from the server
Throws:

set

Deprecated. set the value of a property Parameters:
  • property - the property to retrieve a value for
  • value - the value of the property
Returns:
  • the response from the server
Throws:

sendGetComponentHistoryRequest

Deprecated. sends a request to get the version history of a component Parameters:
  • analysis - the analysis to query
Returns:
  • the id for the response

getGetComponentHistoryResponse

Deprecated. retrieves a response from the server Parameters:
  • id - the id for the response
  • wait - if true, the function blocks until the response is ready
Returns:
  • a description object for the analysis
Throws:

getComponentHistory

Deprecated. Gets the component history for a particular component. Parameters:
  • analysis - The full path to the component
Returns:
  • The top level branch object which represents the main development branch.
Throws:

sendDescribeRequest

Deprecated. sends a request to describe an analysis Parameters:
  • analysis - the analysis to start
Returns:
  • the id for the response

getDescribeResponse

Deprecated. retrieves a response from the server Parameters:
  • id - the id for the response
  • wait - if true, the function blocks until the response is ready
Returns:
  • a description object for the analysis
Throws:

describe

Deprecated. describes an analysis Parameters:
  • analysis - the full path to the component
Returns:
  • a description object
Throws:
  • PHXServerSideException - thrown if something goes wrong. The exception message will contain the response from the server

sendListPropertiesRequest

Deprecated. sends a request to list the properties of an analysis Parameters:
  • analysis - the analysis to query
Returns:
  • the id for the response

getListPropertiesResponse

Deprecated. retrieves a response from the server Parameters:
  • id - the id for the response
  • wait - if true, the function blocks until the response is ready
Returns:
  • a property descriptor object for the analysis
Throws:

listProperties

Deprecated. lists the properties of an analysis Parameters:
  • analysis - the analyais to list properties for
Returns:
  • a property descriptor for the object
Throws:
  • PHXServerSideException - thrown if something goes wrong. The exception message will contain the response from the server

sendListMethodsRequest

Deprecated. sends a request to list the methods of an analysis Parameters:
  • analysis - the analysis to query
Returns:
  • the id for the response

getListMethodsResponse

Deprecated. retrieves a response from the server Parameters:
  • id - the id for the response
  • wait - if true, the function blocks until the response is ready
Returns:
  • a property descriptor object for the analysis
Throws:

listMethods

Deprecated. lists the methods of an analysis Parameters:
  • analysis - the analyais to list methods for
Returns:
  • an array of method descriptors for the object
Throws:
  • PHXServerSideException - thrown if something goes wrong. The exception message will contain the response from the server

sendInvokeRequest

Deprecated. sends a request to invoke a method Parameters:
  • method - the method to invoke
Returns:
  • the id for the response

getInvokeResponse

Deprecated. retrieves a response from the server Parameters:
  • id - the id for the response
  • wait - if true, the function blocks until the response is ready
Returns:
  • the value of the property
Throws:

invoke

Deprecated. invokes a method Parameters:
  • method - the method to invoke
Returns:
  • the results of the invocation
Throws:
  • PHXServerSideException - thrown if something goes wrong. The exception message will contain the response from the server

sendListValuesRequest

Deprecated.

sendListValuesURLRequest

Deprecated.

getListValuesResponse

Deprecated. Throws:
  • PHXResponseTypeMismatchException
  • PHXNoSuchResponseException
  • PHXServerSideException
  • java.io.IOException
  • java.lang.NumberFormatException

listValues

Deprecated. Throws:
  • PHXServerSideException
  • java.io.IOException

sendListArrayValuesRequest

Deprecated.

getListArrayValuesResponse

Deprecated. Throws:
  • PHXResponseTypeMismatchException
  • PHXNoSuchResponseException

listArrayValues

Deprecated. Throws:

sendListCategoriesRequest

Deprecated. sends a request to list the categories Parameters:
  • category - the category to search. If null, then the root category is searched
Returns:
  • the id for the response

getListCategoriesResponse

Deprecated. retrieves a response from the server Parameters:
  • id - the id for the response
  • wait - if true, the function blocks until the response is ready
Returns:
  • an array of categories
Throws:

listCategories

Deprecated. lists the categories within a category Parameters:
  • category - the category to search. If null, then the root category is searched
Returns:
  • an array of categories
Throws:
  • PHXServerSideException - thrown if something goes wrong. The exception message will contain the response from the server

sendListRequest

Deprecated. sends a request to list the running objects Returns:
  • the id for the response

getListResponse

Deprecated. retrieves a response from the server Parameters:
  • id - the id for the response
  • wait - if true, the function blocks until the response is ready
Returns:
  • an array of objects
Throws:

list

Deprecated. lists the running objects Returns:
  • an array of objects
Throws:
  • PHXServerSideException - thrown if something goes wrong. The exception message will contain the response from the server

sendGetHierarchyRequest

Deprecated. sends a request to retrieve a hierarchy for a component Parameters:
  • analysis - the analysis class to retrieve the icon for
Returns:
  • the id for the response

sendGetHierarchyRequest

Deprecated. sends a request to retrieve a hierarchy for a component Parameters:
  • analysis - the analysis class to retrieve the icon for
  • fileMode - how to retrieve files
Returns:
  • the id for the response

getGetHierarchyResponse

Deprecated. retrieves a response from the server Parameters:
  • id - the id for the response
  • wait - if true, the function blocks until the response is ready
Returns:
  • an icon Image
Throws:

getHierarchy

Deprecated. retrievethe hierarchy for the component Parameters:
  • analysis - the analysis class to retrieve the icon for
Returns:
  • the string buffer containing the hierarchy
Throws:
  • PHXServerSideException - thrown if something goes wrong. The exception message will contain the response from the server

sendSetHierarchyRequest

Deprecated. Sends a request to set a hierarchy for a component Parameters:
  • analysis - the analysis object or parameter name to set data into
  • xml - The XML data structure containing the data to be set.
Returns:
  • the id for the response

getSetHierarchyResponse

Deprecated. retrieves a response from the server Parameters:
  • id - the id for the response
  • wait - if true, the function blocks until the response is ready
Returns:
  • the result from the server
Throws:

setHierarchy

Deprecated. Sends a request to set a hierarchy for a component Parameters:
  • analysis - the analysis object or parameter name to set data into
  • xml - The XML data structure containing the data to be set.
Returns:
  • the result from the server
Throws:
  • PHXServerSideException - thrown if something goes wrong. The exception message will contain the response from the server

sendDeleteRunShareRequest

Deprecated. Sends a request to delete a runShare Parameters:
  • key - the key for the runShare to delete
Returns:
  • the id for the response

getDeleteRunShareResponse

Deprecated. retrieves a response from the server Parameters:
  • id - the id for the response
  • wait - if true, the function blocks until the response is ready
Returns:
  • the result from the server
Throws:

deleteRunShare

Deprecated. Handle cleaning up a runShare in a local client Throws:
  • PHXServerSideException

sendGetIconRequest

Deprecated. sends a request to retrieve an icon Parameters:
  • analysis - the analysis class to retrieve the icon for
Returns:
  • the id for the response

getGetIconResponse

Deprecated. retrieves a response from the server Parameters:
  • id - the id for the response
  • wait - if true, the function blocks until the response is ready
Returns:
  • an icon Image
Throws:

getIcon

Deprecated. retrieves an icon for an analysis Parameters:
  • analysis - the analysis class to retrieve the icon for
Returns:
  • an icon Image
Throws:
  • PHXServerSideException - thrown if something goes wrong. The exception message will contain the response from the server

sendSetDictionaryRequest

Deprecated. sends a request to set a dictionary Parameters:
  • dictionary - the desired dictionary
Returns:
  • the id for the response

getSetDictionaryResponse

Deprecated. retrieves a response from the server Parameters:
  • id - the id for the response
  • wait - if true, the function blocks until the response is ready
Returns:
  • an icon Image
Throws:

setDictionary

Deprecated. Tries to set the dictionary by sending a set dictionary request. Parameters:
  • dictionary - the desired dictionary
Returns:
  • the response from the server, or a blank string for invalid responses
Throws:
  • PHXServerSideException - thrown if something goes wrong. The exception message will contain the response from the server

sendArbitraryRequest

Deprecated. sends an arbitrary request to the server Parameters:
  • request - MCRE api command to send
Returns:
  • the id for the response

sendArbitraryRequest

Deprecated. sends an arbitrary request to the server Parameters:
  • request - MCRE api command to send
Returns:
  • the id for the response

getResponseAsText

Deprecated. retrieves a low-level response from the server in String format. Parameters:
  • id - the id for the response
  • type - the type of response to expect.
  • wait - if true, the function blocks until the response is ready
Returns:
  • the value of the property
Throws:

getResponseAsPHXStringBuffer

Deprecated. retrieves a low-level response from the server in String format. Parameters:
  • id - the id for the response
  • type - the type of response to expect.
  • wait - if true, the function blocks until the response is ready
Returns:
  • the value of the property
Throws:

main

Deprecated.