Skip to main content
Package: com.phoenix_int.aserver.client.v2 Class Hierarchy
Implemented Interfaces
  • java.lang.AutoCloseable
Declaration
ModelCenter Remote Execution client object.

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

Is the server connected?

getUri

Get the currently-connected URI, or null if none.

getHostname

Returns the currently-connected host, or null if none.

supportsBinaryTransfer

Does this server support binary transfer? Throws:
  • java.lang.IllegalStateException – if the client is not connected

connect

Connect to ModelCenter Remote Execution at a specified URI with no timeout. The server must not require authentication. Parameters:
  • uri – the URI
Throws:
  • javax.security.auth.login.FailedLoginException – if the server requires credentials
  • java.io.IOException – if the server cannot be connected
  • java.lang.NullPointerException – if uri is null

connect

Connect to ModelCenter Remote Execution at a specified URI. The server must not require authentication. Parameters:
  • uri – the URI
  • timeout – the timeout to use, or 0 for none
Throws:
  • javax.security.auth.login.FailedLoginException – if the server requires credentials
  • java.io.IOException – if the server cannot be connected
  • java.lang.NullPointerException – if uri is null

connect

Connect to ModelCenter Remote Execution with optional authentication and no timeout. Parameters:
  • uri – the URI to connect to
  • username – the username to use (null for none)
  • password – the password to use (null for none)
Throws:
  • javax.security.auth.login.FailedLoginException – if the credentials are invalid
  • java.io.IOException – if the server cannot be connected
  • java.lang.NullPointerException – if uri is null

connect

Connect to ModelCenter Remote Execution with optional authentication. Parameters:
  • uri – the URI to connect to
  • username – the username to use (null for none)
  • password – the password to use (null for none)
  • timeout – the timeout, or 0 for none
Throws:
  • javax.security.auth.login.FailedLoginException – if the credentials are invalid
  • java.io.IOException – if the server cannot be connected
  • java.lang.UnsupportedOperationException – if the URI is not a recognized type
  • java.lang.NullPointerException – if uri is null

connectEmbedded

Connect to the in-process (embedded) ModelCenter Remote Execution instance. Throws:
  • javax.security.auth.login.FailedLoginException – if the server requires authentication
  • java.io.IOException – on connection error

connectEmbedded

Connect to the in-process (embedded) ModelCenter Remote Execution instance. Parameters:
  • username – the username to use (null for none)
  • password – the password to use (null for none)
Throws:
  • javax.security.auth.login.FailedLoginException – if the credentials are invalid
  • java.io.IOException – on connection error

connectEmbedded

Connect to the in-process (embedded) ModelCenter Remote Execution instance. Parameters:
  • initialProperties – the initial properties to set (may be null)
Throws:
  • javax.security.auth.login.FailedLoginException – if the server requires authentication
  • java.io.IOException – on connection error

connectEmbedded

Connect to the in-process (embedded) ModelCenter Remote Execution instance. Parameters:
  • 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)
Throws:
  • javax.security.auth.login.FailedLoginException – if the credentials are invalid
  • java.io.IOException – on connection error

connectSsh

Connect to ModelCenter Remote Execution via arbitrary input and output streams. This function is misnamed because it doesn’t really care if the streams come from ssh or not, only that the other end of the streams are hooked up to ModelCenter Remote Execution. Parameters:
  • host – the machine at which the streams are connected
  • inputStream – the stream where the SSH server writes its output
  • outputStream – the stream where the SSH server reads further input
  • errorStream – 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
Throws:
  • javax.security.auth.login.FailedLoginException
  • java.io.IOException
  • java.net.URISyntaxException

close

Close the connection to the server. Specified by:
  • close in interface java.lang.AutoCloseable

quit

Force quit current analysis, and shut down ModelCenter Remote Execution. Parameters:
  • background – whether to background execution
Throws:
  • java.lang.IllegalStateException – if the server is not connected
  • java.io.IOException – if there is an error talking to the server
  • AnalysisServerException – if the request fails
  • java.lang.InterruptedException – if the current thread is interrupted waiting for the response

finalize

Clean up during finalization. Overrides:
  • finalize in class java.lang.Object
Throws:
  • java.lang.Throwable

getVersion

Get the MCRE version. Returns:
  • the version
Throws:
  • java.lang.IllegalStateException – if the server is not connected
  • java.io.IOException – if there is an error talking to the server
  • AnalysisServerException – if the request fails
  • java.lang.InterruptedException – if the current thread is interrupted waiting for the response

startAsync

Start an analysis. Parameters:
  • analysis – the analysis
  • instanceName – the name for this instance
  • callback – the callback for when the response is received
Throws:
  • java.lang.IllegalStateException – if the server is not connected
  • java.io.IOException – on communications error

start

Start an analysis. Parameters:
  • analysis – the analysis
  • instanceName – the name for this instance
Throws:
  • java.lang.IllegalStateException – if the server is not connected
  • java.io.IOException – if there is an error talking to the server
  • AnalysisServerException – if the request fails
  • java.lang.InterruptedException – if the current thread is interrupted waiting for the response

endAsync

End an analysis. Parameters:
  • instanceName – the name of the instance
  • callback – the callback for when the response is received
Throws:
  • java.lang.IllegalStateException – if the server is not connected
  • java.io.IOException – on communications error

end

End an analysis. Parameters:
  • instanceName – the name of the instance
Throws:
  • java.lang.IllegalStateException – if the server is not connected
  • java.io.IOException – if there is an error talking to the server
  • AnalysisServerException – if the request fails
  • java.lang.InterruptedException – if the current thread is interrupted waiting for the response

listAnalysesAsync

List the analyses on the server. Parameters:
  • folderPath – the path to the folder (may be null)
  • callback – the callback for when the response is received
Throws:
  • java.lang.IllegalStateException – if the server is not connected
  • java.io.IOException – on communications error

listAnalyses

List the analyses on the server. Parameters:
  • folderPath – the path to the folder (may be null)
Returns:
  • the list of classes
Throws:
  • java.lang.IllegalStateException – if the server is not connected
  • java.io.IOException – if there is an error talking to the server
  • AnalysisServerException – if the request fails
  • java.lang.InterruptedException – if the current thread is interrupted waiting for the response

executeAsync

Execute an analysis. Parameters:
  • instanceName – the name of the instance
  • background – whether to background execution
  • callback – the callback for when the response is received
Throws:
  • java.lang.IllegalStateException – if the server is not connected
  • java.io.IOException – on communications error

execute

Execute an analysis. Parameters:
  • instanceName – the name of the instance
  • background – whether to background execution
Throws:
  • java.lang.IllegalStateException – if the server is not connected
  • java.io.IOException – if there is an error talking to the server
  • AnalysisServerException – if the request fails
  • java.lang.InterruptedException – if the current thread is interrupted waiting for the response

addProxyClientsAsync

Add a list of allowed proxy client hosts. Parameters:
  • clientHosts – the collection of hosts
  • callback – the callback for when the response is received
Throws:
  • java.lang.IllegalStateException – if the server is not connected
  • java.io.IOException – on communications error

addProxyClients

Add a list of allowed proxy client hosts. Parameters:
  • clientHosts – the collection of hosts
Throws:
  • java.lang.IllegalStateException – if the server is not connected
  • java.io.IOException – if there is an error talking to the server
  • AnalysisServerException – if the request fails
  • java.lang.InterruptedException – if the current thread is interrupted waiting for the response

getAsync

Request the value of a property. Parameters:
  • fullPropertyName – the full property name
  • callback – the callback for when the response is received
Throws:
  • java.lang.IllegalStateException – if the server is not connected
  • java.io.IOException – on communications error

get

Request the value of a property. Parameters:
  • fullPropertyName – the full property name
Returns:
  • the property value
Throws:
  • java.lang.IllegalStateException – if the server is not connected
  • java.io.IOException – if there is an error talking to the server
  • AnalysisServerException – if the request fails
  • java.lang.InterruptedException – if the current thread is interrupted waiting for the response

getFileAsync

Fetch the contents of a file by property name. Parameters:
  • destFile – the file to write to
  • fullPropertyName – the full property name
  • isBinaryFile – 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
Throws:
  • java.lang.IllegalStateException – if the server is not connected
  • java.io.IOException – on communications error

getFile

Get a file by property name. Parameters:
  • fullPropertyName – the full property name
  • destFile – the file to write with the results
  • isBinaryFile – 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!)
Throws:
  • java.lang.IllegalStateException – if the server is not connected
  • java.io.IOException – if there is an error talking to the server
  • AnalysisServerException – if the request fails
  • java.lang.InterruptedException – if the current thread is interrupted waiting for the response

getByUrlAsync

Fetch the contents of a file by URL. Parameters:
  • destFile – the file to write to
  • fullPropertyName – the full property name
  • url – the URL to retrieve
  • isBinaryFile – 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
Throws:
  • java.lang.IllegalStateException – if the server is not connected
  • java.io.IOException – on communications error

getByUrl

Get a file by URL. Parameters:
  • fullPropertyName – the full property name
  • destFile – the file to write with the results
  • url – the URL to retrieve
  • isBinaryFile – 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!)
Throws:
  • java.lang.IllegalStateException – if the server is not connected
  • java.io.IOException – if there is an error talking to the server
  • AnalysisServerException – if the request fails
  • java.lang.InterruptedException – if the current thread is interrupted waiting for the response

getByUrl

Convenience overload of 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 results
  • url – the URL to retrieve
  • isBinaryFile – 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!)
Throws:
  • java.lang.IllegalStateException – if the server is not connected
  • java.io.IOException – if there is an error talking to the server
  • AnalysisServerException – if the request fails
  • java.lang.InterruptedException – if the current thread is interrupted waiting for the response

getDimensionsAsync

Set the dimensions of an array. Parameters:
  • fullPropertyName – the full property name
  • callback – the callback for when the response is received
Throws:
  • java.lang.IllegalStateException – if the server is not connected
  • java.io.IOException – on communications error

getDimensions

Set the dimensions of an array. Parameters:
  • fullPropertyName – the full property name
Returns:
  • the dimensions
Throws:
  • java.lang.IllegalStateException – if the server is not connected
  • java.io.IOException – if there is an error talking to the server
  • AnalysisServerException – if the request fails
  • java.lang.InterruptedException – if the current thread is interrupted waiting for the response

setDimensionsAsync

Set the dimensions of an array. Parameters:
  • fullPropertyName – the full property name
  • dimensions – the dimensions
  • callback – the callback for when the response is received
Throws:
  • java.lang.IllegalStateException – if the server is not connected
  • java.io.IOException – on communications error
  • java.lang.NullPointerException – if dimensions is null
  • java.lang.IllegalArgumentException – if any of the dimensions are invalid

setDimensions

Set the dimensions of an array. Parameters:
  • fullPropertyName – the full property name
  • dimensions – the dimensions
Throws:
  • java.lang.IllegalStateException – if the server is not connected
  • java.io.IOException – if there is an error talking to the server
  • AnalysisServerException – if the request fails
  • java.lang.InterruptedException – if the current thread is interrupted waiting for the response
  • java.lang.NullPointerException – if dimensions is null
  • java.lang.IllegalArgumentException – if any of the dimensions are invalid

setByUrlAsync

Set the URL associated with a property Parameters:
  • fullPropertyName – the full property name
  • url – the URL to set
  • callback – the callback for when the response is received
Throws:
  • java.lang.IllegalStateException – if the server is not connected
  • java.io.IOException – on communications error

setByUrl

Set the URL of a file property. Parameters:
  • fullPropertyName – the full property name
  • url – the URL to set
Throws:
  • java.lang.IllegalStateException – if the server is not connected
  • java.io.IOException – if there is an error talking to the server
  • AnalysisServerException – if the request fails
  • java.lang.InterruptedException – if the current thread is interrupted waiting for the response

setDictionary

Set dictionary on Server. Parameters:
  • xml – context information in form of a xml string
Throws:
  • java.lang.IllegalStateException – if the server is not connected
  • java.io.IOException – if there is an error talking to the server
  • AnalysisServerException – if the request fails
  • java.lang.InterruptedException – if the current thread is interrupted waiting for the response

setDictionaryAsync

Set dictionary on Server. Parameters:
  • xml – context information in form of a xml string
  • callback – the callback for when the response is received
Throws:
  • java.lang.IllegalStateException – if the server is not connected
  • java.io.IOException – on communications error
  • java.lang.NullPointerException – if xml is null

setAsync

Set the value of a property. Parameters:
  • fullPropertyName – the full property name
  • value – the value to set
  • callback – the callback for when the response is received
Throws:
  • java.lang.IllegalStateException – if the server is not connected
  • java.io.IOException – on communications error

set

Set the value of a property. Parameters:
  • fullPropertyName – the full property name
  • value – the value to set (if this is aFileor (@link PHXTempFile), set(java.lang.String, java.io.File) will be called automatically)
Throws:
  • java.lang.IllegalStateException – if the server is not connected
  • java.io.IOException – if there is an error talking to the server
  • AnalysisServerException – if the request fails
  • java.lang.InterruptedException – if the current thread is interrupted waiting for the response

setAsync

Set a file variable on the server. Parameters:
  • fullPropertyName - the full property name to set
  • contents - the contents to set
  • callback - the callback for when the response is received
Throws:
  • java.lang.IllegalStateException - if the server is not connected
  • java.io.IOException - if there is an error talking to the server or reading from the file
  • java.lang.UnsupportedOperationException - if the server does not support file transfer

setAsync

Set a file variable on the server. Parameters:
  • fullPropertyName - the full property name to set
  • contents - the contents to set
  • encoding - the text encoding to use for non-file variables, null for file variables
  • callback - the callback for when the response is received
Throws:
  • java.lang.IllegalStateException - if the server is not connected
  • java.io.IOException - if there is an error talking to the server or reading from the file
  • java.lang.UnsupportedOperationException - if the server does not support file transfer

set

Set a file variable on the server. Parameters:
  • fullPropertyName - the full property name to set
  • contents - the contents to set
Throws:
  • java.lang.IllegalStateException - if the server is not connected
  • java.io.IOException - if there is an error talking to the server or reading from the file
  • AnalysisServerException - if the request fails
  • java.lang.InterruptedException - if the current thread is interrupted waiting for the response
  • java.lang.UnsupportedOperationException - if the server does not support binary transfer

set

Set a file variable on the server. Parameters:
  • fullPropertyName - the full property name to set
  • contents - the contents to set
  • encoding - the text encoding to use for non-file variables, null for file variables
Throws:
  • java.lang.IllegalStateException - if the server is not connected
  • java.io.IOException - if there is an error talking to the server or reading from the file
  • AnalysisServerException - if the request fails
  • java.lang.InterruptedException - if the current thread is interrupted waiting for the response
  • java.lang.UnsupportedOperationException - if the server does not support binary transfer

getVersionHistoryAsync

Get the version history of an analysis. Parameters:
  • analysis - the analysis to retrieve info for
  • callback - the callback for when the response is received
Throws:
  • java.lang.IllegalStateException - if the server is not connected
  • java.io.IOException - on communications error

getVersionHistory

Get the version history of an analysis. Parameters:
  • analysis - the analysis to retrieve info for
Returns:
  • the version history information
Throws:
  • java.lang.IllegalStateException - if the server is not connected
  • java.io.IOException - if there is an error talking to the server
  • AnalysisServerException - if the request fails
  • java.lang.InterruptedException - if the current thread is interrupted waiting for the response

describeAsync

Get the description history of an analysis. Parameters:
  • analysis - the analysis to retrieve info for
  • callback - the callback for when the response is received
Throws:
  • java.lang.IllegalStateException - if the server is not connected
  • java.io.IOException - on communications error

describe

Get the description of an analysis. Parameters:
  • analysis - the analysis to retrieve info for
Returns:
  • the version history information
Throws:
  • java.lang.IllegalStateException - if the server is not connected
  • java.io.IOException - if there is an error talking to the server
  • AnalysisServerException - if the request fails
  • java.lang.InterruptedException - if the current thread is interrupted waiting for the response

listPropertiesAsync

List the properties of an analysis. Parameters:
  • analysis - the analysis to retrieve info for
  • callback - the callback for when the response is received
Throws:
  • java.lang.IllegalStateException - if the server is not connected
  • java.io.IOException - on communications error

listProperties

List the properties of an analysis. Parameters:
  • analysis - the analysis to retrieve info for
Returns:
  • the property list
Throws:
  • java.lang.IllegalStateException - if the server is not connected
  • java.io.IOException - if there is an error talking to the server
  • AnalysisServerException - if the request fails
  • java.lang.InterruptedException - if the current thread is interrupted waiting for the response

listMethodsAsync

List the methods of an analysis. Parameters:
  • analysis - the analysis to retrieve info for
  • callback - the callback for when the response is received
Throws:
  • java.lang.IllegalStateException - if the server is not connected
  • java.io.IOException - on communications error

listMethods

List the methods of an analysis. Parameters:
  • analysis - the analysis to retrieve info for
Returns:
  • the method list
Throws:
  • java.lang.IllegalStateException - if the server is not connected
  • java.io.IOException - if there is an error talking to the server
  • AnalysisServerException - if the request fails
  • java.lang.InterruptedException - if the current thread is interrupted waiting for the response

invokeAsync

Invoke a method on a component instance. Parameters:
  • instanceName - the name of the instance to invoke the method for
  • methodName - the method name to invoke
  • callback - the callback for when the response is received
Throws:
  • java.lang.IllegalStateException - if the server is not connected
  • java.io.IOException - on communications error

invoke

Invoke a method on a component instance. Parameters:
  • instanceName - the name of the instance to invoke the method for
  • methodName - the method name to invoke
Returns:
  • whatever the method returned
Throws:
  • java.lang.IllegalStateException - if the server is not connected
  • java.io.IOException - if there is an error talking to the server
  • AnalysisServerException - if the request fails
  • java.lang.InterruptedException - if the current thread is interrupted waiting for the response

listValuesAsync

List the values of an analysis. Parameters:
  • analysis - the analysis to retrieve info for
  • callback - the callback for when the response is received
Throws:
  • java.lang.IllegalStateException - if the server is not connected
  • java.io.IOException - on communications error

listValues

List the values of an analysis. Parameters:
  • analysis - the analysis to retrieve info for
Returns:
  • the value list
Throws:
  • java.lang.IllegalStateException - if the server is not connected
  • java.io.IOException - if there is an error talking to the server
  • AnalysisServerException - if the request fails
  • java.lang.InterruptedException - if the current thread is interrupted waiting for the response

listFoldersAsync

List the sub-folders of a folder on the server. Parameters:
  • folderPath - the folder path; may be null
  • callback - the callback for when the response is received
Throws:
  • java.lang.IllegalStateException - if the server is not connected
  • java.io.IOException - on communications error

listFolders

List the sub-folders of a folder on the server. Parameters:
  • folderPath - the folder path; may be null
Returns:
  • the list of folders
Throws:
  • java.lang.IllegalStateException - if the server is not connected
  • java.io.IOException - if there is an error talking to the server
  • AnalysisServerException - if the request fails
  • java.lang.InterruptedException - if the current thread is interrupted waiting for the response

listInstancesAsync

List running instances on the server. Parameters:
  • callback - the callback for when the response is received
Throws:
  • java.lang.IllegalStateException - if the server is not connected
  • java.io.IOException - on communications error

listInstances

List running instances on the server. Returns:
  • the list of folders
Throws:
  • java.lang.IllegalStateException - if the server is not connected
  • java.io.IOException - if there is an error talking to the server
  • AnalysisServerException - if the request fails
  • java.lang.InterruptedException - if the current thread is interrupted waiting for the response

getHierarchyAsync

Get the variable hierarchy of a running instance. Parameters:
  • instanceName - the name of the instance to retrieve variables for
  • fileMode - the way to return files
  • callback - the callback for when the response is received
Throws:
  • java.lang.IllegalStateException - if the server is not connected
  • java.io.IOException - on communications error

getHierarchy

Get the variable hierarchy of a running instance. Parameters:
  • instanceName - the name of the instance to retrieve variables for
  • fileMode - the way to return files
Returns:
  • the hierarchy (a map from variable paths to values)
Throws:
  • java.lang.IllegalStateException - if the server is not connected
  • java.io.IOException - if there is an error talking to the server
  • AnalysisServerException - if the request fails
  • java.lang.InterruptedException - if the current thread is interrupted waiting for the response

setHierarchyAsync

Set the variable hierarchy of a running instance. Parameters:
  • instanceName - the name of the instance to retrieve variables for
  • variables - the variables and values to set
Throws:
  • java.lang.IllegalStateException - if the server is not connected
  • java.io.IOException - on communications error

setHierarchy

Set the variable hierarchy of a running instance. Parameters:
  • instanceName - the name of the instance to retrieve variables for
  • variables - the variables and values to set
Throws:
  • java.lang.IllegalStateException - if the server is not connected
  • java.io.IOException - if there is an error talking to the server
  • AnalysisServerException - if the request fails
  • java.lang.InterruptedException - if the current thread is interrupted waiting for the response

setHierarchyAsync

Set the variable hierarchy of a running instance. Parameters:
  • instanceName - the name of the instance to retrieve variables for
  • xmlData - the file containing XML data to set
  • xmlEncoding - the encoding of the data; null or empty for default (UTF-8)
  • gzipped - whether the file on disk has been gzipped
Throws:
  • java.lang.IllegalStateException - if the server is not connected
  • java.io.IOException - on communications error

setHierarchy

Set the variable hierarchy of a running instance. Parameters:
  • instanceName - the name of the instance to retrieve variables for
  • xmlData - the file containing XML data to set
  • xmlEncoding - the encoding of the data; null or empty for default (UTF-8)
  • gzipped - whether the file on disk has been gzipped
Throws:
  • java.lang.IllegalStateException - if the server is not connected
  • java.io.IOException - if there is an error talking to the server
  • AnalysisServerException - if the request fails
  • java.lang.InterruptedException - if the current thread is interrupted waiting for the response

deleteRunShareAsync

Delete a run share. Parameters:
  • key - the unique key for the share
Throws:
  • java.lang.IllegalStateException - if the server is not connected
  • java.io.IOException - on communications error

deleteRunShare

Delete a run share. Parameters:
  • key - the unique key for the share
Throws:
  • java.lang.IllegalStateException - if the server is not connected
  • java.io.IOException - if there is an error talking to the server
  • AnalysisServerException - if the request fails
  • java.lang.InterruptedException - if the current thread is interrupted waiting for the response

getIconAsync

Retrieve an icon. Parameters:
  • analysis - the analysis to get the icon for
Throws:
  • java.lang.IllegalStateException - if the server is not connected
  • java.io.IOException - on communications error

getIcon

Retrieve an icon. Parameters:
  • analysis - the analysis to get the icon for
Returns:
  • the icon
Throws:
  • java.lang.IllegalStateException - if the server is not connected
  • java.io.IOException - if there is an error talking to the server
  • AnalysisServerException - if the request fails
  • java.lang.InterruptedException - if the current thread is interrupted waiting for the response

setServerPropertiesAsync

Set server properties. Parameters:
  • propertyMap - a map of keys to values
Throws:
  • java.lang.IllegalStateException - if the server is not connected
  • java.io.IOException - on communications error

setServerProperties

Set server properties. Parameters:
  • propertyMap - a map of keys to values
Throws:
  • java.lang.IllegalStateException - if the server is not connected
  • java.io.IOException - if there is an error talking to the server
  • AnalysisServerException - if the request fails
  • java.lang.InterruptedException - if the current thread is interrupted waiting for the response

getSystemPropertyAsync

Request for the server’s system property. Parameters:
  • key - the name of the system property
  • callback - the callback for when the response is received
Throws:
  • java.lang.IllegalStateException - if the server is not connected
  • java.io.IOException - on communications error

getSystemProperty

Request for the server’s system property. Parameters:
  • key - the name of the system property
Returns:
  • the property value
Throws:
  • java.lang.IllegalStateException - if the server is not connected
  • java.io.IOException - if there is an error talking to the server
  • AnalysisServerException - if the request fails
  • java.lang.InterruptedException - if the current thread is interrupted waiting for the response

getScratchDirectoryAsync

Request for the server’s scratch directory. Parameters:
  • callback - the callback for when the response is received
Throws:
  • java.lang.IllegalStateException - if the server is not connected
  • java.io.IOException - on communications error

getScratchDirectory

Request for the server’s scratch directory. Returns:
  • the scratch directory of the connected MCRE
Throws:
  • java.lang.IllegalStateException - if the server is not connected
  • java.io.IOException - if there is an error talking to the server
  • AnalysisServerException - if the request fails
  • java.lang.InterruptedException - if the current thread is interrupted waiting for the response