org.fusesource.fabric.commands
Class ClusterList

java.lang.Object
  extended by org.apache.karaf.shell.console.AbstractAction
      extended by org.apache.karaf.shell.console.OsgiCommandSupport
          extended by org.fusesource.fabric.boot.commands.support.FabricCommand
              extended by 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


Nested Class Summary
protected  class ClusterList.ClusterNode
           
 
Field Summary
protected static java.lang.String CLUSTER_PREFIX
           
 
Fields inherited from class org.fusesource.fabric.boot.commands.support.FabricCommand
AGENT_PID, configurationAdmin, fabricService
 
Fields inherited from class org.apache.karaf.shell.console.OsgiCommandSupport
bundleContext, usedReferences
 
Fields inherited from class org.apache.karaf.shell.console.AbstractAction
log, session
 
Constructor Summary
ClusterList()
           
 
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
 

Field Detail

CLUSTER_PREFIX

protected static java.lang.String CLUSTER_PREFIX
Constructor Detail

ClusterList

public ClusterList()
Method Detail

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.