Class Member


  • public class Member
    extends Object
    Represents a member in the cluster. This is used with static membership
    • Constructor Detail

      • Member

        public Member​(String hostName,
                      int port)
    • Method Detail

      • suspend

        public void suspend​(long suspensionDurationMillis)
        Temporarilly suspend this member
        Parameters:
        suspensionDurationMillis - The time duration in millis in which this member should be suspended
      • isSuspended

        public boolean isSuspended()
        Check whether this member is suspended
        Returns:
        true if this member is still suspended, false otherwise
      • getHostName

        public String getHostName()
      • getPort

        public int getPort()
      • getHttpsPort

        public int getHttpsPort()
      • setHttpsPort

        public void setHttpsPort​(int httpsPort)
      • getHttpPort

        public int getHttpPort()
      • setHttpPort

        public void setHttpPort​(int httpPort)
      • isActive

        public boolean isActive()
      • setActive

        public void setActive​(boolean active)
      • getDomain

        public String getDomain()
      • setDomain

        public void setDomain​(String domain)
      • setProperties

        public void setProperties​(Properties properties)
      • getProperties

        public Properties getProperties()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object