Class ManagedClusterService
- java.lang.Object
-
- org.apache.camel.management.mbean.ManagedClusterService
-
- All Implemented Interfaces:
org.apache.camel.api.management.mbean.ManagedClusterServiceMBean
public class ManagedClusterService extends Object implements org.apache.camel.api.management.mbean.ManagedClusterServiceMBean
-
-
Constructor Summary
Constructors Constructor Description ManagedClusterService(org.apache.camel.CamelContext context, org.apache.camel.cluster.CamelClusterService service)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCamelId()org.apache.camel.CamelContextgetContext()Collection<String>getNamespaces()org.apache.camel.cluster.CamelClusterServicegetService()StringgetState()voidinit(org.apache.camel.spi.ManagementStrategy strategy)booleanisLeader(String namespace)voidstart()voidstartView(String namespace)voidstop()voidstopView(String namespace)
-
-
-
Constructor Detail
-
ManagedClusterService
public ManagedClusterService(org.apache.camel.CamelContext context, org.apache.camel.cluster.CamelClusterService service)
-
-
Method Detail
-
init
public void init(org.apache.camel.spi.ManagementStrategy strategy)
-
getContext
public org.apache.camel.CamelContext getContext()
-
getService
public org.apache.camel.cluster.CamelClusterService getService()
-
start
public void start() throws Exception
- Specified by:
startin interfaceorg.apache.camel.api.management.mbean.ManagedClusterServiceMBean- Throws:
Exception
-
stop
public void stop() throws Exception
- Specified by:
stopin interfaceorg.apache.camel.api.management.mbean.ManagedClusterServiceMBean- Throws:
Exception
-
getState
public String getState()
- Specified by:
getStatein interfaceorg.apache.camel.api.management.mbean.ManagedClusterServiceMBean
-
getCamelId
public String getCamelId()
- Specified by:
getCamelIdin interfaceorg.apache.camel.api.management.mbean.ManagedClusterServiceMBean
-
getNamespaces
public Collection<String> getNamespaces()
- Specified by:
getNamespacesin interfaceorg.apache.camel.api.management.mbean.ManagedClusterServiceMBean
-
startView
public void startView(String namespace) throws Exception
- Specified by:
startViewin interfaceorg.apache.camel.api.management.mbean.ManagedClusterServiceMBean- Throws:
Exception
-
stopView
public void stopView(String namespace) throws Exception
- Specified by:
stopViewin interfaceorg.apache.camel.api.management.mbean.ManagedClusterServiceMBean- Throws:
Exception
-
-