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 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()
-
-
-
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:
isStaticService
in 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:
getState
in interfaceorg.apache.camel.api.management.mbean.ManagedServiceMBean
-
getCamelId
public String getCamelId()
- Specified by:
getCamelId
in interfaceorg.apache.camel.api.management.mbean.ManagedServiceMBean
-
getCamelManagementName
public String getCamelManagementName()
- Specified by:
getCamelManagementName
in interfaceorg.apache.camel.api.management.mbean.ManagedServiceMBean
-
getRouteId
public String getRouteId()
- Specified by:
getRouteId
in interfaceorg.apache.camel.api.management.mbean.ManagedServiceMBean
-
getServiceType
public String getServiceType()
- Specified by:
getServiceType
in interfaceorg.apache.camel.api.management.mbean.ManagedServiceMBean
-
start
public void start() throws Exception
- Specified by:
start
in interfaceorg.apache.camel.api.management.mbean.ManagedServiceMBean
- Throws:
Exception
-
stop
public void stop() throws Exception
- Specified by:
stop
in interfaceorg.apache.camel.api.management.mbean.ManagedServiceMBean
- Throws:
Exception
-
isSupportSuspension
public boolean isSupportSuspension()
- Specified by:
isSupportSuspension
in interfaceorg.apache.camel.api.management.mbean.ManagedServiceMBean
-
isSuspended
public boolean isSuspended()
- Specified by:
isSuspended
in interfaceorg.apache.camel.api.management.mbean.ManagedServiceMBean
-
suspend
public void suspend() throws Exception
- Specified by:
suspend
in interfaceorg.apache.camel.api.management.mbean.ManagedServiceMBean
- Throws:
Exception
-
resume
public void resume() throws Exception
- Specified by:
resume
in interfaceorg.apache.camel.api.management.mbean.ManagedServiceMBean
- Throws:
Exception
-
getInstance
public Object getInstance()
- Specified by:
getInstance
in interfaceorg.apache.camel.api.management.ManagedInstance
-
-