public class OSGiConsole extends Object
PepperOSGiConnector. It allows simple commands.| Modifier and Type | Class and Description |
|---|---|
static class |
OSGiConsole.COMMAND |
| Constructor and Description |
|---|
OSGiConsole(PepperOSGiConnector connector,
String prefixPrompt)
Initializes an object.
|
| Modifier and Type | Method and Description |
|---|---|
PepperOSGiConnector |
getConnector() |
String |
help()
Returns the help page for this console.
|
Long |
install(List<String> params,
PrintStream out)
Executes OSGi command 'install'.
|
void |
installAndStart(List<String> params,
PrintStream out)
Executes command 'launch', calling the OSGi command 'install' and
'start'.
|
void |
ls(List<String> params,
PrintStream out)
Executes OSGi command 'ls'.
|
void |
remove(List<String> params,
PrintStream out)
Executes command 'remove'.
|
void |
ss(List<String> params,
PrintStream out)
Executes OSGi command 'ss'.
|
void |
start()
Starts this console, using std in and std out.
|
void |
start(BufferedReader in,
PrintStream out) |
void |
start(List<String> params,
PrintStream out)
Executes OSGi command 'start'.
|
void |
stop(List<String> params,
PrintStream out)
Executes OSGi command 'stop'.
|
String |
transformState(int state) |
void |
uninstall(List<String> params,
PrintStream out)
Executes OSGi command 'uninstall'.
|
void |
update(List<String> params,
PrintStream out)
Executes command 'update', calling the OSGi commands 'uninstall',
'install' and 'start'.
|
public OSGiConsole(PepperOSGiConnector connector, String prefixPrompt)
connector - the PepperOSGiConnector to be used to access the OSGi
environmentprefixPrompt - the prefix prompt to be displayed, before the prompt of this
console.public PepperOSGiConnector getConnector()
public void start()
public String help()
public void start(BufferedReader in, PrintStream out)
public void ss(List<String> params, PrintStream out)
params - out - public void ls(List<String> params, PrintStream out)
params - out - public Long install(List<String> params, PrintStream out)
params - out - public void start(List<String> params, PrintStream out)
params - out - public void installAndStart(List<String> params, PrintStream out)
params - out - public void update(List<String> params, PrintStream out)
params - out - public void stop(List<String> params, PrintStream out)
params - out - public void uninstall(List<String> params, PrintStream out)
params - out - public void remove(List<String> params, PrintStream out)
params - out - public String transformState(int state)
Copyright © 2009–2018 Humboldt-Universität zu Berlin, INRIA. All rights reserved.