@ManagedResource(componentName="Endpoint", description="Responsible for managing server instances.") public class ManagedEndpoint extends Object implements ManagedComponent, ServerLifeCycleListener
Modifier and Type | Field and Description |
---|---|
protected Bus |
bus |
protected Endpoint |
endpoint |
static String |
ENDPOINT_NAME |
static String |
INSTANCE_ID |
protected Server |
server |
static String |
SERVICE_NAME |
Constructor and Description |
---|
ManagedEndpoint(Bus b,
Endpoint ep,
Server s) |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
String |
getAddress() |
ObjectName |
getObjectName() |
String |
getState() |
String |
getTransportId() |
void |
start() |
void |
startServer(Server s) |
void |
stop() |
void |
stopServer(Server s) |
public static final String ENDPOINT_NAME
public static final String SERVICE_NAME
public static final 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 String getAddress()
@ManagedAttribute(description="TransportId Attribute", currencyTimeLimit=60) public String getTransportId()
@ManagedAttribute(description="Server State") public String getState()
public ObjectName getObjectName() throws JMException
getObjectName
in interface ManagedComponent
JMException
public void startServer(Server s)
startServer
in interface ServerLifeCycleListener
public void stopServer(Server s)
stopServer
in interface ServerLifeCycleListener
Copyright © 2016 JBoss by Red Hat. All rights reserved.