public class ZooKeeperFacade extends Object implements ZooKeeperFacadeMXBean
| Constructor and Description |
|---|
ZooKeeperFacade(FabricServiceImpl fabricService) |
| Modifier and Type | Method and Description |
|---|---|
String |
getContents(String path)
Returns the content of the given path, assuming the path refers to a file
|
String |
getContents(String path,
boolean escape) |
protected org.apache.curator.framework.CuratorFramework |
getCurator()
Returns the ZooKeeper client or throwns an exception if its not configured properly
|
protected FabricServiceImpl |
getFabricService() |
ObjectName |
getObjectName() |
ZkContents |
read(String path)
Reads the contents of a path
|
ZkContents |
read(String path,
boolean escape) |
void |
registerMBeanServer(io.fabric8.common.util.ShutdownTracker shutdownTracker,
MBeanServer mbeanServer) |
void |
setObjectName(ObjectName objectName) |
void |
unregisterMBeanServer(MBeanServer mbeanServer) |
public ZooKeeperFacade(FabricServiceImpl fabricService)
public ObjectName getObjectName() throws MalformedObjectNameException
MalformedObjectNameExceptionpublic void setObjectName(ObjectName objectName)
public void registerMBeanServer(io.fabric8.common.util.ShutdownTracker shutdownTracker,
MBeanServer mbeanServer)
public void unregisterMBeanServer(MBeanServer mbeanServer)
protected FabricServiceImpl getFabricService()
protected org.apache.curator.framework.CuratorFramework getCurator()
public ZkContents read(String path) throws Exception
ZooKeeperFacadeMXBeanread in interface ZooKeeperFacadeMXBeanExceptionpublic ZkContents read(String path, boolean escape) throws Exception
Exceptionpublic String getContents(String path) throws Exception
ZooKeeperFacadeMXBeangetContents in interface ZooKeeperFacadeMXBeanExceptionCopyright © 2011–2014 Red Hat. All rights reserved.