Class ManagedService
- java.lang.Object
-
- org.apache.camel.management.mbean.ManagedService
-
- All Implemented Interfaces:
org.apache.camel.api.management.ManagedInstance,org.apache.camel.api.management.mbean.ManagedServiceMBean
- Direct Known Subclasses:
ManagedAsyncProcessorAwaitManager,ManagedBeanIntrospection,ManagedConsumer,ManagedConsumerCache,ManagedEndpointRegistry,ManagedExchangeFactoryManager,ManagedInflightRepository,ManagedProducer,ManagedProducerCache,ManagedRestRegistry,ManagedRouteController,ManagedRuntimeEndpointRegistry,ManagedStreamCachingStrategy,ManagedSupervisingRouteController,ManagedThrottlingExceptionRoutePolicy,ManagedThrottlingInflightRoutePolicy,ManagedTransformerRegistry,ManagedTypeConverterRegistry,ManagedValidatorRegistry
@ManagedResource(description="Managed Service") public class ManagedService extends Object implements org.apache.camel.api.management.ManagedInstance, org.apache.camel.api.management.mbean.ManagedServiceMBean
-
-
Constructor Summary
Constructors Constructor Description ManagedService(org.apache.camel.CamelContext context, org.apache.camel.Service service)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCamelId()StringgetCamelManagementName()org.apache.camel.CamelContextgetContext()ObjectgetInstance()org.apache.camel.RoutegetRoute()StringgetRouteId()org.apache.camel.ServicegetService()StringgetServiceType()StringgetState()voidinit(org.apache.camel.spi.ManagementStrategy strategy)booleanisStaticService()booleanisSupportSuspension()booleanisSuspended()voidresume()voidsetRoute(org.apache.camel.Route route)voidstart()voidstop()voidsuspend()
-
-
-
Constructor Detail
-
ManagedService
public ManagedService(org.apache.camel.CamelContext context, org.apache.camel.Service service)
-
-
Method Detail
-
init
public void init(org.apache.camel.spi.ManagementStrategy strategy)
-
isStaticService
public boolean isStaticService()
- Specified by:
isStaticServicein interfaceorg.apache.camel.api.management.mbean.ManagedServiceMBean
-
getService
public org.apache.camel.Service getService()
-
getContext
public org.apache.camel.CamelContext getContext()
-
getRoute
public org.apache.camel.Route getRoute()
-
setRoute
public void setRoute(org.apache.camel.Route route)
-
getState
public String getState()
- Specified by:
getStatein interfaceorg.apache.camel.api.management.mbean.ManagedServiceMBean
-
getCamelId
public String getCamelId()
- Specified by:
getCamelIdin interfaceorg.apache.camel.api.management.mbean.ManagedServiceMBean
-
getCamelManagementName
public String getCamelManagementName()
- Specified by:
getCamelManagementNamein interfaceorg.apache.camel.api.management.mbean.ManagedServiceMBean
-
getRouteId
public String getRouteId()
- Specified by:
getRouteIdin interfaceorg.apache.camel.api.management.mbean.ManagedServiceMBean
-
getServiceType
public String getServiceType()
- Specified by:
getServiceTypein interfaceorg.apache.camel.api.management.mbean.ManagedServiceMBean
-
start
public void start() throws Exception
- Specified by:
startin interfaceorg.apache.camel.api.management.mbean.ManagedServiceMBean- Throws:
Exception
-
stop
public void stop() throws Exception
- Specified by:
stopin interfaceorg.apache.camel.api.management.mbean.ManagedServiceMBean- Throws:
Exception
-
isSupportSuspension
public boolean isSupportSuspension()
- Specified by:
isSupportSuspensionin interfaceorg.apache.camel.api.management.mbean.ManagedServiceMBean
-
isSuspended
public boolean isSuspended()
- Specified by:
isSuspendedin interfaceorg.apache.camel.api.management.mbean.ManagedServiceMBean
-
suspend
public void suspend() throws Exception
- Specified by:
suspendin interfaceorg.apache.camel.api.management.mbean.ManagedServiceMBean- Throws:
Exception
-
resume
public void resume() throws Exception
- Specified by:
resumein interfaceorg.apache.camel.api.management.mbean.ManagedServiceMBean- Throws:
Exception
-
getInstance
public Object getInstance()
- Specified by:
getInstancein interfaceorg.apache.camel.api.management.ManagedInstance
-
-