Class StaticMember

  • All Implemented Interfaces:
    java.io.Externalizable, java.io.Serializable, Member

    public class StaticMember
    extends MemberImpl
    Static member representation for cluster membership.
    See Also:
    Serialized Form
    • Constructor Detail

      • StaticMember

        public StaticMember()
        Default constructor.
      • StaticMember

        public StaticMember​(java.lang.String host,
                            int port,
                            long aliveTime)
                     throws java.io.IOException
        Creates a static member with the given host, port, and alive time.
        Parameters:
        host - the host address
        port - the port number
        aliveTime - the time the member was last alive
        Throws:
        java.io.IOException - if serialization fails
      • StaticMember

        public StaticMember​(java.lang.String host,
                            int port,
                            long aliveTime,
                            byte[] payload)
                     throws java.io.IOException
        Creates a static member with the given host, port, alive time, and payload.
        Parameters:
        host - the host address
        port - the port number
        aliveTime - the time the member was last alive
        payload - the member payload data
        Throws:
        java.io.IOException - if serialization fails
    • Method Detail

      • setHost

        public void setHost​(java.lang.String host)
        Sets the host for this member.
        Parameters:
        host - String, either in byte array string format, like {214,116,1,3} or as a regular hostname, 127.0.0.1 or tomcat01.mydomain.com
      • setDomain

        public void setDomain​(java.lang.String domain)
        Sets the domain for this member.
        Parameters:
        domain - String, either in byte array string format, like {214,116,1,3} or as a regular string value like 'mydomain'. The latter will be converted using ISO-8859-1 encoding
      • setUniqueId

        public void setUniqueId​(java.lang.String id)
        Sets the unique identifier for this member.
        Parameters:
        id - String, must be in byte array string format, like {214,116,1,3} and exactly 16 bytes long