@ManagedResource(description="Managed Service") public class ManagedService extends Object implements org.apache.camel.api.management.ManagedInstance, org.apache.camel.api.management.mbean.ManagedServiceMBean
Constructor and Description |
---|
ManagedService(org.apache.camel.CamelContext context,
org.apache.camel.Service service) |
Modifier and Type | Method and Description |
---|---|
String |
getCamelId() |
String |
getCamelManagementName() |
org.apache.camel.CamelContext |
getContext() |
Object |
getInstance() |
org.apache.camel.Route |
getRoute() |
String |
getRouteId() |
org.apache.camel.Service |
getService() |
String |
getServiceType() |
String |
getState() |
void |
init(org.apache.camel.spi.ManagementStrategy strategy) |
boolean |
isStaticService() |
boolean |
isSupportSuspension() |
boolean |
isSuspended() |
void |
resume() |
void |
setRoute(org.apache.camel.Route route) |
void |
start() |
void |
stop() |
void |
suspend() |
public ManagedService(org.apache.camel.CamelContext context, org.apache.camel.Service service)
public void init(org.apache.camel.spi.ManagementStrategy strategy)
public boolean isStaticService()
isStaticService
in interface org.apache.camel.api.management.mbean.ManagedServiceMBean
public org.apache.camel.Service getService()
public org.apache.camel.CamelContext getContext()
public org.apache.camel.Route getRoute()
public void setRoute(org.apache.camel.Route route)
public String getState()
getState
in interface org.apache.camel.api.management.mbean.ManagedServiceMBean
public String getCamelId()
getCamelId
in interface org.apache.camel.api.management.mbean.ManagedServiceMBean
public String getCamelManagementName()
getCamelManagementName
in interface org.apache.camel.api.management.mbean.ManagedServiceMBean
public String getRouteId()
getRouteId
in interface org.apache.camel.api.management.mbean.ManagedServiceMBean
public String getServiceType()
getServiceType
in interface org.apache.camel.api.management.mbean.ManagedServiceMBean
public void start() throws Exception
start
in interface org.apache.camel.api.management.mbean.ManagedServiceMBean
Exception
public void stop() throws Exception
stop
in interface org.apache.camel.api.management.mbean.ManagedServiceMBean
Exception
public boolean isSupportSuspension()
isSupportSuspension
in interface org.apache.camel.api.management.mbean.ManagedServiceMBean
public boolean isSuspended()
isSuspended
in interface org.apache.camel.api.management.mbean.ManagedServiceMBean
public void suspend() throws Exception
suspend
in interface org.apache.camel.api.management.mbean.ManagedServiceMBean
Exception
public void resume() throws Exception
resume
in interface org.apache.camel.api.management.mbean.ManagedServiceMBean
Exception
public Object getInstance()
getInstance
in interface org.apache.camel.api.management.ManagedInstance
Apache Camel