Download Identity Manager User Application: Administration Guide

Transcript
Example
EngineStateArray engineStateArray = stub.getClusterState();
EngineState [] engineState = engineStateArray.getEngineStates();
if(engineState != null)
{
LoggerUtils.sendToLogAndConsole("EngineCount in cluster:" +
engineState.length);
for(int index = 0; index < engineState.length; index++)
{
EngineState engine =
stub.getEngineState(engineState[index].getEngineId() );
LoggerUtils.sendToLogAndConsole(
"Engine Id: " + engine.getEngineId() + "\n" +
"Engine status: " + engine.getEngineStatus() + "\n" +
"Value of engine status: " +
engine.getValueOfEngineStatus() + "\n" +
"Heartbeat: " + ( (engine.getHeartbeat() != null) ?
engine.getHeartbeat().getTime().toString() : "null") + "\n" +
"Shutdown time: " + ((engine.getShutdownTime()!= null)
? engine.getShutdownTime().getTime().toString() : "null") + "\n" +
"Start time: " + ((engine.getStartTime() != null) ?
engine.getStartTime().getTime().toString() : "null") );
}
}
reassignAllProcesses
Used to reassign all processes from the source engine to a list of target engines.
Method Signature
int reassignAllProcesses(java.lang.String sourceEngineId,
com.novell.soa.af.impl.soap.StringArray targetEngineIds)
Parameters
Parameter
Description
sourceEngineId
The Id of the source workflow engine.
targetEngineIds
The Ids of the target workflow engines.
getEngineState
Used to get a list that contains an IEngineState object for each engine in the cluster.
Method Signature
public com.novell.soa.af.impl.soap.EngineState
getEngineState(java.lang.String engineId)
Provisioning Web Service 491