jgroup.relacs.config
Class ClientsConfig

java.lang.Object
  extended by jgroup.relacs.config.ClientsConfig
All Implemented Interfaces:
ConfigurationObject

public final class ClientsConfig
extends java.lang.Object
implements ConfigurationObject

The ClientsConfig object contains the set of clients on which client applications may be started.

Since:
Jgroup 2.1
Author:
Hein Meling

Constructor Summary
ClientsConfig()
          Constructs an empty distributed system.
 
Method Summary
 boolean containsLocalHost()
          Returns true if the local host is specified in the distributed system configuration; false is returned otherwise.
 HostSet getAllHosts()
          Returns a set of all hosts parsed; independent of domain.
 DomainSet getDomainSet()
          Returns the parsed set of domains.
static Host getHost(java.net.InetAddress inetAdr)
          Returns the host object associated with the given internet address.
static Host getHost(MemberId member)
          Returns the host object associated with the given member.
 Domain getLocalDomain()
          Returns the domain endpoint that is considered local to this domain.
 Host getLocalHost()
          Returns the endpoint that is considered local to this host.
 int hashCode()
           
 int numOfDomains()
          Returns the number of domains parsed.
 void parse(org.w3c.dom.Element elm)
          Parses the specified element.
 int size()
          Returns the size of all hosts parsed; independent of domain.
 java.lang.String toString()
          Returns a string representation of this object
 java.lang.String toString(boolean full)
          Returns a string representation of this object;
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClientsConfig

public ClientsConfig()
Constructs an empty distributed system.

Method Detail

parse

public void parse(org.w3c.dom.Element elm)
           throws ConfigurationException
Parses the specified element.

Specified by:
parse in interface ConfigurationObject
Throws:
ConfigurationException

getDomainSet

public DomainSet getDomainSet()
Returns the parsed set of domains.


getAllHosts

public HostSet getAllHosts()
Returns a set of all hosts parsed; independent of domain.


size

public int size()
Returns the size of all hosts parsed; independent of domain.


numOfDomains

public int numOfDomains()
Returns the number of domains parsed.


getHost

public static Host getHost(MemberId member)
Returns the host object associated with the given member.


getHost

public static Host getHost(java.net.InetAddress inetAdr)
Returns the host object associated with the given internet address.


getLocalHost

public Host getLocalHost()
Returns the endpoint that is considered local to this host.


getLocalDomain

public Domain getLocalDomain()
Returns the domain endpoint that is considered local to this domain.


containsLocalHost

public boolean containsLocalHost()
Returns true if the local host is specified in the distributed system configuration; false is returned otherwise.


hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Returns a string representation of this object

Overrides:
toString in class java.lang.Object

toString

public java.lang.String toString(boolean full)
Returns a string representation of this object;

Parameters:
full - If true, prints also the complete host set for each domain.


Copyright © 1998-2006 The Jgroup/ARM development team. All Rights Reserved.