HPSearch

cgl.hpsearch.engine
Class EngineEvent

java.lang.Object
  extended bycgl.hpsearch.engine.EngineEvent

public class EngineEvent
extends Object

TaskSchedulerEngineEvent that specifies the messages exchanged between the engines
Created on Oct 24, 2004

Author:
Harshawardhan Gadgil

Field Summary
static int ENGINE_EVENTTYPE_CONTROL
           
static int ENGINE_EVENTTYPE_GOODBYE
           
static int ENGINE_EVENTTYPE_HANDLE
           
static int ENGINE_EVENTTYPE_HANDLER_EVENT
           
static int ENGINE_EVENTTYPE_HEARTBEAT
           
static int ENGINE_EVENTTYPE_REQUEST
           
static int ENGINE_EVENTTYPE_TASK_FINISHED
           
 
Constructor Summary
EngineEvent()
           
 
Method Summary
 String getDestinationEngineID()
           
static EngineEvent getEventFromString(String serializedTSE)
          Returns the EngineEvent object by unmarshalling the XML
 int getEventType()
           
 String getFlowID()
           
 String getHandlerID()
           
 String getMessage()
           
 String getSourceEngineID()
           
 void setDestinationEngineID(String destinationEngineID)
           
 void setEventType(int eventType)
           
 void setFlowID(String flowID)
           
 void setHandlerID(String handlerID)
           
 void setMessage(String message)
           
 void setSourceEngineID(String sourceEngineID)
           
 String toXML()
          Serializes the event to XML
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ENGINE_EVENTTYPE_REQUEST

public static final int ENGINE_EVENTTYPE_REQUEST
See Also:
Constant Field Values

ENGINE_EVENTTYPE_HANDLE

public static final int ENGINE_EVENTTYPE_HANDLE
See Also:
Constant Field Values

ENGINE_EVENTTYPE_CONTROL

public static final int ENGINE_EVENTTYPE_CONTROL
See Also:
Constant Field Values

ENGINE_EVENTTYPE_TASK_FINISHED

public static final int ENGINE_EVENTTYPE_TASK_FINISHED
See Also:
Constant Field Values

ENGINE_EVENTTYPE_HEARTBEAT

public static final int ENGINE_EVENTTYPE_HEARTBEAT
See Also:
Constant Field Values

ENGINE_EVENTTYPE_GOODBYE

public static final int ENGINE_EVENTTYPE_GOODBYE
See Also:
Constant Field Values

ENGINE_EVENTTYPE_HANDLER_EVENT

public static final int ENGINE_EVENTTYPE_HANDLER_EVENT
See Also:
Constant Field Values
Constructor Detail

EngineEvent

public EngineEvent()
Method Detail

toXML

public String toXML()
Serializes the event to XML

Returns:
Marshalled Object

getEventFromString

public static EngineEvent getEventFromString(String serializedTSE)
Returns the EngineEvent object by unmarshalling the XML

Parameters:
serializedTSE -
Returns:
EngineEvent object or null if error

getDestinationEngineID

public String getDestinationEngineID()
Returns:
Returns the destinationEngineID.

setDestinationEngineID

public void setDestinationEngineID(String destinationEngineID)
Parameters:
destinationEngineID - The destinationEngineID to set.

getEventType

public int getEventType()
Returns:
Returns the eventType.

setEventType

public void setEventType(int eventType)
Parameters:
eventType - The eventType to set.

getFlowID

public String getFlowID()
Returns:
Returns the flowID.

setFlowID

public void setFlowID(String flowID)
Parameters:
flowID - The flowID to set.

getHandlerID

public String getHandlerID()
Returns:
Returns the handlerID.

setHandlerID

public void setHandlerID(String handlerID)
Parameters:
handlerID - The handlerID to set.

getMessage

public String getMessage()
Returns:
Returns the message.

setMessage

public void setMessage(String message)
Parameters:
message - The message to set.

getSourceEngineID

public String getSourceEngineID()
Returns:
Returns the sourceEngineID.

setSourceEngineID

public void setSourceEngineID(String sourceEngineID)
Parameters:
sourceEngineID - The sourceEngineID to set.

HPSearch

For comments and suggestions please send e-mail to Harshawardhan Gadgil
Last updated: June 9 2006