To retrieve the operational state of a resource adaptor entity, use the following rhino-console command or related MBean operation.
Console command: getraentitystate
Command |
getraentitystate <entity-name> [-nodes node1,node2,...] Description Get the state of a resource adaptor entity (on the specified nodes) |
---|---|
Output |
The |
Examples |
To display the state of the resource adaptor entity with the name $ ./rhino-console getraentitystate sipra Resource adaptor entity is Inactive on node 101 Resource adaptor entity is Active on node 102 To display the state of the resource adaptor entity on only node 101: $ ./rhino-console getraentitystate sipra -nodes 101 Resource adaptor entity is Inactive on node 101 |
MBean operation: getState
MBean |
|
---|---|
SLEE-defined |
Return state of resource adaptor entity on current node
public ResourceAdaptorEntityState getState(String entityName) throws NullPointerException, UnrecognizedResourceAdaptorEntityException, ManagementException; Rhino’s implementation of the SLEE-defined |
Rhino extension |
Return state of resource adaptor entity on specified node(s)
public ResourceAdaptorEntityState[] getState(String entityName, int[] nodeIDs) throws NullPointerException, InvalidArgumentException, UnrecognizedResourceAdaptorEntityException, ManagementException; Rhino provides an extension that adds an argument which lets you control the nodes on which to return the state of the resource adaptor entity (by specifying node IDs). |