com.phoenix_int.aserver.client
Class Hierarchy
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
END_REQUEST
GET_REQUEST
SET_REQUEST
LIST_REQUEST
LIST_CLASSES_REQUEST
LIST_PROPERTIES_REQUEST
LIST_CATEGORIES_REQUEST
EXECUTE_REQUEST
DESCRIBE_REQUEST
GET_ICON_REQUEST
LIST_VALUES_REQUEST
LIST_ARRAY_VALUES_REQUEST
LIST_METHODS_REQUEST
INVOKE_REQUEST
ADD_PROXY_CLIENTS_REQUEST
HISTORY_REQUEST
GET_BY_URL_REQUEST
GET_HIERARCHY_REQUEST
SET_HIERARCHY_REQUEST
DELETE_RUN_SHARE_REQUEST
SET_DICTIONARY_REQUEST
SET_BY_URL_REQUEST
ARBITRARY_REQUEST
LIST_VALUES_URL_REQUEST
Constructor Detail
PHXAnalysisClient
PHXAnalysisClient
- host - the MCRE host to connect to, or the full URL style host specification (
mcre://hostname:port)
java.io.IOException- thrown if a connection cannot be establishedjava.net.UnknownHostException- thrown if the host does not match a valid host
PHXAnalysisClient
- host - the MCRE host to connect to
- port - the port to use for the MCRE (default is 1835)
java.io.IOException- thrown if a connection cannot be establishedjava.net.UnknownHostException- thrown if the host does not match a valid host
PHXAnalysisClient
- 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
java.io.IOException- thrown if a connection cannot be establishedjava.net.UnknownHostException- thrown if the host does not match a valid host
PHXAnalysisClient
- host - the MCRE host to connect to
- timeout - the number of seconds to wait during the connect
- username
- password
java.io.IOException- thrown if a connection cannot be establishedjava.net.UnknownHostException- thrown if the host does not match a valid host
Method Detail
connect
- host - MCRE host to connect to, or the full URL style host specification (
mcre://hostname:port)
java.io.IOException- thrown if a connection cannot be establishedjava.net.UnknownHostException- thrown if the host does not match a valid host
connectURL
mcre://hostname.
Parameters:
- url - MCRE URL style host specification (
mcre://hostname:port). May include path part, which will be ignored.
java.io.IOException- thrown if a connection cannot be establishedjava.net.UnknownHostException- thrown if the host does not match a valid hostjava.net.URISyntaxException
connectURL
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.
java.io.IOException- thrown if a connection cannot be establishedjava.net.UnknownHostException- thrown if the host does not match a valid hostjava.net.URISyntaxException
connectLocal
java.io.IOException- thrown if a connection cannot be established
connectLocal
java.io.IOException- thrown if a connection cannot be established
connectProcess
java.io.IOException- thrown if a connection cannot be established
connect
- host - MCRE host to connect to
- port - the port to use for MCRE (default is 1835)
java.io.IOException- thrown if a connection cannot be establishedjava.net.UnknownHostException- thrown if the host does not match a valid host
connect
- host - MCRE host to connect to
- port - the port to use for MCRE (default is 1835)
- useSSL - Whether to connect using SSL
java.io.IOException- thrown if a connection cannot be establishedjava.net.UnknownHostException- thrown if the host does not match a valid host
connectExternal
- 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
java.io.IOException- thrown if a connection cannot be establishedjava.net.UnknownHostException- thrown if the host does not match a valid host
connect
- 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
java.io.IOException- thrown if a connection cannot be establishedjava.net.UnknownHostException- thrown if the host does not match a valid host
connect
- 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
java.io.IOException- thrown if a connection cannot be establishedjava.net.UnknownHostException- thrown if the host does not match a valid host
handleLogin
java.io.IOException
isConnected
- true if currently connected
setDeleteDFT
getHostName
- the host name, or “not connected” if not currently connected to the server
close
finalize
- finalize in class
java.lang.Object
java.lang.Throwable
addListener
- l - the listener
removeListener
- l - the listener
isResponseReady
- id - the id of the response
- true if the response is ready
sendStartRequest
- analysis - the analysis to start
- instanceName - the name for the analysis
- the id for the response
getStartResponse
- id - the id for the response
- wait - if true, the function blocks until the response is ready
- the response from the server
PHXResponseTypeMismatchException- thrown if the response type is not what was expected for this function.PHXNoSuchResponseException- thrown if the response does not exist (may not have been returned from server yet).PHXServerSideException- thrown if the the server returned an error
start
- analysis - the snalyais to start
- instanceName - the name for the analysis
- the response from the server
PHXServerSideException- thrown if something goes wrong. The exception message will contain the response from the server
sendEndRequest
- analysis - the analysis to start
- the id for the response
getEndResponse
- id - the id for the response
- wait - if true, the function blocks until the response is ready
- the response from the server
PHXResponseTypeMismatchException- thrown if the response type is not what was expected for this function.PHXNoSuchResponseException- thrown if the response does not exist (may not have been returned from server yet).PHXServerSideException- thrown if the the server returned an error
end
- analysis - the snalyais to end
- the response from the server
PHXServerSideException- thrown if something goes wrong. The exception message will contain the response from the server
sendListClassesRequest
- category - the category to search. If null, then the root category is searched
- the id for the response
getListClassesResponse
- id - the id for the response
- wait - if true, the function blocks until the response is ready
- an array of classes
PHXResponseTypeMismatchException- thrown if the response type is not what was expected for this function.PHXNoSuchResponseException- thrown if the response does not exist (may not have been returned from server yet).PHXServerSideException- thrown if the the server returned an error
listClasses
- category - the category to search. If null, then the root category is searched
- an array of classes
PHXServerSideException- thrown if something goes wrong. The exception message will contain the response from the server
sendExecuteRequest
- analysis - the analysis to execute
- the id for the response
getExecuteResponse
- id - the id for the response
- wait - if true, the function blocks until the response is ready
- the response from the server
PHXResponseTypeMismatchException- thrown if the response type is not what was expected for this function.PHXNoSuchResponseException- thrown if the response does not exist (may not have been returned from server yet).PHXServerSideException- thrown if the the server returned an error
execute
- analysis - the analyais to start
- the response from the server
PHXServerSideException- thrown if something goes wrong. The exception message will contain the response from the server
sendAddProxyClientsRequest
- clients - The comma separated list of hosts
- the id for the response
getAddProxyClientsResponse
- id - the id for the response
- wait - if true, the function blocks until the response is ready
- the response from the server
PHXResponseTypeMismatchException- thrown if the response type is not what was expected for this function.PHXNoSuchResponseException- thrown if the response does not exist (may not have been returned from server yet).PHXServerSideException- thrown if the the server returned an error
addProxyClients
- clients - The comma separated list of hosts
- the response from the server
PHXServerSideException- thrown if something goes wrong. The exception message will contain the response from the server
sendGetRequest
- property - the property to retrieve a value for
- the id for the response
getGetResponse
- id - the id for the response
- wait - if true, the function blocks until the response is ready
- the value of the property
PHXResponseTypeMismatchException- thrown if the response type is not what was expected for this function.PHXNoSuchResponseException- thrown if the response does not exist (may not have been returned from server yet).PHXServerSideException- thrown if the the server returned an error
getGetResponse2
- id - the id for the response
- wait - if true, the function blocks until the response is ready
- the value of the property
PHXResponseTypeMismatchException- thrown if the response type is not what was expected for this function.PHXNoSuchResponseException- thrown if the response does not exist (may not have been returned from server yet).PHXServerSideException- thrown if the the server returned an error
get
- property - the property to retrieve a value for
- the value of the property
PHXServerSideException- thrown if something goes wrong. The exception message will contain the response from the serverPHXServerSideException- thrown if the the server returned an error
get2
- property - the property to retrieve a value for
- the value of the property
PHXServerSideException- thrown if something goes wrong. The exception message will contain the response from the serverPHXServerSideException- thrown if the the server returned an error
sendGetByUrlRequest
- url - The url requested
- the id for the response
getGetByUrlResponse
- id - the id for the response
- wait - if true, the function blocks until the response is ready
- the value of the property
PHXResponseTypeMismatchException- thrown if the response type is not what was expected for this function.PHXNoSuchResponseException- thrown if the response does not exist (may not have been returned from server yet).PHXServerSideException- thrown if the the server returned an error
getByUrl
- url - the url to get the file contents of
- the contents of the file
PHXServerSideException- thrown if something goes wrong. The exception message will contain the response from the serverPHXServerSideException- thrown if the the server returned an error
sendSetByUrlRequest
- url - The url requested
- the id for the response
getSetByUrlResponse
- id - the id for the response
- wait - if true, the function blocks until the response is ready
- the value of the property
PHXResponseTypeMismatchException- thrown if the response type is not what was expected for this function.PHXNoSuchResponseException- thrown if the response does not exist (may not have been returned from server yet).PHXServerSideException- thrown if the the server returned an error
setByUrl
- varName - the variable to set
- url - the url to set the variable at
PHXServerSideException- thrown if something goes wrong. The exception message will contain the response from the server
sendSetRequest
- property - the property to retrieve a value for
- the id for the response
getSetResponse
- id - the id for the response
- wait - if true, the function blocks until the response is ready
- the response from the server
PHXResponseTypeMismatchException- thrown if the response type is not what was expected for this function.PHXNoSuchResponseException- thrown if the response does not exist (may not have been returned from server yet).PHXServerSideException- thrown if the the server returned an error
set
- property - the property to retrieve a value for
- value - the value of the property
- the response from the server
PHXServerSideException- thrown if something goes wrong. The exception message will contain the response from the serverPHXServerSideException- thrown if the the server returned an error
sendGetComponentHistoryRequest
- analysis - the analysis to query
- the id for the response
getGetComponentHistoryResponse
- id - the id for the response
- wait - if true, the function blocks until the response is ready
- a description object for the analysis
PHXResponseTypeMismatchException- thrown if the response type is not what was expected for this function.PHXNoSuchResponseException- thrown if the response does not exist (may not have been returned from server yet).PHXServerSideException- thrown if the the server returned an error
getComponentHistory
- analysis - The full path to the component
- The top level branch object which represents the main development branch.
PHXServerSideException- thrown if the server reports any problems.
sendDescribeRequest
- analysis - the analysis to start
- the id for the response
getDescribeResponse
- id - the id for the response
- wait - if true, the function blocks until the response is ready
- a description object for the analysis
PHXResponseTypeMismatchException- thrown if the response type is not what was expected for this function.PHXNoSuchResponseException- thrown if the response does not exist (may not have been returned from server yet).PHXServerSideException- thrown if the the server returned an error
describe
- analysis - the full path to the component
- a description object
PHXServerSideException- thrown if something goes wrong. The exception message will contain the response from the server
sendListPropertiesRequest
- analysis - the analysis to query
- the id for the response
getListPropertiesResponse
- id - the id for the response
- wait - if true, the function blocks until the response is ready
- a property descriptor object for the analysis
PHXResponseTypeMismatchException- thrown if the response type is not what was expected for this function.PHXNoSuchResponseException- thrown if the response does not exist (may not have been returned from server yet).PHXServerSideException- thrown if the the server returned an error
listProperties
- analysis - the analyais to list properties for
- a property descriptor for the object
PHXServerSideException- thrown if something goes wrong. The exception message will contain the response from the server
sendListMethodsRequest
- analysis - the analysis to query
- the id for the response
getListMethodsResponse
- id - the id for the response
- wait - if true, the function blocks until the response is ready
- a property descriptor object for the analysis
PHXResponseTypeMismatchException- thrown if the response type is not what was expected for this function.PHXNoSuchResponseException- thrown if the response does not exist (may not have been returned from server yet).PHXServerSideException- thrown if the the server returned an error
listMethods
- analysis - the analyais to list methods for
- an array of method descriptors for the object
PHXServerSideException- thrown if something goes wrong. The exception message will contain the response from the server
sendInvokeRequest
- method - the method to invoke
- the id for the response
getInvokeResponse
- id - the id for the response
- wait - if true, the function blocks until the response is ready
- the value of the property
PHXResponseTypeMismatchException- thrown if the response type is not what was expected for this function.PHXNoSuchResponseException- thrown if the response does not exist (may not have been returned from server yet).PHXServerSideException- thrown if the the server returned an error
invoke
- method - the method to invoke
- the results of the invocation
PHXServerSideException- thrown if something goes wrong. The exception message will contain the response from the server
sendListValuesRequest
sendListValuesURLRequest
getListValuesResponse
PHXResponseTypeMismatchExceptionPHXNoSuchResponseExceptionPHXServerSideExceptionjava.io.IOExceptionjava.lang.NumberFormatException
listValues
PHXServerSideExceptionjava.io.IOException
sendListArrayValuesRequest
getListArrayValuesResponse
PHXResponseTypeMismatchExceptionPHXNoSuchResponseException
listArrayValues
PHXServerSideExceptionjava.io.IOException
sendListCategoriesRequest
- category - the category to search. If null, then the root category is searched
- the id for the response
getListCategoriesResponse
- id - the id for the response
- wait - if true, the function blocks until the response is ready
- an array of categories
PHXResponseTypeMismatchException- thrown if the response type is not what was expected for this function.PHXNoSuchResponseException- thrown if the response does not exist (may not have been returned from server yet).PHXServerSideException- thrown if the the server returned an error
listCategories
- category - the category to search. If null, then the root category is searched
- an array of categories
PHXServerSideException- thrown if something goes wrong. The exception message will contain the response from the server
sendListRequest
- the id for the response
getListResponse
- id - the id for the response
- wait - if true, the function blocks until the response is ready
- an array of objects
PHXResponseTypeMismatchException- thrown if the response type is not what was expected for this function.PHXNoSuchResponseException- thrown if the response does not exist (may not have been returned from server yet).PHXServerSideException- thrown if the the server returned an error
list
- an array of objects
PHXServerSideException- thrown if something goes wrong. The exception message will contain the response from the server
sendGetHierarchyRequest
- analysis - the analysis class to retrieve the icon for
- the id for the response
sendGetHierarchyRequest
- analysis - the analysis class to retrieve the icon for
- fileMode - how to retrieve files
- the id for the response
getGetHierarchyResponse
- id - the id for the response
- wait - if true, the function blocks until the response is ready
- an icon Image
PHXResponseTypeMismatchException- thrown if the response type is not what was expected for this function.PHXNoSuchResponseException- thrown if the response does not exist (may not have been returned from server yet).PHXServerSideException- thrown if the the server returned an error
getHierarchy
- analysis - the analysis class to retrieve the icon for
- the string buffer containing the hierarchy
PHXServerSideException- thrown if something goes wrong. The exception message will contain the response from the server
sendSetHierarchyRequest
- analysis - the analysis object or parameter name to set data into
- xml - The XML data structure containing the data to be set.
- the id for the response
getSetHierarchyResponse
- id - the id for the response
- wait - if true, the function blocks until the response is ready
- the result from the server
PHXResponseTypeMismatchException- thrown if the response type is not what was expected for this function.PHXNoSuchResponseException- thrown if the response does not exist (may not have been returned from server yet).PHXServerSideException- thrown if the the server returned an error
setHierarchy
- analysis - the analysis object or parameter name to set data into
- xml - The XML data structure containing the data to be set.
- the result from the server
PHXServerSideException- thrown if something goes wrong. The exception message will contain the response from the server
sendDeleteRunShareRequest
- key - the key for the runShare to delete
- the id for the response
getDeleteRunShareResponse
- id - the id for the response
- wait - if true, the function blocks until the response is ready
- the result from the server
PHXResponseTypeMismatchException- thrown if the response type is not what was expected for this function.PHXNoSuchResponseException- thrown if the response does not exist (may not have been returned from server yet).PHXServerSideException- thrown if the the server returned an error
deleteRunShare
- PHXServerSideException
sendGetIconRequest
- analysis - the analysis class to retrieve the icon for
- the id for the response
getGetIconResponse
- id - the id for the response
- wait - if true, the function blocks until the response is ready
- an icon Image
PHXResponseTypeMismatchException- thrown if the response type is not what was expected for this function.PHXNoSuchResponseException- thrown if the response does not exist (may not have been returned from server yet).PHXServerSideException- thrown if the the server returned an error
getIcon
- analysis - the analysis class to retrieve the icon for
- an icon Image
PHXServerSideException- thrown if something goes wrong. The exception message will contain the response from the server
sendSetDictionaryRequest
- dictionary - the desired dictionary
- the id for the response
getSetDictionaryResponse
- id - the id for the response
- wait - if true, the function blocks until the response is ready
- an icon Image
PHXResponseTypeMismatchException- thrown if the response type is not what was expected for this function.PHXNoSuchResponseException- thrown if the response does not exist (may not have been returned from server yet).PHXServerSideException- thrown if the the server returned an error
setDictionary
- dictionary - the desired dictionary
- the response from the server, or a blank string for invalid responses
PHXServerSideException- thrown if something goes wrong. The exception message will contain the response from the server
sendArbitraryRequest
- request - MCRE api command to send
- the id for the response
sendArbitraryRequest
- request - MCRE api command to send
- the id for the response
getResponseAsText
- id - the id for the response
- type - the type of response to expect.
- wait - if true, the function blocks until the response is ready
- the value of the property
PHXResponseTypeMismatchException- thrown if the response type is not what was expected for this function.PHXNoSuchResponseException- thrown if the response does not exist (may not have been returned from server yet).PHXServerSideException- thrown if the the server returned an error
getResponseAsPHXStringBuffer
- id - the id for the response
- type - the type of response to expect.
- wait - if true, the function blocks until the response is ready
- the value of the property
PHXResponseTypeMismatchException- thrown if the response type is not what was expected for this function.PHXNoSuchResponseException- thrown if the response does not exist (may not have been returned from server yet).PHXServerSideException- thrown if the the server returned an error