Operations

Because JMX is stateless communication, all operations have at least two parameters: user and password.

List of operations is the following:

Operation getServerJobs

parameters

Table 13.1. Parameters of getServerJobs

parameter namemandatorytypedescription
useryesString 
passwordyesString 

returns

IDs of running jobs(graphs). IDs may be used as parameters of another operations.

Operation executeGraph

Since: 1.2.1

Executes specified graph. Only user, which has permission to execute the graph may call operation executeGraph(). Otherwise CloverSecurityException is thrown.

parameters

Table 13.2. Parameters of executeGraph

parameter namemandatorytypedescription
useryesString 
passwordyesString 
sandboxyesStringText ID of sandbox which contains graph to execute.
graphIdyesStringText ID of graph. It is path to graph file relative to sandbox root. Only forward slashes may be used.

returns

Result runID of execution or throws an exception.

Operation killGraph

Kill running graph. Only user, which has permission to execute the graph may call operation killGraph() to kill it. Otherwise CloverSecurityException is thrown.

parameters

Table 13.3. Parameters of killGraph

parameter namemandatorytypedescription
useryesString 
passwordyesString 
runIDyeslongRun ID, which may be obtained i.e. by getRunningJobs() operation.

returns

Result status of killed graph. If it is successfully killed, status should be ABORTED.

Operation graphStatus

Since: 1.2.1

Returns current status of specified execution.

parameters

Table 13.4. Parameters of graphStatus

parameter namemandatorytypedescription
useryesString 
passwordyesString 
runIDyeslongRun ID, which is returned by executeGraph method or which may be obtained i.e. by getRunningJobs() operation.

returns

Result status of specified graph execution. Possible values are: FINISHED_OK | RUNNING | N_A | ERROR | ABORTED | READY

Operation suspendServer

Suspends server. Suspended server means that no graph may be executed. All attempts to execute graph will fail. See resumeServer operation. Only administrator can call this operation. Otherwise CloverSecurityException is thrown.

parameters

Table 13.5. Parameters of suspendServer

parameter namemandatorytypedescription
useryesString 
passwordyesString 
atOnceyesbooleanIf this param is set to true, running graphs from suspended server are aborted. Otherwise it can run until it is finished in common way.


returns

void

Operation resumeServer

Resumes suspended server. Only administrator can call this operation. Otherwise CloverSecurityException is thrown. See suspendServer() operation.

parameters

Table 13.6. Parameters of resumeServer

parameter namemandatorytypedescription
useryesString 
passwordyesString 

returns

void

Operation suspendServerSandbox

Suspends specified sandbox. Suspended sandbox means that no graph from sandbox may be executed. All attempts to execute graph will fail. See resumeServerSandbox operation. Only administrator can call this operation. Otherwise CloverSecurityException is thrown.

parameters

Table 13.7. Parameters of suspendServerSandbox

parameter namemandatorytypedescription
useryesString 
passwordyesString 
sandboxyesStringText ID of sandbox to suspend
atOnceyesbooleanIf this param is set to true, running graphs from suspended sandbox are aborted. Otherwise it can run until it is finished in common way.

returns

void

Operation resumeServerSandbox

Resumes suspended sandbox. Only administrator can call this operation. Otherwise CloverSecurityException is thrown. See suspendServerSandbox() operation.

parameters

Table 13.8. Parameters of resumeServerSandbox

parameter namemandatorytypedescription
useryesString 
passwordyesString 
sandboxyesStringText ID of sandbox to suspend

returns

void

Operation getGraphExecutionMBeanName

Returns MBean name of running graph. It may be used for direct monitoring of the transformation. However in cluster environment, MBean is accessible only on the node, which runs graph.

parameters

Table 13.9. Parameters of getGraphExecutionMBeanName

parameter namemandatorytypedescription
useryesString 
passwordyesString 
runIDyeslongRun ID, which may be obtained i.e. by getRunningJobs() operation.

returns

MBean name