|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjgroup.relacs.config.DistributedSystemConfig
public final class DistributedSystemConfig
The DistributedSystemConfig
object contains a
description of the distributed system on which distributed
computations can be executed. Currently, a distributed system is
described as a collection of domains and hosts, and is read into
this object from an XML configuration file. See the Jgroup
programmers manual for details about the format of this
configuration file.
Constructor Summary | |
---|---|
DistributedSystemConfig()
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. |
static Domain |
getLocalDomain()
Returns the domain endpoint that is considered local to this domain. |
static 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. |
static void |
setLocalHost()
Set the local host and add it to the set of available hosts. |
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; |
static boolean |
updateAll()
Ping all hosts in the current configuration. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DistributedSystemConfig()
Method Detail |
---|
public void parse(org.w3c.dom.Element elm) throws ConfigurationException
parse
in interface ConfigurationObject
ConfigurationException
public DomainSet getDomainSet()
public HostSet getAllHosts()
public int size()
public int numOfDomains()
public static Host getHost(MemberId member)
public static Host getHost(java.net.InetAddress inetAdr)
public static Host getLocalHost()
public static Domain getLocalDomain()
public boolean containsLocalHost()
public static void setLocalHost() throws java.net.UnknownHostException
config.xml
file.
Local host is not set if already defined in the configuration.
java.net.UnknownHostException
public static boolean updateAll()
ExecService
is not running on one or more hosts in the system. False indicates
that all is well.
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(boolean full)
full
- If true, prints also the complete host set for each domain.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |