fr.dyade.aaa.agent.conf
Class A3CMLServer

java.lang.Object
  extended by fr.dyade.aaa.agent.conf.A3CMLServer
All Implemented Interfaces:
java.io.Serializable

public class A3CMLServer
extends java.lang.Object
implements java.io.Serializable

The class Server describes an agent server.

See Also:
Serialized Form

Field Summary
 java.lang.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.
 java.lang.String hostname
           
 java.lang.String jvmArgs
           
 java.lang.String name
           
 java.util.Hashtable nat
           
 java.util.Vector networks
           
 int port
          Communication port if the server is directly accessible by the root server.
 java.util.Hashtable properties
           
private static long serialVersionUID
           
 java.util.Vector services
           
 short sid
           
 boolean visited
          True if the server is already visited during configuration phase.
 
Constructor Summary
A3CMLServer(short sid, java.lang.String name, java.lang.String hostname)
           
 
Method Summary
 A3CMLNat addNat(A3CMLNat natElement)
           
 void addNetwork(A3CMLNetwork newNetwork)
           
 A3CMLProperty addProperty(A3CMLProperty prop)
           
 void addService(A3CMLService newService)
           
 boolean containsNat(short sid)
           
 boolean containsProperty(java.lang.String name)
           
 A3CMLServer duplicate()
           
 A3CMLServer duplicate(java.util.Hashtable context)
           
 boolean equals(java.lang.Object obj)
           
 java.lang.String getJvmArgs()
           
 A3CMLNat getNat(short sid)
           
 A3CMLNetwork getNetwork(java.lang.String domainName)
           
 A3CMLProperty getProperty(java.lang.String name)
           
 A3CMLService getService(java.lang.String classname)
           
 java.lang.String getServiceArgs(java.lang.String classname)
           
 int hashCode()
           
 A3CMLNat removeNat(short sid)
           
 void removeNetwork(java.lang.String domainName)
           
 A3CMLProperty removeProperty(java.lang.String name)
           
 void removeService(java.lang.String serviceClassName)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

sid

public short sid

name

public java.lang.String name

hostname

public java.lang.String hostname

domain

public java.lang.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.


nat

public java.util.Hashtable nat

networks

public java.util.Vector networks

services

public java.util.Vector services

jvmArgs

public java.lang.String jvmArgs

properties

public java.util.Hashtable 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.

Constructor Detail

A3CMLServer

public A3CMLServer(short sid,
                   java.lang.String name,
                   java.lang.String hostname)
            throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

addNetwork

public void addNetwork(A3CMLNetwork newNetwork)
                throws java.lang.Exception
Throws:
java.lang.Exception

removeNetwork

public void removeNetwork(java.lang.String domainName)

addService

public void addService(A3CMLService newService)
                throws java.lang.Exception
Throws:
java.lang.Exception

removeService

public void removeService(java.lang.String serviceClassName)

addProperty

public A3CMLProperty addProperty(A3CMLProperty prop)

getProperty

public A3CMLProperty getProperty(java.lang.String name)

removeProperty

public A3CMLProperty removeProperty(java.lang.String name)

containsProperty

public boolean containsProperty(java.lang.String name)

addNat

public A3CMLNat addNat(A3CMLNat natElement)

getNat

public A3CMLNat getNat(short sid)

removeNat

public A3CMLNat removeNat(short sid)

containsNat

public boolean containsNat(short sid)

getJvmArgs

public final java.lang.String getJvmArgs()

getService

public final A3CMLService getService(java.lang.String classname)
                              throws UnknownServiceException
Throws:
UnknownServiceException

getServiceArgs

public final java.lang.String getServiceArgs(java.lang.String classname)
                                      throws UnknownServiceException
Throws:
UnknownServiceException

getNetwork

public A3CMLNetwork getNetwork(java.lang.String domainName)

duplicate

public A3CMLServer duplicate(java.util.Hashtable context)
                      throws java.lang.Exception
Throws:
java.lang.Exception

duplicate

public A3CMLServer duplicate()
                      throws java.lang.Exception
Throws:
java.lang.Exception

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

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


Copyright © 2010 ScalAgent D.T.. All Rights Reserved.