|
Openwings API Documentation (v1.1) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.openwings.container.ContainerProcessStatus
This class describes the status of a running ContainerProcess.
This includes the current run state of the ContainerProcess,
start and stop times, and optional information about
failover and performance.
| Field Summary | |
static int |
CREATED
This constant represents the initial state of a process before it is started. |
static int |
FAILED
This constant represents a transitory state for a process that has terminated abnormally. |
static int |
MOVED_CONTAINER
This constant represents a transitory state for a process that is being moved to another container on the same platform. |
static int |
MOVED_CONTAINER_MANAGER
This constant represents the state of a process that has been moved to another container on a different platform. |
static int |
STARTED
This constant represents the state of a process that is executing in a Container or
ContainerManager. |
static int |
STOPPED
This constant represents the state of a process that has been explicitly stopped or that has exceeded the maximum number of restarts supported by its container. |
| Constructor Summary | |
ContainerProcessStatus(UniqueID processID,
int status,
java.util.Date processStatusTime,
java.util.Date processStartTime,
java.util.Date processStopTime,
UniqueID containerID,
int timesRestarted,
int lastExitCode,
java.lang.Throwable lastFailureCause,
PerformanceReport[] performanceReports,
boolean sharedContainer,
boolean restart,
boolean mobile,
java.lang.String commandLineParameters)
This is the single public constructor for the ContainerProcessStatus class. |
|
| Method Summary | |
boolean |
equals(java.lang.Object obj)
overrides default equals() method |
java.lang.String |
getCommandLineParameters()
This method returns the command line parameters used to start the process. |
UniqueID |
getContainerID()
This method returns a unique identifier representing the Container in which this ContainerProcess
is running |
int |
getLastExitCode()
This method returns the result of the last execution of the ContainerProcess |
java.lang.Throwable |
getLastFailureCause()
This method returns the exception or error that caused the ContainerProcess to fail |
boolean |
getMobile()
This method indicates whether this process may be moved between containers or platforms. |
PerformanceReport[] |
getPerformanceReports()
This method returns |
UniqueID |
getProcessID()
This method returns the unique identifier for the ContainerProcess |
java.util.Date |
getProcessStartTime()
This method returns the time that the ContainerProcess
was started or restarted |
java.util.Date |
getProcessStatusTime()
This method returns the time that this report was generated |
java.util.Date |
getProcessStopTime()
This method returns the time that the ContainerProcess
failed or was stopped |
boolean |
getRestart()
This method indicates whether this process will be restarted if it fails. |
boolean |
getSharedContainer()
This method indicates whether this process is running inside a container. |
int |
getStatus()
This method returns the execution status of the process |
int |
getTimesRestarted()
This method returns the count of how many times the ContainerProcess has been restarted |
int |
hashCode()
overrides default hashCode() method |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int CREATED
STARTED state.
public static final int STARTED
Container or
ContainerManager. From this state, a process
can go to the following states: STOPPED,
FAILED, MOVED_CONTAINER.
Additionally, a process in a ContainerManager
can go to the MOVED_CONTAINER_MANAGER state.
public static final int FAILED
STARTED state if it is restarted by
the Container or ContainerManager,
and to the STOPPED state otherwise.
public static final int MOVED_CONTAINER
STARTED state. Depending on the
implementation, it may be possible to explicitly stop the
process directly from the MOVED_CONTAINER state.
public static final int MOVED_CONTAINER_MANAGER
ContainerManager, not by process objects that
come from a Container. This state implies that a
process with the same uniqueID can be found on
another platform. This is a final state, meaning that the state
of the process cannot change. The process object is now
obsolete and can be discarded (garbage collected) when all
references are released.
public static final int STOPPED
| Constructor Detail |
public ContainerProcessStatus(UniqueID processID,
int status,
java.util.Date processStatusTime,
java.util.Date processStartTime,
java.util.Date processStopTime,
UniqueID containerID,
int timesRestarted,
int lastExitCode,
java.lang.Throwable lastFailureCause,
PerformanceReport[] performanceReports,
boolean sharedContainer,
boolean restart,
boolean mobile,
java.lang.String commandLineParameters)
ContainerProcessStatus class.
processID - unique identifier representing the
ContainerProcess that this status report applies to.status - integer corresponding to one of the state constants
defined in this class.processStatusTime - a Date object indicating
the time that this report was generated. This time should
be considered approximate: not accurate enough for
sophisticated timing, but usable for general information
and for ordering status reports from the same process.processStartTime - a Date object indicating the
time that the ContainerProcess was started or
restarted or null if the
ContainerProcess has not yet been started.processStopTime - a Date object indicating the time
that the ContainerProcess failed or was stopped. This
time should be considered approximate.containerID - unique identifier representing the
Container in which this ContainerProcess
is running, or null if the process is running
standalone. This property is provided as a hint only.timesRestarted - the count of how many times the
ContainerProcess has been restarted (if its
ComponentDescriptor indicated that the
ContainerProcess should be restarted).lastExitCode - the result of the last execution of the
ContainerProcess, or 0 if the
ContainerProcess has not stopped or failed.lastFailureCause - an optional field for Java
ContainerProcesses that can be used to capture the
exception or error that caused the ContainerProcess
to fail.performanceReports - an optional array of
PerformanceReport objects that can be used to
report information about the performance of the
ContainerProcess.sharedContainer - boolean indicating whether this
process is running in a shared container.restart - boolean indicating whether this process
will be restarted should it fail.mobile - boolean indicating whether this process
may be moved between containers or platforms.commandLineParameters - parameters used to start this process.| Method Detail |
public UniqueID getProcessID()
ContainerProcess
ContainerProcess that this status report applies to.public int getStatus()
public java.util.Date getProcessStatusTime()
Date object indicating
the time that this report was generated. This time should
be considered approximate: not accurate enough for
sophisticated timing, but usable for general information
and for ordering status reports from the same process.public java.util.Date getProcessStartTime()
ContainerProcess
was started or restarted
Date object indicating the
time that the ContainerProcess was started or
restarted, or null if the
ContainerProcess has not yet been started.public java.util.Date getProcessStopTime()
ContainerProcess
failed or was stopped
Date object indicating the time
that the ContainerProcess failed or was stopped. This
time should be considered approximate.public UniqueID getContainerID()
Container in which this ContainerProcess
is running
Container in which this ContainerProcess
is running, or null if the process is running
standalone. This property is provided as a hint only.public int getTimesRestarted()
ContainerProcess has been restarted
ContainerProcess has been restarted (if its
ComponentDescriptor indicated that the
ContainerProcess should be restarted).public int getLastExitCode()
ContainerProcess
ContainerProcess, or 0 if the
ContainerProcess has not stopped or failed.public java.lang.Throwable getLastFailureCause()
ContainerProcess to fail
ContainerProcesses that can be used to capture the
exception or error that caused the ContainerProcess
to fail.public PerformanceReport[] getPerformanceReports()
PerformanceReport objects that can be used to
report information about the performance of the
ContainerProcess.public boolean getSharedContainer()
true if the process is running inside a containerpublic boolean getRestart()
true if the process will be restartedpublic boolean getMobile()
true if the process may be movedpublic java.lang.String getCommandLineParameters()
public boolean equals(java.lang.Object obj)
public int hashCode()
|
Openwings API Documentation (v1.1) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||