cgl.hpsearch.engine
Class EngineHeartBeat
java.lang.Object
cgl.hpsearch.engine.EngineHeartBeat
- public class EngineHeartBeat
- extends Object
Contains the Metadata assoicated with a particular engine. This contains the following data
- Engine ID
- Host on which the engine is running
- The broker with which this engine is connected
- Task load on this engine...Used to affect task scheduling decisions
- More fields will be added later ...
Created on Nov 2, 2004
- Author:
- Harshawardhan Gadgil
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EngineHeartBeat
public EngineHeartBeat()
main
public static void main(String[] a)
incrementNumTasks
public void incrementNumTasks()
decrementNumTasks
public void decrementNumTasks()
toXML
public String toXML()
- Serializes to XML
- Returns:
- The marshalled XML
getFromString
public static EngineHeartBeat getFromString(String xml)
- Returns the EngineHeartBeat object by unmarshalling the XML
- Parameters:
xml -
- Returns:
- EngineHeartBeat object or null if error
getBrokerHost
public String getBrokerHost()
- Returns:
- Returns the brokerHost.
setBrokerHost
public void setBrokerHost(String brokerHost)
- Parameters:
brokerHost - The brokerHost to set.
getEngineID
public String getEngineID()
- Returns:
- Returns the engineID.
setEngineID
public void setEngineID(String engineID)
- Parameters:
engineID - The engineID to set.
getHost
public String getHost()
- Returns:
- Returns the host.
setHost
public void setHost(String host)
- Parameters:
host - The host to set.
getNumTasks
public int getNumTasks()
- Returns:
- Returns the numTasks.
setNumTasks
public void setNumTasks(int numTasks)
- Parameters:
numTasks - The numTasks to set.