@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 ManagedServiceMBean
public Service getService()
public CamelContext getContext()
public String getState()
getState
in interface ManagedServiceMBean
public String getCamelId()
getCamelId
in interface ManagedServiceMBean
public String getCamelManagementName()
getCamelManagementName
in interface ManagedServiceMBean
public String getRouteId()
getRouteId
in interface ManagedServiceMBean
public String getServiceType()
getServiceType
in interface ManagedServiceMBean
public void start() throws Exception
start
in interface ManagedServiceMBean
Exception
public void stop() throws Exception
stop
in interface ManagedServiceMBean
Exception
public boolean isSupportSuspension()
isSupportSuspension
in interface ManagedServiceMBean
public boolean isSuspended()
isSuspended
in interface ManagedServiceMBean
public void suspend() throws Exception
suspend
in interface ManagedServiceMBean
Exception
public void resume() throws Exception
resume
in interface ManagedServiceMBean
Exception
public Object getInstance()
ManagedInstance
getInstance
in interface ManagedInstance
Processor
, Consumer
etc.Apache Camel