public class ManagedClusterService extends Object implements org.apache.camel.api.management.mbean.ManagedClusterServiceMBean
Constructor and Description |
---|
ManagedClusterService(org.apache.camel.CamelContext context,
org.apache.camel.cluster.CamelClusterService service) |
Modifier and Type | Method and Description |
---|---|
String |
getCamelId() |
org.apache.camel.CamelContext |
getContext() |
Collection<String> |
getNamespaces() |
org.apache.camel.cluster.CamelClusterService |
getService() |
String |
getState() |
void |
init(org.apache.camel.spi.ManagementStrategy strategy) |
boolean |
isLeader(String namespace) |
void |
start() |
void |
startView(String namespace) |
void |
stop() |
void |
stopView(String namespace) |
public ManagedClusterService(org.apache.camel.CamelContext context, org.apache.camel.cluster.CamelClusterService service)
public void init(org.apache.camel.spi.ManagementStrategy strategy)
public org.apache.camel.CamelContext getContext()
public org.apache.camel.cluster.CamelClusterService getService()
public void start() throws Exception
start
in interface org.apache.camel.api.management.mbean.ManagedClusterServiceMBean
Exception
public void stop() throws Exception
stop
in interface org.apache.camel.api.management.mbean.ManagedClusterServiceMBean
Exception
public String getState()
getState
in interface org.apache.camel.api.management.mbean.ManagedClusterServiceMBean
public String getCamelId()
getCamelId
in interface org.apache.camel.api.management.mbean.ManagedClusterServiceMBean
public Collection<String> getNamespaces()
getNamespaces
in interface org.apache.camel.api.management.mbean.ManagedClusterServiceMBean
public void startView(String namespace) throws Exception
startView
in interface org.apache.camel.api.management.mbean.ManagedClusterServiceMBean
Exception
public void stopView(String namespace) throws Exception
stopView
in interface org.apache.camel.api.management.mbean.ManagedClusterServiceMBean
Exception
Apache Camel