public class ShellService extends Object implements ClientApp
| Constructor and Description |
|---|
ShellService(I2PAppContext context,
ClientAppManager listener,
String[] args) |
| Modifier and Type | Method and Description |
|---|---|
String |
getDisplayName()
The display name of the ClientApp, used in user interfaces.
|
String |
getName()
The generic name of the ClientApp, used for registration,
e.g.
|
ClientAppState |
getState()
Query the state of managed process and determine if it is running
or not.
|
boolean |
isProcessRunning()
Determine if the process running or not.
|
boolean |
isProcessStopped()
Determine if the process running or not.
|
void |
shutdown(String[] args)
Shut down the process by calling Process.destroy()
|
void |
startup()
Determine if a ShellService corresponding to the wrapped application
has been started yet.
|
public ShellService(I2PAppContext context, ClientAppManager listener, String[] args)
public String getDisplayName()
getDisplayName in interface ClientApppublic String getName()
public ClientAppState getState()
public boolean isProcessRunning()
true if the Process is running, false if the Process
is
not runningpublic boolean isProcessStopped()
true if the Process is NOT running, false if the
Process is
runningpublic void shutdown(String[] args) throws Throwable
public void startup()
throws Throwable