public class ShellUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
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. |
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 - Copyright © 2011-2014 Red Hat. All Rights Reserved.