org.fusesource.fabric.boot.commands.support
Class EnsembleCommandSupport
java.lang.Object
org.apache.karaf.shell.console.AbstractAction
org.apache.karaf.shell.console.OsgiCommandSupport
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
| Fields inherited from class org.apache.karaf.shell.console.OsgiCommandSupport |
bundleContext, usedReferences |
| Fields inherited from class org.apache.karaf.shell.console.AbstractAction |
log, session |
| 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 |
service
protected ZooKeeperClusterService service
EnsembleCommandSupport
public EnsembleCommandSupport()
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 © 2013 Red Hat. All Rights Reserved.