org.fusesource.fabric.commands
Class ClusterList
java.lang.Object
org.apache.karaf.shell.console.AbstractAction
org.apache.karaf.shell.console.OsgiCommandSupport
org.fusesource.fabric.boot.commands.support.FabricCommand
org.fusesource.fabric.commands.ClusterList
- All Implemented Interfaces:
- org.apache.felix.gogo.commands.Action, org.apache.karaf.shell.console.BundleContextAware
public class ClusterList
- extends FabricCommand
| Fields inherited from class org.apache.karaf.shell.console.OsgiCommandSupport |
bundleContext, usedReferences |
| Fields inherited from class org.apache.karaf.shell.console.AbstractAction |
log, session |
|
Method Summary |
protected java.lang.Object |
doExecute()
|
protected java.lang.String |
getClusterName(java.lang.String rootDir,
java.lang.String dir)
|
protected void |
printCluster(java.lang.String dir,
java.io.PrintStream out)
|
protected java.lang.String |
printList(java.util.List list)
|
protected java.lang.Object |
value(java.util.Map<java.lang.String,java.lang.Object> map,
java.lang.String... keys)
|
| Methods inherited from class org.fusesource.fabric.boot.commands.support.FabricCommand |
checkFabricAvailable, doesContainerExist, getConfigurationAdmin, getContainer, getFabricService, getProfile, getProfiles, getProfiles, getZooKeeper, percentText, setConfigurationAdmin, setFabricService, setZooKeeper, toString |
| Methods inherited from class org.apache.karaf.shell.console.OsgiCommandSupport |
execute, getAllServices, getBundleContext, getService, setBundleContext, ungetServices |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CLUSTER_PREFIX
protected static java.lang.String CLUSTER_PREFIX
ClusterList
public ClusterList()
doExecute
protected java.lang.Object doExecute()
throws java.lang.Exception
- Specified by:
doExecute in class org.apache.karaf.shell.console.AbstractAction
- Throws:
java.lang.Exception
printCluster
protected void printCluster(java.lang.String dir,
java.io.PrintStream out)
throws java.lang.InterruptedException,
org.apache.zookeeper.KeeperException,
java.io.IOException,
java.net.URISyntaxException
- Throws:
java.lang.InterruptedException
org.apache.zookeeper.KeeperException
java.io.IOException
java.net.URISyntaxException
printList
protected java.lang.String printList(java.util.List list)
value
protected java.lang.Object value(java.util.Map<java.lang.String,java.lang.Object> map,
java.lang.String... keys)
getClusterName
protected java.lang.String getClusterName(java.lang.String rootDir,
java.lang.String dir)
Copyright © 2012 FuseSource. All Rights Reserved.