@ManagedResource(description="Managed Service") public class ManagedService extends Object implements ManagedInstance, ManagedServiceMBean
| Constructor and Description |
|---|
ManagedService(CamelContext context,
Service service) |
| Modifier and Type | Method and Description |
|---|---|
String |
getCamelId() |
String |
getCamelManagementName() |
CamelContext |
getContext() |
Object |
getInstance()
Gets the resource which is being managed.
|
Route |
getRoute() |
String |
getRouteId() |
Service |
getService() |
String |
getServiceType() |
String |
getState() |
void |
init(ManagementStrategy strategy) |
boolean |
isStaticService() |
boolean |
isSupportSuspension() |
boolean |
isSuspended() |
void |
resume() |
void |
setRoute(Route route) |
void |
start() |
void |
stop() |
void |
suspend() |
public ManagedService(CamelContext context, Service service)
public void init(ManagementStrategy strategy)
public boolean isStaticService()
isStaticService in interface ManagedServiceMBeanpublic Service getService()
public CamelContext getContext()
public Route getRoute()
public void setRoute(Route route)
public String getState()
getState in interface ManagedServiceMBeanpublic String getCamelId()
getCamelId in interface ManagedServiceMBeanpublic String getCamelManagementName()
getCamelManagementName in interface ManagedServiceMBeanpublic String getRouteId()
getRouteId in interface ManagedServiceMBeanpublic String getServiceType()
getServiceType in interface ManagedServiceMBeanpublic void start()
throws Exception
start in interface ManagedServiceMBeanExceptionpublic void stop()
throws Exception
stop in interface ManagedServiceMBeanExceptionpublic boolean isSupportSuspension()
isSupportSuspension in interface ManagedServiceMBeanpublic boolean isSuspended()
isSuspended in interface ManagedServiceMBeanpublic void suspend()
throws Exception
suspend in interface ManagedServiceMBeanExceptionpublic void resume()
throws Exception
resume in interface ManagedServiceMBeanExceptionpublic Object getInstance()
ManagedInstancegetInstance in interface ManagedInstanceProcessor, Consumer etc.Apache Camel