Package fr.dyade.aaa.agent.conf
Class A3CMLServer
- java.lang.Object
-
- fr.dyade.aaa.agent.conf.A3CMLServer
-
- All Implemented Interfaces:
Serializable
public class A3CMLServer extends Object implements Serializable
The classServerdescribes an agent server.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description StringdomainDomain (1st hop) used to access this server from current node.shortgatewayFor persistent server, Id. of router (1st hop) used to access the server from current node. if -1 the server is not accessible.inthopsLogical distance between this server and the root one, i.e. the number of hops to reach it from the local one.StringhostnameStringjvmArgsStringnameHashtable<Short,A3CMLNat>natVector<A3CMLNetwork>networksintportCommunication port if the server is directly accessible by the root server.Hashtable<String,A3CMLProperty>propertiesprivate static longserialVersionUIDDefine serialVersionUID for interoperability.Vector<A3CMLService>servicesshortsidbooleanvisitedTrue if the server is already visited during configuration phase.
-
Constructor Summary
Constructors Constructor Description A3CMLServer(short sid, String name, String hostname)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description A3CMLNataddNat(A3CMLNat natElement)voidaddNetwork(A3CMLNetwork newNetwork)A3CMLPropertyaddProperty(A3CMLProperty prop)voidaddService(A3CMLService newService)booleancontainsNat(short sid)booleancontainsProperty(String name)A3CMLServerduplicate()A3CMLServerduplicate(Hashtable<Short,A3CMLServer> context)booleanequals(Object obj)StringgetJvmArgs()A3CMLNatgetNat(short sid)A3CMLNetworkgetNetwork(String domainName)A3CMLPropertygetProperty(String name)A3CMLServicegetService(String classname)StringgetServiceArgs(String classname)inthashCode()A3CMLNatremoveNat(short sid)voidremoveNetwork(String domainName)A3CMLPropertyremoveProperty(String name)voidremoveService(String serviceClassName)StringtoString()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
Define serialVersionUID for interoperability.- See Also:
- Constant Field Values
-
sid
public short sid
-
name
public String name
-
hostname
public String hostname
-
domain
public String domain
Domain (1st hop) used to access this server from current node.
-
port
public int port
Communication port if the server is directly accessible by the root server.
-
networks
public Vector<A3CMLNetwork> networks
-
services
public Vector<A3CMLService> services
-
jvmArgs
public String jvmArgs
-
properties
public Hashtable<String,A3CMLProperty> properties
-
visited
public boolean visited
True if the server is already visited during configuration phase.
-
gateway
public short gateway
For persistent server, Id. of router (1st hop) used to access the server from current node. if -1 the server is not accessible. This value is fixed during configuration phase.
-
hops
public int hops
Logical distance between this server and the root one, i.e. the number of hops to reach it from the local one.
-
-
Method Detail
-
addNetwork
public void addNetwork(A3CMLNetwork newNetwork) throws Exception
- Throws:
Exception
-
removeNetwork
public void removeNetwork(String domainName)
-
addService
public void addService(A3CMLService newService) throws Exception
- Throws:
Exception
-
removeService
public void removeService(String serviceClassName)
-
addProperty
public A3CMLProperty addProperty(A3CMLProperty prop)
-
getProperty
public A3CMLProperty getProperty(String name)
-
removeProperty
public A3CMLProperty removeProperty(String name)
-
containsProperty
public boolean containsProperty(String name)
-
getNat
public A3CMLNat getNat(short sid)
-
removeNat
public A3CMLNat removeNat(short sid)
-
containsNat
public boolean containsNat(short sid)
-
getJvmArgs
public final String getJvmArgs()
-
getService
public final A3CMLService getService(String classname) throws UnknownServiceException
- Throws:
UnknownServiceException
-
getServiceArgs
public final String getServiceArgs(String classname) throws UnknownServiceException
- Throws:
UnknownServiceException
-
getNetwork
public A3CMLNetwork getNetwork(String domainName)
-
duplicate
public A3CMLServer duplicate(Hashtable<Short,A3CMLServer> context) throws Exception
- Throws:
Exception
-
duplicate
public A3CMLServer duplicate() throws Exception
- Throws:
Exception
-
-