|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.petals.jmx.AbstractServiceClient
org.ow2.petals.jmx.ComponentClient
public final class ComponentClient
Client API of a JMX component associated to a JBI component.
| Nested Class Summary | |
|---|---|
static class |
ComponentClient.State
Component states |
| Field Summary | |
|---|---|
protected static java.lang.String |
GET_CURRENT_STATE
Action : get current state |
protected static java.lang.String |
SHUTDOWN
Action : shutdown a component |
protected static java.lang.String |
START
Action : start a component |
protected static java.lang.String |
STOP
Action : stop a component |
| Fields inherited from class org.ow2.petals.jmx.AbstractServiceClient |
|---|
JMX_FIELD_NAME, JMX_FIELD_TYPE, JMX_SERVICE_TYPE, mbeanName, mBeanServerConnection, petalsDomain |
| Constructor Summary | |
|---|---|
ComponentClient(javax.management.ObjectName componentObjectName,
javax.management.MBeanServerConnection mBeanServerConnection)
Creates a new instance of ComponentClient |
|
ComponentClient(java.lang.String petalsDomain,
java.lang.String componentName,
javax.management.MBeanServerConnection mBeanServerConnection)
Creates a new instance of ComponentClient |
|
| Method Summary | |
|---|---|
java.lang.String |
getState()
Get the current state of the JBI component associated to this JMX component. |
void |
shutdown()
Shutdown the component associated to this JMX component. |
void |
start()
Start the component associated to this JMX component. |
void |
stop()
Stop the component associated to this JMX component. |
| Methods inherited from class org.ow2.petals.jmx.AbstractServiceClient |
|---|
getAttribute, getAttribute, performAction |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final java.lang.String SHUTDOWN
protected static final java.lang.String START
protected static final java.lang.String STOP
protected static final java.lang.String GET_CURRENT_STATE
| Constructor Detail |
|---|
public ComponentClient(java.lang.String petalsDomain,
java.lang.String componentName,
javax.management.MBeanServerConnection mBeanServerConnection)
throws ComponentDoesNotExistException,
ComponentErrorException
ComponentClient
petalsDomain - componentName - mBeanServerConnection -
ComponentDoesNotExistException
ComponentErrorException
public ComponentClient(javax.management.ObjectName componentObjectName,
javax.management.MBeanServerConnection mBeanServerConnection)
throws ComponentDoesNotExistException,
ComponentErrorException
ComponentClient
componentObjectName - mBeanServerConnection -
ComponentDoesNotExistException
ComponentErrorException| Method Detail |
|---|
public void start()
throws ComponentErrorException
ComponentErrorException
public void stop()
throws ComponentErrorException
ComponentErrorException
public void shutdown()
throws ComponentErrorException
ComponentErrorException
public java.lang.String getState()
throws ComponentErrorException
AttributeErrorException
ComponentErrorException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||