Package fr.dyade.aaa.agent.conf
Class A3CMLDomain
- java.lang.Object
-
- fr.dyade.aaa.agent.conf.A3CMLDomain
-
- All Implemented Interfaces:
Serializable
public class A3CMLDomain extends Object implements Serializable
The classA3CMLDomaindescribes an agent server domain.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description shortgatewayServer Id. of router (1st hop) to access this domain from current node, if -1 the domain is not accessible.inthopsLogical distance between the server of this domain and the root one, i.e.StringnameName of the domain.StringnetworkFull name of Java classprivate static longserialVersionUIDDefine serialVersionUID for interoperability.Vector<A3CMLServer>serversDescription of alls servers in domain
-
Constructor Summary
Constructors Constructor Description A3CMLDomain(String name, String network)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddServer(A3CMLServer server)A3CMLDomainduplicate()A3CMLDomainduplicate(Hashtable<Short,A3CMLServer> context)booleanequals(Object obj)short[]getServersId()inthashCode()voidremoveServer(short sid)voidremoveServer(A3CMLServer server)StringtoString()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
Define serialVersionUID for interoperability.- See Also:
- Constant Field Values
-
name
public String name
Name of the domain.
-
network
public String network
Full name of Java class
-
servers
public Vector<A3CMLServer> servers
Description of alls servers in domain
-
gateway
public short gateway
Server Id. of router (1st hop) to access this domain from current node, if -1 the domain is not accessible.
-
hops
public int hops
Logical distance between the server of this domain and the root one, i.e. the number of hops to reach a server from the local one.
-
-
Method Detail
-
addServer
public void addServer(A3CMLServer server)
-
removeServer
public void removeServer(A3CMLServer server)
-
removeServer
public void removeServer(short sid)
-
getServersId
public short[] getServersId()
-
duplicate
public A3CMLDomain duplicate() throws Exception
- Throws:
Exception
-
duplicate
public A3CMLDomain duplicate(Hashtable<Short,A3CMLServer> context) throws Exception
- Throws:
Exception
-
-