|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rioproject.tools.cli.Formatter
public class Formatter
Utility class for formatting results
| Constructor Summary | |
|---|---|
Formatter()
|
|
| Method Summary | |
|---|---|
static String |
asChoices(ServiceItem[] items)
|
static String |
asChoices(ServiceItem[] items,
int options)
|
static String |
asList(ServiceItem[] items)
|
static String |
asList(ServiceItem[] items,
int options)
|
static void |
cybernodeLister(ServiceItem[] items,
int options,
BufferedReader br,
PrintStream out)
Produce output for an array of Cybernodes |
static String[] |
formattedArray(ServiceItem[] items,
int options)
|
static String |
fromArray(String[] array)
Utility to convert a String array to a comma delimited String |
static String |
fromArray(String[] array,
String delim)
Utility to convert a String array to a delimited String |
static String |
getExportCodebase(Object service)
Get the codebase for the service by getting the service's classloader and extracting only the http: address and port number |
static void |
promptMore(BufferedReader br,
PrintStream out)
|
static void |
provisionManagerLister(ServiceItem[] items,
int options,
BufferedReader br,
PrintStream out)
Produce output for an array of Provision Managers |
static String[] |
toArray(String arg)
Convert comma-separated String to array of Strings |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Formatter()
| Method Detail |
|---|
public static String asList(ServiceItem[] items)
public static String asList(ServiceItem[] items,
int options)
public static String asChoices(ServiceItem[] items)
public static String asChoices(ServiceItem[] items,
int options)
public static String[] formattedArray(ServiceItem[] items,
int options)
public static void cybernodeLister(ServiceItem[] items,
int options,
BufferedReader br,
PrintStream out)
items - Array of ServiceItemsoptions - Options to usebr - A BufferredReader, allows for the user to press enter for moreout - The output PrintStream
public static void provisionManagerLister(ServiceItem[] items,
int options,
BufferedReader br,
PrintStream out)
items - Array of ServiceItemsoptions - Optionsbr - A BufferredReader, allows for the user to press enter for moreout - The output PrintStreampublic static String getExportCodebase(Object service)
service - The service
public static String fromArray(String[] array)
array - An array of Strings, must not be null
public static String fromArray(String[] array,
String delim)
array - An array of Strings, must not be nulldelim - Delimiter to use between Strings, must not be null
public static String[] toArray(String arg)
arg - The comma separated string
public static void promptMore(BufferedReader br,
PrintStream out)
|
Copyright © Rio Project. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||