Package org.pentaho.di.www
Class SlaveServerDetection
- java.lang.Object
-
- org.pentaho.di.www.SlaveServerDetection
-
public class SlaveServerDetection extends Object
This class is what describes the information that we keep when we detect a slave server in the cloud / cluster.
It contains the slave server information as well as the time it was last seen alive, whether it is still alive, etc.
- Since:
- 2008-OCT-08
- Author:
- matt
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSlaveServerDetection.SlaveRelationShip
-
Constructor Summary
Constructors Constructor Description SlaveServerDetection(SlaveServer slaveServer)SlaveServerDetection(Node node)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object ssd)DategetLastActiveDate()DategetLastInactiveDate()static SlaveServerDetection.SlaveRelationShipgetSlaveRelationShip(String code)SlaveServergetSlaveServer()StringgetXML()inthashCode()booleanisActive()voidsetActive(boolean active)voidsetLastActiveDate(Date lastActiveDate)voidsetLastInactiveDate(Date lastInactiveDate)voidsetSlaveServer(SlaveServer slaveServer)
-
-
-
Field Detail
-
XML_TAG
public static final String XML_TAG
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SlaveServerDetection
public SlaveServerDetection(SlaveServer slaveServer)
-
SlaveServerDetection
public SlaveServerDetection(Node node)
-
-
Method Detail
-
getSlaveRelationShip
public static final SlaveServerDetection.SlaveRelationShip getSlaveRelationShip(String code)
-
getXML
public String getXML()
-
getSlaveServer
public SlaveServer getSlaveServer()
- Returns:
- the slaveServer
-
setSlaveServer
public void setSlaveServer(SlaveServer slaveServer)
- Parameters:
slaveServer- the slaveServer to set
-
isActive
public boolean isActive()
- Returns:
- the active
-
setActive
public void setActive(boolean active)
- Parameters:
active- the active to set
-
getLastActiveDate
public Date getLastActiveDate()
- Returns:
- the lastActiveDate
-
setLastActiveDate
public void setLastActiveDate(Date lastActiveDate)
- Parameters:
lastActiveDate- the lastActiveDate to set
-
getLastInactiveDate
public Date getLastInactiveDate()
- Returns:
- the lastInactiveDate
-
setLastInactiveDate
public void setLastInactiveDate(Date lastInactiveDate)
- Parameters:
lastInactiveDate- the lastInactiveDate to set
-
-