Pepper  3.6.0
A highly extensible plattform for conversion and manipulationoflinguisticdata.
org.corpus_tools.pepper.cli.OSGiConsole Class Reference

This class represents a simple console for accessing the underlying OSGi environment of a PepperOSGiConnector. More...

Classes

enum  COMMAND
 

Public Member Functions

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)
 

Detailed Description

This class represents a simple console for accessing the underlying OSGi environment of a PepperOSGiConnector.

It allows simple commands.

Author
Florian Zipser

Constructor & Destructor Documentation

◆ OSGiConsole()

org.corpus_tools.pepper.cli.OSGiConsole.OSGiConsole ( PepperOSGiConnector  connector,
String  prefixPrompt 
)

Initializes an object.

Parameters
connectorthe PepperOSGiConnector to be used to access the OSGi environment
prefixPromptthe prefix prompt to be displayed, before the prompt of this console.

Member Function Documentation

◆ 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
params
out

◆ 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
params
out

◆ ls()

void org.corpus_tools.pepper.cli.OSGiConsole.ls ( List< String >  params,
PrintStream  out 
)

Executes OSGi command 'ls'.

Parameters
params
out

◆ remove()

void org.corpus_tools.pepper.cli.OSGiConsole.remove ( List< String >  params,
PrintStream  out 
)

Executes command 'remove'.

Parameters
params
out

◆ ss()

void org.corpus_tools.pepper.cli.OSGiConsole.ss ( List< String >  params,
PrintStream  out 
)

Executes OSGi command 'ss'.

Parameters
params
out

◆ start()

void org.corpus_tools.pepper.cli.OSGiConsole.start ( List< String >  params,
PrintStream  out 
)

Executes OSGi command 'start'.

Parameters
params
out

◆ stop()

void org.corpus_tools.pepper.cli.OSGiConsole.stop ( List< String >  params,
PrintStream  out 
)

Executes OSGi command 'stop'.

Parameters
params
out

◆ uninstall()

void org.corpus_tools.pepper.cli.OSGiConsole.uninstall ( List< String >  params,
PrintStream  out 
)

Executes OSGi command 'uninstall'.

Parameters
params
out

◆ 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
params
out