public class ShellUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static int |
getTermWidth(org.apache.felix.service.command.CommandSession session)
Returns the width.
|
static String |
readLine(org.apache.felix.service.command.CommandSession session,
String msg,
boolean hidden)
Displays the message and reads the input.
|
static String |
retrieveFabricUser(org.apache.felix.service.command.CommandSession session)
Returns the fabric username stored in the
CommandSession. |
static String |
retrieveFabricUserPassword(org.apache.felix.service.command.CommandSession session)
Returns the fabric username stored in the
CommandSession. |
static 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,
String username,
String password)
Stores username and password to the
CommandSession. |
static void |
storeZookeeperPassword(org.apache.felix.service.command.CommandSession session,
String zookeeperPassword)
Stores zookeeper password to the
CommandSession. |
public static void storeFabricCredentials(org.apache.felix.service.command.CommandSession session,
String username,
String password)
CommandSession.session - username - password - public static void storeZookeeperPassword(org.apache.felix.service.command.CommandSession session,
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 String retrieveFabricUser(org.apache.felix.service.command.CommandSession session)
CommandSession.session - public static String retrieveFabricUserPassword(org.apache.felix.service.command.CommandSession session)
CommandSession.session - public static String retrieveFabricZookeeperPassword(org.apache.felix.service.command.CommandSession session)
CommandSession.session - public static String readLine(org.apache.felix.service.command.CommandSession session, String msg, boolean hidden) throws IOException
session - The CommandSession to use.msg - The message to display.hidden - Flag to hide the user input.IOExceptionpublic static int getTermWidth(org.apache.felix.service.command.CommandSession session)
session - Copyright © 2011–2014 Red Hat. All rights reserved.