This class represents a simple console for accessing the underlying OSGi environment of a PepperOSGiConnector.
More...
|
PepperOSGiConnector | getConnector () |
|
| OSGiConsole (PepperOSGiConnector connector, String prefixPrompt) |
| Initializes an object. More...
|
|
void | start () |
| Starts this console, using std in and std out.
|
|
String | help () |
| Returns the help page for this console. More...
|
|
void | start (BufferedReader in, PrintStream out) |
|
void | ss (List< String > params, PrintStream out) |
| Executes OSGi command 'ss'. More...
|
|
void | ls (List< String > params, PrintStream out) |
| Executes OSGi command 'ls'. More...
|
|
Long | install (List< String > params, PrintStream out) |
| Executes OSGi command 'install'. More...
|
|
void | start (List< String > params, PrintStream out) |
| Executes OSGi command 'start'. More...
|
|
void | installAndStart (List< String > params, PrintStream out) |
| Executes command 'launch', calling the OSGi command 'install' and 'start'. More...
|
|
void | update (List< String > params, PrintStream out) |
| Executes command 'update', calling the OSGi commands 'uninstall', 'install' and 'start'. More...
|
|
void | stop (List< String > params, PrintStream out) |
| Executes OSGi command 'stop'. More...
|
|
void | uninstall (List< String > params, PrintStream out) |
| Executes OSGi command 'uninstall'. More...
|
|
void | remove (List< String > params, PrintStream out) |
| Executes command 'remove'. More...
|
|
String | transformState (int state) |
|
This class represents a simple console for accessing the underlying OSGi environment of a PepperOSGiConnector.
It allows simple commands.
- Author
- Florian Zipser
◆ OSGiConsole()
org.corpus_tools.pepper.cli.OSGiConsole.OSGiConsole |
( |
PepperOSGiConnector |
connector, |
|
|
String |
prefixPrompt |
|
) |
| |
Initializes an object.
- Parameters
-
connector | the PepperOSGiConnector to be used to access the OSGi environment |
prefixPrompt | the prefix prompt to be displayed, before the prompt of this console. |
◆ help()
String org.corpus_tools.pepper.cli.OSGiConsole.help |
( |
| ) |
|
Returns the help page for this console.
- Returns
◆ install()
Long org.corpus_tools.pepper.cli.OSGiConsole.install |
( |
List< String > |
params, |
|
|
PrintStream |
out |
|
) |
| |
Executes OSGi command 'install'.
- Parameters
-
◆ installAndStart()
void org.corpus_tools.pepper.cli.OSGiConsole.installAndStart |
( |
List< String > |
params, |
|
|
PrintStream |
out |
|
) |
| |
Executes command 'launch', calling the OSGi command 'install' and 'start'.
- Parameters
-
◆ ls()
void org.corpus_tools.pepper.cli.OSGiConsole.ls |
( |
List< String > |
params, |
|
|
PrintStream |
out |
|
) |
| |
Executes OSGi command 'ls'.
- Parameters
-
◆ remove()
void org.corpus_tools.pepper.cli.OSGiConsole.remove |
( |
List< String > |
params, |
|
|
PrintStream |
out |
|
) |
| |
Executes command 'remove'.
- Parameters
-
◆ ss()
void org.corpus_tools.pepper.cli.OSGiConsole.ss |
( |
List< String > |
params, |
|
|
PrintStream |
out |
|
) |
| |
Executes OSGi command 'ss'.
- Parameters
-
◆ start()
void org.corpus_tools.pepper.cli.OSGiConsole.start |
( |
List< String > |
params, |
|
|
PrintStream |
out |
|
) |
| |
Executes OSGi command 'start'.
- Parameters
-
◆ stop()
void org.corpus_tools.pepper.cli.OSGiConsole.stop |
( |
List< String > |
params, |
|
|
PrintStream |
out |
|
) |
| |
Executes OSGi command 'stop'.
- Parameters
-
◆ uninstall()
void org.corpus_tools.pepper.cli.OSGiConsole.uninstall |
( |
List< String > |
params, |
|
|
PrintStream |
out |
|
) |
| |
Executes OSGi command 'uninstall'.
- Parameters
-
◆ update()
void org.corpus_tools.pepper.cli.OSGiConsole.update |
( |
List< String > |
params, |
|
|
PrintStream |
out |
|
) |
| |
Executes command 'update', calling the OSGi commands 'uninstall', 'install' and 'start'.
- Parameters
-