com.phoenix_int.aserver.client.v2
Class Hierarchy
java.lang.AutoCloseable
Constructor Summary
Method Summary
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Constructor Detail
AnalysisServerClient
Method Detail
isConnected
getUri
getHostname
supportsBinaryTransfer
java.lang.IllegalStateException– if the client is not connected
connect
uri– the URI
javax.security.auth.login.FailedLoginException– if the server requires credentialsjava.io.IOException– if the server cannot be connectedjava.lang.NullPointerException– if uri is null
connect
uri– the URItimeout– the timeout to use, or 0 for none
javax.security.auth.login.FailedLoginException– if the server requires credentialsjava.io.IOException– if the server cannot be connectedjava.lang.NullPointerException– if uri is null
connect
uri– the URI to connect tousername– the username to use (null for none)password– the password to use (null for none)
javax.security.auth.login.FailedLoginException– if the credentials are invalidjava.io.IOException– if the server cannot be connectedjava.lang.NullPointerException– if uri is null
connect
uri– the URI to connect tousername– the username to use (null for none)password– the password to use (null for none)timeout– the timeout, or 0 for none
javax.security.auth.login.FailedLoginException– if the credentials are invalidjava.io.IOException– if the server cannot be connectedjava.lang.UnsupportedOperationException– if the URI is not a recognized typejava.lang.NullPointerException– if uri is null
connectEmbedded
javax.security.auth.login.FailedLoginException– if the server requires authenticationjava.io.IOException– on connection error
connectEmbedded
username– the username to use (null for none)password– the password to use (null for none)
javax.security.auth.login.FailedLoginException– if the credentials are invalidjava.io.IOException– on connection error
connectEmbedded
initialProperties– the initial properties to set (may be null)
javax.security.auth.login.FailedLoginException– if the server requires authenticationjava.io.IOException– on connection error
connectEmbedded
initialProperties– the initial properties to set (may be null)username– the username to use (null for none)password– the password to use (null for none)
javax.security.auth.login.FailedLoginException– if the credentials are invalidjava.io.IOException– on connection error
connectSsh
host– the machine at which the streams are connectedinputStream– the stream where the SSH server writes its outputoutputStream– the stream where the SSH server reads further inputerrorStream– The stream where the SSH server writes its error output, which may be null; this is used to include additional information if a connection error occurs
javax.security.auth.login.FailedLoginExceptionjava.io.IOExceptionjava.net.URISyntaxException
close
closein interfacejava.lang.AutoCloseable
quit
background– whether to background execution
java.lang.IllegalStateException– if the server is not connectedjava.io.IOException– if there is an error talking to the serverAnalysisServerException– if the request failsjava.lang.InterruptedException– if the current thread is interrupted waiting for the response
finalize
finalizein classjava.lang.Object
java.lang.Throwable
getVersion
- the version
java.lang.IllegalStateException– if the server is not connectedjava.io.IOException– if there is an error talking to the serverAnalysisServerException– if the request failsjava.lang.InterruptedException– if the current thread is interrupted waiting for the response
startAsync
analysis– the analysisinstanceName– the name for this instancecallback– the callback for when the response is received
java.lang.IllegalStateException– if the server is not connectedjava.io.IOException– on communications error
start
analysis– the analysisinstanceName– the name for this instance
java.lang.IllegalStateException– if the server is not connectedjava.io.IOException– if there is an error talking to the serverAnalysisServerException– if the request failsjava.lang.InterruptedException– if the current thread is interrupted waiting for the response
endAsync
instanceName– the name of the instancecallback– the callback for when the response is received
java.lang.IllegalStateException– if the server is not connectedjava.io.IOException– on communications error
end
instanceName– the name of the instance
java.lang.IllegalStateException– if the server is not connectedjava.io.IOException– if there is an error talking to the serverAnalysisServerException– if the request failsjava.lang.InterruptedException– if the current thread is interrupted waiting for the response
listAnalysesAsync
folderPath– the path to the folder (may be null)callback– the callback for when the response is received
java.lang.IllegalStateException– if the server is not connectedjava.io.IOException– on communications error
listAnalyses
folderPath– the path to the folder (may be null)
- the list of classes
java.lang.IllegalStateException– if the server is not connectedjava.io.IOException– if there is an error talking to the serverAnalysisServerException– if the request failsjava.lang.InterruptedException– if the current thread is interrupted waiting for the response
executeAsync
instanceName– the name of the instancebackground– whether to background executioncallback– the callback for when the response is received
java.lang.IllegalStateException– if the server is not connectedjava.io.IOException– on communications error
execute
instanceName– the name of the instancebackground– whether to background execution
java.lang.IllegalStateException– if the server is not connectedjava.io.IOException– if there is an error talking to the serverAnalysisServerException– if the request failsjava.lang.InterruptedException– if the current thread is interrupted waiting for the response
addProxyClientsAsync
clientHosts– the collection of hostscallback– the callback for when the response is received
java.lang.IllegalStateException– if the server is not connectedjava.io.IOException– on communications error
addProxyClients
clientHosts– the collection of hosts
java.lang.IllegalStateException– if the server is not connectedjava.io.IOException– if there is an error talking to the serverAnalysisServerException– if the request failsjava.lang.InterruptedException– if the current thread is interrupted waiting for the response
getAsync
fullPropertyName– the full property namecallback– the callback for when the response is received
java.lang.IllegalStateException– if the server is not connectedjava.io.IOException– on communications error
get
fullPropertyName– the full property name
- the property value
java.lang.IllegalStateException– if the server is not connectedjava.io.IOException– if there is an error talking to the serverAnalysisServerException– if the request failsjava.lang.InterruptedException– if the current thread is interrupted waiting for the response
getFileAsync
destFile– the file to write tofullPropertyName– the full property nameisBinaryFile– whether or not this is a binary file (will only be used if the server must transfer the file as text, so we know how to decode it!)callback– the callback for when the response is received
java.lang.IllegalStateException– if the server is not connectedjava.io.IOException– on communications error
getFile
fullPropertyName– the full property namedestFile– the file to write with the resultsisBinaryFile– whether or not this is a binary file (will only be used if the server must transfer the file as text, so we know how to decode it!)
java.lang.IllegalStateException– if the server is not connectedjava.io.IOException– if there is an error talking to the serverAnalysisServerException– if the request failsjava.lang.InterruptedException– if the current thread is interrupted waiting for the response
getByUrlAsync
destFile– the file to write tofullPropertyName– the full property nameurl– the URL to retrieveisBinaryFile– whether or not this is a binary file (will only be used if the server must transfer the file as text, so we know how to decode it!)callback– the callback for when the response is received
java.lang.IllegalStateException– if the server is not connectedjava.io.IOException– on communications error
getByUrl
fullPropertyName– the full property namedestFile– the file to write with the resultsurl– the URL to retrieveisBinaryFile– whether or not this is a binary file (will only be used if the server must transfer the file as text, so we know how to decode it!)
java.lang.IllegalStateException– if the server is not connectedjava.io.IOException– if there is an error talking to the serverAnalysisServerException– if the request failsjava.lang.InterruptedException– if the current thread is interrupted waiting for the response
getByUrl
getByUrl(File, String, String, boolean). Calls that getByUrl with a blank fullPropertyName parameter. Get a file by URL.
Parameters:
destFile– the file to write with the resultsurl– the URL to retrieveisBinaryFile– whether or not this is a binary file (will only be used if the server must transfer the file as text, so we know how to decode it!)
java.lang.IllegalStateException– if the server is not connectedjava.io.IOException– if there is an error talking to the serverAnalysisServerException– if the request failsjava.lang.InterruptedException– if the current thread is interrupted waiting for the response
getDimensionsAsync
fullPropertyName– the full property namecallback– the callback for when the response is received
java.lang.IllegalStateException– if the server is not connectedjava.io.IOException– on communications error
getDimensions
fullPropertyName– the full property name
- the dimensions
java.lang.IllegalStateException– if the server is not connectedjava.io.IOException– if there is an error talking to the serverAnalysisServerException– if the request failsjava.lang.InterruptedException– if the current thread is interrupted waiting for the response
setDimensionsAsync
fullPropertyName– the full property namedimensions– the dimensionscallback– the callback for when the response is received
java.lang.IllegalStateException– if the server is not connectedjava.io.IOException– on communications errorjava.lang.NullPointerException– if dimensions is nulljava.lang.IllegalArgumentException– if any of the dimensions are invalid
setDimensions
fullPropertyName– the full property namedimensions– the dimensions
java.lang.IllegalStateException– if the server is not connectedjava.io.IOException– if there is an error talking to the serverAnalysisServerException– if the request failsjava.lang.InterruptedException– if the current thread is interrupted waiting for the responsejava.lang.NullPointerException– if dimensions is nulljava.lang.IllegalArgumentException– if any of the dimensions are invalid
setByUrlAsync
fullPropertyName– the full property nameurl– the URL to setcallback– the callback for when the response is received
java.lang.IllegalStateException– if the server is not connectedjava.io.IOException– on communications error
setByUrl
fullPropertyName– the full property nameurl– the URL to set
java.lang.IllegalStateException– if the server is not connectedjava.io.IOException– if there is an error talking to the serverAnalysisServerException– if the request failsjava.lang.InterruptedException– if the current thread is interrupted waiting for the response
setDictionary
xml– context information in form of a xml string
java.lang.IllegalStateException– if the server is not connectedjava.io.IOException– if there is an error talking to the serverAnalysisServerException– if the request failsjava.lang.InterruptedException– if the current thread is interrupted waiting for the response
setDictionaryAsync
xml– context information in form of a xml stringcallback– the callback for when the response is received
java.lang.IllegalStateException– if the server is not connectedjava.io.IOException– on communications errorjava.lang.NullPointerException– if xml is null
setAsync
fullPropertyName– the full property namevalue– the value to setcallback– the callback for when the response is received
java.lang.IllegalStateException– if the server is not connectedjava.io.IOException– on communications error
set
fullPropertyName– the full property namevalue– the value to set (if this is aFileor (@link PHXTempFile), set(java.lang.String, java.io.File) will be called automatically)
java.lang.IllegalStateException– if the server is not connectedjava.io.IOException– if there is an error talking to the serverAnalysisServerException– if the request failsjava.lang.InterruptedException– if the current thread is interrupted waiting for the response
setAsync
fullPropertyName- the full property name to setcontents- the contents to setcallback- the callback for when the response is received
java.lang.IllegalStateException- if the server is not connectedjava.io.IOException- if there is an error talking to the server or reading from the filejava.lang.UnsupportedOperationException- if the server does not support file transfer
setAsync
fullPropertyName- the full property name to setcontents- the contents to setencoding- the text encoding to use for non-file variables, null for file variablescallback- the callback for when the response is received
java.lang.IllegalStateException- if the server is not connectedjava.io.IOException- if there is an error talking to the server or reading from the filejava.lang.UnsupportedOperationException- if the server does not support file transfer
set
fullPropertyName- the full property name to setcontents- the contents to set
java.lang.IllegalStateException- if the server is not connectedjava.io.IOException- if there is an error talking to the server or reading from the fileAnalysisServerException- if the request failsjava.lang.InterruptedException- if the current thread is interrupted waiting for the responsejava.lang.UnsupportedOperationException- if the server does not support binary transfer
set
fullPropertyName- the full property name to setcontents- the contents to setencoding- the text encoding to use for non-file variables, null for file variables
java.lang.IllegalStateException- if the server is not connectedjava.io.IOException- if there is an error talking to the server or reading from the fileAnalysisServerException- if the request failsjava.lang.InterruptedException- if the current thread is interrupted waiting for the responsejava.lang.UnsupportedOperationException- if the server does not support binary transfer
getVersionHistoryAsync
analysis- the analysis to retrieve info forcallback- the callback for when the response is received
java.lang.IllegalStateException- if the server is not connectedjava.io.IOException- on communications error
getVersionHistory
analysis- the analysis to retrieve info for
- the version history information
java.lang.IllegalStateException- if the server is not connectedjava.io.IOException- if there is an error talking to the serverAnalysisServerException- if the request failsjava.lang.InterruptedException- if the current thread is interrupted waiting for the response
describeAsync
analysis- the analysis to retrieve info forcallback- the callback for when the response is received
java.lang.IllegalStateException- if the server is not connectedjava.io.IOException- on communications error
describe
analysis- the analysis to retrieve info for
- the version history information
java.lang.IllegalStateException- if the server is not connectedjava.io.IOException- if there is an error talking to the serverAnalysisServerException- if the request failsjava.lang.InterruptedException- if the current thread is interrupted waiting for the response
listPropertiesAsync
analysis- the analysis to retrieve info forcallback- the callback for when the response is received
java.lang.IllegalStateException- if the server is not connectedjava.io.IOException- on communications error
listProperties
analysis- the analysis to retrieve info for
- the property list
java.lang.IllegalStateException- if the server is not connectedjava.io.IOException- if there is an error talking to the serverAnalysisServerException- if the request failsjava.lang.InterruptedException- if the current thread is interrupted waiting for the response
listMethodsAsync
analysis- the analysis to retrieve info forcallback- the callback for when the response is received
java.lang.IllegalStateException- if the server is not connectedjava.io.IOException- on communications error
listMethods
analysis- the analysis to retrieve info for
- the method list
java.lang.IllegalStateException- if the server is not connectedjava.io.IOException- if there is an error talking to the serverAnalysisServerException- if the request failsjava.lang.InterruptedException- if the current thread is interrupted waiting for the response
invokeAsync
instanceName- the name of the instance to invoke the method formethodName- the method name to invokecallback- the callback for when the response is received
java.lang.IllegalStateException- if the server is not connectedjava.io.IOException- on communications error
invoke
instanceName- the name of the instance to invoke the method formethodName- the method name to invoke
- whatever the method returned
java.lang.IllegalStateException- if the server is not connectedjava.io.IOException- if there is an error talking to the serverAnalysisServerException- if the request failsjava.lang.InterruptedException- if the current thread is interrupted waiting for the response
listValuesAsync
analysis- the analysis to retrieve info forcallback- the callback for when the response is received
java.lang.IllegalStateException- if the server is not connectedjava.io.IOException- on communications error
listValues
analysis- the analysis to retrieve info for
- the value list
java.lang.IllegalStateException- if the server is not connectedjava.io.IOException- if there is an error talking to the serverAnalysisServerException- if the request failsjava.lang.InterruptedException- if the current thread is interrupted waiting for the response
listFoldersAsync
folderPath- the folder path; may be nullcallback- the callback for when the response is received
java.lang.IllegalStateException- if the server is not connectedjava.io.IOException- on communications error
listFolders
folderPath- the folder path; may be null
- the list of folders
java.lang.IllegalStateException- if the server is not connectedjava.io.IOException- if there is an error talking to the serverAnalysisServerException- if the request failsjava.lang.InterruptedException- if the current thread is interrupted waiting for the response
listInstancesAsync
callback- the callback for when the response is received
java.lang.IllegalStateException- if the server is not connectedjava.io.IOException- on communications error
listInstances
- the list of folders
java.lang.IllegalStateException- if the server is not connectedjava.io.IOException- if there is an error talking to the serverAnalysisServerException- if the request failsjava.lang.InterruptedException- if the current thread is interrupted waiting for the response
getHierarchyAsync
instanceName- the name of the instance to retrieve variables forfileMode- the way to return filescallback- the callback for when the response is received
java.lang.IllegalStateException- if the server is not connectedjava.io.IOException- on communications error
getHierarchy
instanceName- the name of the instance to retrieve variables forfileMode- the way to return files
- the hierarchy (a map from variable paths to values)
java.lang.IllegalStateException- if the server is not connectedjava.io.IOException- if there is an error talking to the serverAnalysisServerException- if the request failsjava.lang.InterruptedException- if the current thread is interrupted waiting for the response
setHierarchyAsync
instanceName- the name of the instance to retrieve variables forvariables- the variables and values to set
java.lang.IllegalStateException- if the server is not connectedjava.io.IOException- on communications error
setHierarchy
instanceName- the name of the instance to retrieve variables forvariables- the variables and values to set
java.lang.IllegalStateException- if the server is not connectedjava.io.IOException- if there is an error talking to the serverAnalysisServerException- if the request failsjava.lang.InterruptedException- if the current thread is interrupted waiting for the response
setHierarchyAsync
instanceName- the name of the instance to retrieve variables forxmlData- the file containing XML data to setxmlEncoding- the encoding of the data; null or empty for default (UTF-8)gzipped- whether the file on disk has been gzipped
java.lang.IllegalStateException- if the server is not connectedjava.io.IOException- on communications error
setHierarchy
instanceName- the name of the instance to retrieve variables forxmlData- the file containing XML data to setxmlEncoding- the encoding of the data; null or empty for default (UTF-8)gzipped- whether the file on disk has been gzipped
java.lang.IllegalStateException- if the server is not connectedjava.io.IOException- if there is an error talking to the serverAnalysisServerException- if the request failsjava.lang.InterruptedException- if the current thread is interrupted waiting for the response
deleteRunShareAsync
key- the unique key for the share
java.lang.IllegalStateException- if the server is not connectedjava.io.IOException- on communications error
deleteRunShare
key- the unique key for the share
java.lang.IllegalStateException- if the server is not connectedjava.io.IOException- if there is an error talking to the serverAnalysisServerException- if the request failsjava.lang.InterruptedException- if the current thread is interrupted waiting for the response
getIconAsync
analysis- the analysis to get the icon for
java.lang.IllegalStateException- if the server is not connectedjava.io.IOException- on communications error
getIcon
analysis- the analysis to get the icon for
- the icon
java.lang.IllegalStateException- if the server is not connectedjava.io.IOException- if there is an error talking to the serverAnalysisServerException- if the request failsjava.lang.InterruptedException- if the current thread is interrupted waiting for the response
setServerPropertiesAsync
propertyMap- a map of keys to values
java.lang.IllegalStateException- if the server is not connectedjava.io.IOException- on communications error
setServerProperties
propertyMap- a map of keys to values
java.lang.IllegalStateException- if the server is not connectedjava.io.IOException- if there is an error talking to the serverAnalysisServerException- if the request failsjava.lang.InterruptedException- if the current thread is interrupted waiting for the response
getSystemPropertyAsync
key- the name of the system propertycallback- the callback for when the response is received
java.lang.IllegalStateException- if the server is not connectedjava.io.IOException- on communications error
getSystemProperty
key- the name of the system property
- the property value
java.lang.IllegalStateException- if the server is not connectedjava.io.IOException- if there is an error talking to the serverAnalysisServerException- if the request failsjava.lang.InterruptedException- if the current thread is interrupted waiting for the response
getScratchDirectoryAsync
callback- the callback for when the response is received
java.lang.IllegalStateException- if the server is not connectedjava.io.IOException- on communications error
getScratchDirectory
- the scratch directory of the connected MCRE
java.lang.IllegalStateException- if the server is not connectedjava.io.IOException- if there is an error talking to the serverAnalysisServerException- if the request failsjava.lang.InterruptedException- if the current thread is interrupted waiting for the response