Package org.pentaho.di.www
Class SlaveServerDetection
java.lang.Object
org.pentaho.di.www.SlaveServerDetection
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.
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
-
Field Summary
-
Constructor Summary
ConstructorDescriptionSlaveServerDetection
(SlaveServer slaveServer) SlaveServerDetection
(Node node) -
Method Summary
Modifier and TypeMethodDescriptionboolean
static final SlaveServerDetection.SlaveRelationShip
getSlaveRelationShip
(String code) getXML()
int
hashCode()
boolean
isActive()
void
setActive
(boolean active) void
setLastActiveDate
(Date lastActiveDate) void
setLastInactiveDate
(Date lastInactiveDate) void
setSlaveServer
(SlaveServer slaveServer)
-
Field Details
-
XML_TAG
- See Also:
-
-
Constructor Details
-
SlaveServerDetection
-
SlaveServerDetection
-
-
Method Details
-
getSlaveRelationShip
-
getXML
-
equals
-
hashCode
public int hashCode() -
getSlaveServer
- Returns:
- the slaveServer
-
setSlaveServer
- 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
- Returns:
- the lastActiveDate
-
setLastActiveDate
- Parameters:
lastActiveDate
- the lastActiveDate to set
-
getLastInactiveDate
- Returns:
- the lastInactiveDate
-
setLastInactiveDate
- Parameters:
lastInactiveDate
- the lastInactiveDate to set
-