public class A3CMLServer extends Object implements Serializable
Server
describes an agent server.Modifier and Type | Field and Description |
---|---|
String |
domain
Domain (1st hop) used to access this server from current node.
|
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.
|
int |
hops
Logical distance between this server and the root one, i.e. the number
of hops to reach it from the local one.
|
String |
hostname |
String |
jvmArgs |
String |
name |
Hashtable<Short,A3CMLNat> |
nat |
Vector<A3CMLNetwork> |
networks |
int |
port
Communication port if the server is directly accessible by the root
server.
|
Hashtable<String,A3CMLProperty> |
properties |
private static long |
serialVersionUID
Define serialVersionUID for interoperability.
|
Vector<A3CMLService> |
services |
short |
sid |
boolean |
visited
True if the server is already visited during configuration phase.
|
Constructor and Description |
---|
A3CMLServer(short sid,
String name,
String hostname) |
Modifier and Type | Method and Description |
---|---|
A3CMLNat |
addNat(A3CMLNat natElement) |
void |
addNetwork(A3CMLNetwork newNetwork) |
A3CMLProperty |
addProperty(A3CMLProperty prop) |
void |
addService(A3CMLService newService) |
boolean |
containsNat(short sid) |
boolean |
containsProperty(String name) |
A3CMLServer |
duplicate() |
A3CMLServer |
duplicate(Hashtable<Short,A3CMLServer> context) |
boolean |
equals(Object obj) |
String |
getJvmArgs() |
A3CMLNat |
getNat(short sid) |
A3CMLNetwork |
getNetwork(String domainName) |
A3CMLProperty |
getProperty(String name) |
A3CMLService |
getService(String classname) |
String |
getServiceArgs(String classname) |
int |
hashCode() |
A3CMLNat |
removeNat(short sid) |
void |
removeNetwork(String domainName) |
A3CMLProperty |
removeProperty(String name) |
void |
removeService(String serviceClassName) |
String |
toString() |
private static final long serialVersionUID
public short sid
public String name
public String hostname
public String domain
public int port
public Vector<A3CMLNetwork> networks
public Vector<A3CMLService> services
public String jvmArgs
public Hashtable<String,A3CMLProperty> properties
public boolean visited
public short gateway
public int hops
public void addNetwork(A3CMLNetwork newNetwork) throws Exception
Exception
public void removeNetwork(String domainName)
public void addService(A3CMLService newService) throws Exception
Exception
public void removeService(String serviceClassName)
public A3CMLProperty addProperty(A3CMLProperty prop)
public A3CMLProperty getProperty(String name)
public A3CMLProperty removeProperty(String name)
public boolean containsProperty(String name)
public A3CMLNat getNat(short sid)
public A3CMLNat removeNat(short sid)
public boolean containsNat(short sid)
public final String getJvmArgs()
public final A3CMLService getService(String classname) throws UnknownServiceException
UnknownServiceException
public final String getServiceArgs(String classname) throws UnknownServiceException
UnknownServiceException
public A3CMLNetwork getNetwork(String domainName)
public A3CMLServer duplicate(Hashtable<Short,A3CMLServer> context) throws Exception
Exception
public A3CMLServer duplicate() throws Exception
Exception
Copyright © 2020 ScalAgent D.T.. All rights reserved.