org.jppf.process.event
Class ProcessWrapperEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.jppf.process.event.ProcessWrapperEvent
All Implemented Interfaces:
Serializable

public class ProcessWrapperEvent
extends EventObject

Instances of this class encapsulate an event occurring when a process writes to its output or error stream.

Author:
Laurent Cohen
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ProcessWrapperEvent(String content)
          Initialize this event with the specified source.
 
Method Summary
 String getContent()
          Get the content of this event.
 
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
 

Constructor Detail

ProcessWrapperEvent

public ProcessWrapperEvent(String content)
Initialize this event with the specified source.

Parameters:
content - the source of this event, in effect the content of the corresponding process stream.
Method Detail

getContent

public String getContent()
Get the content of this event.

Returns:
the content as a string, which may include a line terminator.


Copyright © 2005-2010 JPPF Team.