FileDocCategorySizeDatePackage
StaticMember.javaAPI DocApache Tomcat 6.0.142736Fri Jul 20 04:20:34 BST 2007org.apache.catalina.tribes.membership

StaticMember

public class StaticMember extends MemberImpl

Title:

Description:

Company:

author
not attributable
version
1.0

Fields Summary
Constructors Summary
public StaticMember()

        super();
    
public StaticMember(String host, int port, long aliveTime)

        super(host, port, aliveTime);
    
public StaticMember(String host, int port, long aliveTime, byte[] payload)

        super(host, port, aliveTime, payload);
    
Methods Summary
public voidsetDomain(java.lang.String domain)

param
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

        if ( domain == null ) return;
        if ( domain.startsWith("{") ) setDomain(Arrays.fromString(domain));
        else setDomain(Arrays.convert(domain));
    
public voidsetHost(java.lang.String host)

param
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

        if ( host == null ) return;
        if ( host.startsWith("{") ) setHost(Arrays.fromString(host));
        else try { setHostname(host); }catch (IOException x) { throw new RuntimeException(x);}
        
    
public voidsetUniqueId(java.lang.String id)

param
id String, must be in byte array string format, like {214,116,1,3} and exactly 16 bytes long

        byte[] uuid = Arrays.fromString(id);
        if ( uuid==null || uuid.length != 16 ) throw new RuntimeException("UUID must be exactly 16 bytes, not:"+id);
        setUniqueId(uuid);