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
  • Field Details

  • Constructor Details

    • SlaveServerDetection

      public SlaveServerDetection(SlaveServer slaveServer)
    • SlaveServerDetection

      public SlaveServerDetection(Node node)
  • Method Details

    • getSlaveRelationShip

      public static final SlaveServerDetection.SlaveRelationShip getSlaveRelationShip(String code)
    • getXML

      public String getXML()
    • equals

      public boolean equals(Object ssd)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • 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