Class 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
    • Constructor Detail

      • SlaveServerDetection

        public SlaveServerDetection​(SlaveServer slaveServer)
      • SlaveServerDetection

        public SlaveServerDetection​(Node node)
    • Method Detail

      • getXML

        public String getXML()
      • 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