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