@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.ManagedServiceMBeanpublic 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.ManagedServiceMBeanpublic String getCamelId()
getCamelId in interface org.apache.camel.api.management.mbean.ManagedServiceMBeanpublic String getCamelManagementName()
getCamelManagementName in interface org.apache.camel.api.management.mbean.ManagedServiceMBeanpublic String getRouteId()
getRouteId in interface org.apache.camel.api.management.mbean.ManagedServiceMBeanpublic String getServiceType()
getServiceType in interface org.apache.camel.api.management.mbean.ManagedServiceMBeanpublic void start() throws Exception
start in interface org.apache.camel.api.management.mbean.ManagedServiceMBeanExceptionpublic void stop() throws Exception
stop in interface org.apache.camel.api.management.mbean.ManagedServiceMBeanExceptionpublic boolean isSupportSuspension()
isSupportSuspension in interface org.apache.camel.api.management.mbean.ManagedServiceMBeanpublic boolean isSuspended()
isSuspended in interface org.apache.camel.api.management.mbean.ManagedServiceMBeanpublic void suspend() throws Exception
suspend in interface org.apache.camel.api.management.mbean.ManagedServiceMBeanExceptionpublic void resume() throws Exception
resume in interface org.apache.camel.api.management.mbean.ManagedServiceMBeanExceptionpublic Object getInstance()
getInstance in interface org.apache.camel.api.management.ManagedInstanceApache Camel