|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--disman.Run
| Field Summary | |
static int |
CONTROL_ABORT
Valid control code |
static int |
CONTROL_NOP
Valid control code |
static int |
CONTROL_RESUME
Valid control code |
static int |
CONTROL_SUSPEND
Valid control code |
static java.lang.String[] |
controlStrings
Array of control code strings. |
static int |
EXIT_CODE_GENERIC_ERROR
Valid exit code |
static int |
EXIT_CODE_HALTED
Valid exit code |
static int |
EXIT_CODE_INVALID_ARGUMENT
Valid exit code |
static int |
EXIT_CODE_LANGUAGE_ERROR
Valid exit code |
static int |
EXIT_CODE_LIFE_TIME_EXCEEDED
Valid exit code |
static int |
EXIT_CODE_NO_ERROR
Valid exit code |
static int |
EXIT_CODE_NO_RESOURCES_LEFT
Valid exit code |
static int |
EXIT_CODE_RUNTIME_ERROR
Valid exit code |
static int |
EXIT_CODE_SECURITY_VIOLATION
Valid exit code |
static java.lang.String[] |
exitCodeStrings
Array of exit code strings. |
static long |
LIFETIME_NEVERENDING
Special smLifeTime value for never ending scripts. |
static int |
STATE_ABORTING
Valid run state |
static int |
STATE_EXECUTING
Valid run state |
static int |
STATE_INITIALIZING
Valid run state |
static int |
STATE_RESUMING
Valid run state |
static int |
STATE_SUSPENDED
Valid run state |
static int |
STATE_SUSPENDING
Valid run state |
static int |
STATE_TERMINATED
Valid run state |
static java.lang.String[] |
stateStrings
Array of run state strings. |
| Constructor Summary | |
Run(Disman disman,
Launch launch,
int index)
Create a Run object for a given Disman object indexed by the owner and name of a given Launch object, and a given index by retrieval from the agent. |
|
Run(Disman disman,
java.lang.String owner,
java.lang.String name,
int index)
Create a Run object for a given Disman object indexed by a given launch button owner, launch button name, and index by retrieval from the agent. |
|
| Method Summary | |
void |
abort()
Abort the run. |
void |
block()
Block until this script has been terminated. |
java.lang.String |
getArgument()
Return the argument string (smRunArgument). |
int |
getControl()
Get the smRunControl value. |
java.lang.String |
getControlString()
Get the string representation of the smRunControl value. |
java.util.Date |
getEnd()
Return the end time as a Date object (smRunEndTime). |
int[] |
getEndTime()
Return the end time as an array of integer values representing the MIB value's octets (smRunEndTime). |
java.lang.String |
getError()
Return the error string (smRunError). |
java.util.Date |
getErrorTime()
Return the time of the last error change as a Date object (smRunErrorTime). |
int[] |
getErrorTimeIntArray()
Return the time of the last error change as an array of integer values representing the MIB value's octets (smRunErrorTime). |
int |
getExitCode()
Return the exit code (smRunExitCode). |
java.lang.String |
getExitCodeString()
Return the string representation of the exit code (smRunExitCode). |
long |
getExpireTime()
Return the script's expire time after termination in milli seconds (smRunExpireTime). |
int |
getIndex()
Return the index of this Run object according to the launch button from which this Run object has been created (smRunIndex). |
Launch |
getLaunch()
Return the Launch object from which this Run object has been created. |
long |
getLifeTime()
Return the script's life time in milli seconds (smRunLifeTime). |
java.lang.String |
getName()
Return the name of the launch button from which this Run object has been created (smLaunchName). |
java.lang.String |
getOwner()
Return the owner of the launch button from which this Run object has been created (smLaunchOwner). |
java.lang.String |
getResult()
Return the result string (smRunResult). |
java.util.Date |
getResultTime()
Return the time of the last result change as a Date object (smRunResultTime). |
int[] |
getResultTimeIntArray()
Return the time of the last result change as an array of integer values representing the MIB value's octets (smRunResultTime). |
Script |
getScript()
Return the Script object that is executed by this Run object. |
java.util.Date |
getStart()
Return the start time as a Date object (smRunStartTime). |
int[] |
getStartTime()
Return the start time as an array of integer values representing the MIB value's octets (smRunStartTime). |
int |
getState()
Return an integer value representing the smRunState. |
java.lang.String |
getStateString()
Return a String representing the smRunState. |
boolean |
isExecuting()
Return true, if this script is executing (smRunState == executing(2). |
boolean |
isInitializing()
Return true, if this script is initializing (smRunState == initializing(1). |
boolean |
isSuspended()
Return true, if this script is suspended (smRunState == suspended(4). |
boolean |
isTerminated()
Return true, if this script is terminated (smRunState == terminated(7). |
void |
remove()
Remove this Run object. |
void |
resume()
Resume the script. |
void |
setControl(int control)
Set the smRunControl value to a given integer value. |
void |
setExpireTime(long time)
Set the script's expire time after termination in milli seconds (smRunExpireTime). |
void |
setLifeTime(long time)
Set the script's life time in milli seconds (smRunLifeTime). |
void |
suspend()
Suspend the script. |
java.lang.String |
toString()
Return a String representation of the Run. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Field Detail |
public static final long LIFETIME_NEVERENDING
public static final int EXIT_CODE_NO_ERROR
public static final int EXIT_CODE_HALTED
public static final int EXIT_CODE_LIFE_TIME_EXCEEDED
public static final int EXIT_CODE_NO_RESOURCES_LEFT
public static final int EXIT_CODE_LANGUAGE_ERROR
public static final int EXIT_CODE_RUNTIME_ERROR
public static final int EXIT_CODE_INVALID_ARGUMENT
public static final int EXIT_CODE_SECURITY_VIOLATION
public static final int EXIT_CODE_GENERIC_ERROR
public static final java.lang.String[] exitCodeStrings
public static final int CONTROL_ABORT
public static final int CONTROL_SUSPEND
public static final int CONTROL_RESUME
public static final int CONTROL_NOP
public static final java.lang.String[] controlStrings
public static final int STATE_INITIALIZING
public static final int STATE_EXECUTING
public static final int STATE_SUSPENDING
public static final int STATE_SUSPENDED
public static final int STATE_RESUMING
public static final int STATE_ABORTING
public static final int STATE_TERMINATED
public static final java.lang.String[] stateStrings
| Constructor Detail |
public Run(Disman disman,
java.lang.String owner,
java.lang.String name,
int index)
throws java.io.IOException,
SnmpException,
NoSuchRowException
disman - the Disman object associated with this Run objectowner - the launch button ownername - the launch button nameindex - the run index related to the launch button
public Run(Disman disman,
Launch launch,
int index)
throws java.io.IOException,
SnmpException
disman - the Disman object associated with this Run objectlaunch - the Launch objectindex - the run index related to the launch button| Method Detail |
public void remove()
throws TimeoutException,
java.io.IOException,
SnmpException
public java.lang.String getOwner()
public java.lang.String getName()
public int getIndex()
public Launch getLaunch()
throws java.io.IOException,
SnmpException
public Script getScript()
throws java.io.IOException,
SnmpException
public java.lang.String getArgument()
throws java.io.IOException,
SnmpException
public int[] getStartTime()
throws java.io.IOException,
SnmpException
public java.util.Date getStart()
throws java.io.IOException,
SnmpException
public int[] getEndTime()
throws java.io.IOException,
SnmpException
public java.util.Date getEnd()
throws java.io.IOException,
SnmpException
public long getLifeTime()
throws java.io.IOException,
SnmpException
public void setLifeTime(long time)
throws java.io.IOException,
SnmpException
time - the life time in milli seconds
public long getExpireTime()
throws java.io.IOException,
SnmpException
public void setExpireTime(long time)
throws java.io.IOException,
SnmpException
public int getExitCode()
throws java.io.IOException,
SnmpException
public java.lang.String getExitCodeString()
throws java.io.IOException,
SnmpException
public java.lang.String getResult()
throws java.io.IOException,
SnmpException
public int getControl()
throws java.io.IOException,
SnmpException
public java.lang.String getControlString()
throws java.io.IOException,
SnmpException
public void setControl(int control)
throws java.io.IOException,
SnmpException
public void abort()
throws TimeoutException,
java.io.IOException,
SnmpException
public void suspend()
throws TimeoutException,
java.io.IOException,
SnmpException
public void resume()
throws TimeoutException,
java.io.IOException,
SnmpException
public int getState()
throws java.io.IOException,
SnmpException
public java.lang.String getStateString()
throws java.io.IOException,
SnmpException
public boolean isExecuting()
throws java.io.IOException,
SnmpException
public boolean isInitializing()
throws java.io.IOException,
SnmpException
public boolean isSuspended()
throws java.io.IOException,
SnmpException
public boolean isTerminated()
throws java.io.IOException,
SnmpException
public void block()
throws java.io.IOException,
SnmpException
public java.lang.String getError()
throws java.io.IOException,
SnmpException,
DismanReadException
public int[] getResultTimeIntArray()
throws java.io.IOException,
SnmpException
public java.util.Date getResultTime()
throws java.io.IOException,
SnmpException
public int[] getErrorTimeIntArray()
throws java.io.IOException,
SnmpException
public java.util.Date getErrorTime()
throws java.io.IOException,
SnmpException
public java.lang.String toString()
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||