org.fusesource.fabric.boot.commands.support
Class EnsembleCommandSupport

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.EnsembleCommandSupport
All Implemented Interfaces:
org.apache.felix.gogo.commands.Action, org.apache.karaf.shell.console.BundleContextAware
Direct Known Subclasses:
Create

public abstract class EnsembleCommandSupport
extends org.apache.karaf.shell.console.OsgiCommandSupport


Field Summary
protected  ZooKeeperClusterService service
           
 
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
EnsembleCommandSupport()
           
 
Method Summary
protected  void checkFabricAvailable()
           
protected  boolean checkIfShouldModify(org.apache.felix.service.command.CommandSession session, boolean force)
           
 ZooKeeperClusterService getService()
           
protected  java.lang.String[] promptForNewUser(java.lang.String user, java.lang.String password)
          Prompts the user for username and/or password.
 void setService(ZooKeeperClusterService service)
           
 
Methods inherited from class org.apache.karaf.shell.console.OsgiCommandSupport
execute, getAllServices, getBundleContext, getService, setBundleContext, ungetServices
 
Methods inherited from class org.apache.karaf.shell.console.AbstractAction
doExecute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

service

protected ZooKeeperClusterService service
Constructor Detail

EnsembleCommandSupport

public EnsembleCommandSupport()
Method Detail

getService

public ZooKeeperClusterService getService()

setService

public void setService(ZooKeeperClusterService service)

checkFabricAvailable

protected void checkFabricAvailable()

checkIfShouldModify

protected boolean checkIfShouldModify(org.apache.felix.service.command.CommandSession session,
                                      boolean force)
                               throws java.io.IOException
Throws:
java.io.IOException

promptForNewUser

protected java.lang.String[] promptForNewUser(java.lang.String user,
                                              java.lang.String password)
                                       throws java.io.IOException
Prompts the user for username and/or password.

Parameters:
user - The default username.
password - The default password.
Returns:
An String array with username at index 0 and password at index 1.
Throws:
java.io.IOException


Copyright © 2014 Red Hat. All Rights Reserved.