@ManagedResource(componentName="Endpoint", description="Responsible for managing server instances.") public class ManagedEndpoint extends java.lang.Object implements ManagedComponent, ServerLifeCycleListener
| Modifier and Type | Field and Description |
|---|---|
protected Bus |
bus |
protected Endpoint |
endpoint |
static java.lang.String |
ENDPOINT_NAME |
static java.lang.String |
INSTANCE_ID |
protected Server |
server |
static java.lang.String |
SERVICE_NAME |
| Constructor and Description |
|---|
ManagedEndpoint(Bus b,
Endpoint ep,
Server s) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
java.lang.String |
getAddress() |
javax.management.ObjectName |
getObjectName() |
java.lang.String |
getState() |
java.lang.String |
getTransportId() |
void |
start() |
void |
startServer(Server s) |
void |
stop() |
void |
stopServer(Server s) |
public static final java.lang.String ENDPOINT_NAME
public static final java.lang.String SERVICE_NAME
public static final java.lang.String INSTANCE_ID
protected final Bus bus
protected final Endpoint endpoint
protected final Server server
@ManagedOperation public void start()
@ManagedOperation public void stop()
@ManagedOperation public void destroy()
@ManagedAttribute(description="Address Attribute", currencyTimeLimit=60) public java.lang.String getAddress()
@ManagedAttribute(description="TransportId Attribute", currencyTimeLimit=60) public java.lang.String getTransportId()
@ManagedAttribute(description="Server State") public java.lang.String getState()
public javax.management.ObjectName getObjectName()
throws javax.management.JMException
getObjectName in interface ManagedComponentjavax.management.JMExceptionpublic void startServer(Server s)
startServer in interface ServerLifeCycleListenerpublic void stopServer(Server s)
stopServer in interface ServerLifeCycleListener