|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A process managed by the server manager. All processes may be automatically restarted after crashes or otherwise.
Field Summary | |
static java.lang.String |
ARGV
|
static java.lang.String |
CLASS_NAME
|
static java.lang.String |
ENABLED
|
static java.lang.String |
ENVP
|
static java.lang.String |
ERR_BUF_SIZE
|
static java.lang.String |
ERROR
|
static java.lang.String |
EVENT_ADDRESSES
|
static java.lang.String |
EXECUTIVE_SERVER
|
static java.lang.String |
IOR
|
static java.lang.String |
IS_RUNNING
|
static java.lang.String |
JAVA
|
static java.lang.String |
LAUNCH
|
static java.lang.String |
LIMIT
|
static java.lang.String |
MIN_TIME
|
static java.lang.String |
NAME
|
static java.lang.String |
NAME_SERVER
|
static java.lang.String |
NATIVE
|
static java.lang.String |
OUT_BUF_SIZE
|
static java.lang.String |
OUTPUT
|
static java.lang.String |
PROPERTIES
|
static java.lang.String |
RESET_TIME
|
static java.lang.String |
RESTARTS
|
static java.lang.String |
SHUTDOWN
|
static java.lang.String |
START_TIME
|
static java.lang.String |
TYPE
|
static java.lang.String |
URL
|
static java.lang.String |
WAIT_TIME
|
static java.lang.String |
WEB_SERVER
|
Method Summary | |
java.util.Vector |
getEventAddresses()
Get the list of addresses to receive events. |
int |
getLimit()
Get the auto-restart limit. |
int |
getMinTime()
Get the minimum run time. |
java.lang.String |
getName()
My name, which uniquely identifies me on the server. |
int |
getResetTime()
Get the reset time. |
java.util.Map |
getStatus()
Get the status document. |
java.lang.String |
getType()
What type of process am I? |
int |
getWaitTime()
Get the wait time. |
boolean |
isEnabled()
Check if enabled. |
boolean |
isRunning()
Determine if I'm running right now. |
int |
setEnabled(boolean enabled)
Set whether I'm enabled. |
int |
setEventAddresses(java.util.Vector addresses)
Set the list of addresses to receive events. |
int |
setLimit(int limit)
Set the auto-restart limit. |
int |
setMinTime(int minTime)
Set the minimum run time. |
int |
setName(java.lang.String name)
Set my name. |
int |
setParams(java.util.Hashtable params)
Set new parameters. |
int |
setResetTime(int resetTime)
Set the reset time. |
int |
setWaitTime(int waitTime)
Set the wait time. |
int |
start()
Start me. |
int |
stop()
Stop me. |
Methods inherited from interface jpl.eda.util.Documentable |
toXML |
Field Detail |
public static final java.lang.String EVENT_ADDRESSES
public static final java.lang.String ARGV
public static final java.lang.String CLASS_NAME
public static final java.lang.String ENABLED
public static final java.lang.String ENVP
public static final java.lang.String ERROR
public static final java.lang.String ERR_BUF_SIZE
public static final java.lang.String EXECUTIVE_SERVER
public static final java.lang.String IOR
public static final java.lang.String IS_RUNNING
public static final java.lang.String JAVA
public static final java.lang.String LAUNCH
public static final java.lang.String LIMIT
public static final java.lang.String MIN_TIME
public static final java.lang.String NAME
public static final java.lang.String NAME_SERVER
public static final java.lang.String NATIVE
public static final java.lang.String OUTPUT
public static final java.lang.String OUT_BUF_SIZE
public static final java.lang.String PROPERTIES
public static final java.lang.String RESET_TIME
public static final java.lang.String RESTARTS
public static final java.lang.String SHUTDOWN
public static final java.lang.String START_TIME
public static final java.lang.String TYPE
public static final java.lang.String URL
public static final java.lang.String WAIT_TIME
public static final java.lang.String WEB_SERVER
Method Detail |
public int setName(java.lang.String name) throws ServerException
name
- New name.
ServerException
- if an error occurs.public java.lang.String getName() throws ServerException
ServerException
- If an error occurs.public boolean isEnabled() throws ServerException
ServerException
- If an error occurs.public int setEnabled(boolean enabled) throws ServerException
enabled
- True to enable, false otherwise.
ServerException
- If an error occurs.public int setLimit(int limit) throws ServerException
limit
- How many times I can be restarted before giving up after a
failure, or zero if I never auto-restart for any condition.
ServerException
- If an error occurs.public int setMinTime(int minTime) throws ServerException
setLimit(int)
number of times. If I stay running this long or longer and I crash,
then I can be autorestarted without penalty. Note that if the auto-restart
limit is zero, I never auto-restart regardless of how long I was able to stay
running.
minTime
- How long, in milliseconds, I should be running to be considered
successful, or zero if any crash should incur a restart penalty.
ServerException
- If an error occurs.public int setWaitTime(int waitTime) throws ServerException
waitTime
- How long, in milliseconds, to wait before trying an auto-restart.
ServerException
- If an error occurs.public int setResetTime(int resetTime) throws ServerException
resetTime
- How much time must pass before I'm re-enabled.
ServerException
- If an error occurs.public int getLimit() throws ServerException
ServerException
- If an error occurs.public int getMinTime() throws ServerException
ServerException
- If an error occurs.public int getWaitTime() throws ServerException
ServerException
- If an error occurs.public int getResetTime() throws ServerException
ServerException
- If an error occurs.public int start() throws ServerException
ServerException
- If I can't be started.public int stop() throws ServerException
ServerException
- If I can't be stopped.public boolean isRunning() throws ServerException
ServerException
- If I can't tell if I'm running.public java.lang.String getType() throws ServerException
ServerException
- If an error occurs.public java.util.Map getStatus() throws ServerException
ServerException
- If I can't tell my status.public int setParams(java.util.Hashtable params) throws ServerException
params
- New parameters for this process.
ServerException
- If an error occurs.public java.util.Vector getEventAddresses() throws ServerException
Vector
value of String
s.
ServerException
- if an error occurs.public int setEventAddresses(java.util.Vector addresses) throws ServerException
addresses
- a Vector
of String
s.
ServerException
- if an error occurs.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |