com.cafesoft.core.util
Class MonitoredProcessEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--com.cafesoft.core.util.MonitoredProcessEvent
All Implemented Interfaces:
Serializable

public final class MonitoredProcessEvent
extends EventObject

A MonitoredProcessEvent conveys information about MonitoredProcess state changes to MonitoredProcessEventListeners.

Since:
6/6/03
See Also:
Serialized Form

Field Summary
static int DESTROYED
          A MonitoredProcessException occurred.
static int EXCEPTION
          A MonitoredProcessException occurred.
static int EXITED
          The MonitoredProcess has exited.
static int STARTED
          Monitoring of the MonitoredProcess has starting.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
MonitoredProcessEvent(Object source, int type, String desc, String processName)
          Construct a new MonitoredProcessEvent with the specified parameters.
MonitoredProcessEvent(Object source, int type, String desc, String processName, int exitValue)
          Construct a new MonitoredProcessEvent with the specified parameters.
MonitoredProcessEvent(Object source, int type, String desc, String processName, MonitoredProcessException exception)
          Construct a new MonitoredProcessEvent with the specified parameters.
 
Method Summary
 String getDescription()
          Get the event description.
 MonitoredProcessException getException()
          Return the MonitoredProcessException.
 int getExitValue()
          Return the process exit value: NOTE: applies only if the event type is: STARTED or EXCEPTION.
 String getProcessName()
          Get the process name.
 int getType()
          Return the type.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

STARTED

public static final int STARTED
Monitoring of the MonitoredProcess has starting.

See Also:
Constant Field Values

EXITED

public static final int EXITED
The MonitoredProcess has exited.

See Also:
Constant Field Values

EXCEPTION

public static final int EXCEPTION
A MonitoredProcessException occurred.

See Also:
Constant Field Values

DESTROYED

public static final int DESTROYED
A MonitoredProcessException occurred.

See Also:
Constant Field Values
Constructor Detail

MonitoredProcessEvent

public MonitoredProcessEvent(Object source,
                             int type,
                             String desc,
                             String processName)
Construct a new MonitoredProcessEvent with the specified parameters.

Parameters:
source - the component sending or delivering the event
type - the event type
processName - the MonitoredProcess name
desc - a textual descrption of the event

MonitoredProcessEvent

public MonitoredProcessEvent(Object source,
                             int type,
                             String desc,
                             String processName,
                             int exitValue)
Construct a new MonitoredProcessEvent with the specified parameters.

Parameters:
source - the component sending or delivering the event
type - the event type
processName - the MonitoredProcess name
desc - a textual descrption of the event
exitValue - the process exit value

MonitoredProcessEvent

public MonitoredProcessEvent(Object source,
                             int type,
                             String desc,
                             String processName,
                             MonitoredProcessException exception)
Construct a new MonitoredProcessEvent with the specified parameters.

Parameters:
source - the component sending or delivering the event
type - the event type
processName - the MonitoredProcess name
desc - a textual descrption of the event
exception - the MonitoredProcessException
Method Detail

getType

public int getType()
Return the type.

Returns:
the MonitoredProcessEvent type.

getDescription

public String getDescription()
Get the event description.

Returns:
a textual description of the event.

getProcessName

public String getProcessName()
Get the process name.

Returns:
the process name.

getExitValue

public int getExitValue()
Return the process exit value: NOTE: applies only if the event type is: STARTED or EXCEPTION.

Returns:
the process exit value.

getException

public MonitoredProcessException getException()
Return the MonitoredProcessException. NOTE: applies only if the event type is: EXCEPTION.

Returns:
the MonitoredProcessException.


Generated on 8:41:50 AM June 06, 2005, © 1996-2005 Cafésoft LLC. All rights reserved.