|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fusesource.fabric.utils.shell.ShellUtils
public class ShellUtils
| Method Summary | |
|---|---|
static int |
getTermWidth(org.apache.felix.service.command.CommandSession session)
Returns the width. |
static java.lang.String |
readLine(org.apache.felix.service.command.CommandSession session,
java.lang.String msg,
boolean hidden)
Displays the message and reads the input. |
static java.lang.String |
retrieveFabricUser(org.apache.felix.service.command.CommandSession session)
Returns the fabric username stored in the CommandSession. |
static java.lang.String |
retrieveFabricUserPassword(org.apache.felix.service.command.CommandSession session)
Returns the fabric username stored in the CommandSession. |
static java.lang.String |
retrieveFabricZookeeperPassword(org.apache.felix.service.command.CommandSession session)
Returns the fabric zookeeper password stored in the CommandSession. |
static void |
storeFabricCredentials(org.apache.felix.service.command.CommandSession session,
java.lang.String username,
java.lang.String password)
Stores username and password to the CommandSession. |
static void |
storeZookeeperPassword(org.apache.felix.service.command.CommandSession session,
java.lang.String zookeeperPassword)
Stores zookeeper password to the CommandSession. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void storeFabricCredentials(org.apache.felix.service.command.CommandSession session,
java.lang.String username,
java.lang.String password)
CommandSession.
session - username - password -
public static void storeZookeeperPassword(org.apache.felix.service.command.CommandSession session,
java.lang.String zookeeperPassword)
CommandSession.
This is mostly usable when creating a remote ensemble that is going to be joined right after its creation.
session - zookeeperPassword - public static java.lang.String retrieveFabricUser(org.apache.felix.service.command.CommandSession session)
CommandSession.
session -
public static java.lang.String retrieveFabricUserPassword(org.apache.felix.service.command.CommandSession session)
CommandSession.
session -
public static java.lang.String retrieveFabricZookeeperPassword(org.apache.felix.service.command.CommandSession session)
CommandSession.
session -
public static java.lang.String readLine(org.apache.felix.service.command.CommandSession session,
java.lang.String msg,
boolean hidden)
throws java.io.IOException
session - The CommandSession to use.msg - The message to display.hidden - Flag to hide the user input.
java.io.IOExceptionpublic static int getTermWidth(org.apache.felix.service.command.CommandSession session)
session -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||