fr.dyade.aaa.agent.conf.A3CMLConfig Class Reference

List of all members.

Public Member Functions

 A3CMLConfig ()
final void addDomain (A3CMLDomain domain) throws DuplicateDomainException
final A3CMLDomain removeDomain (String name) throws UnknownDomainException
final boolean containsDomain (String name)
final A3CMLDomain getDomain (String name) throws UnknownDomainException
final void addCluster (A3CMLCluster cluster) throws DuplicateClusterException
final A3CMLCluster getCluster (short sid) throws UnknownClusterException
final A3CMLCluster getCluster (String name) throws UnknownClusterException
short getClusterIdByName (String name) throws UnknownClusterException
final boolean containsCluster (String name)
final boolean containsCluster (short sid)
final A3CMLCluster removeCluster (short sid) throws UnknownClusterException
final A3CMLCluster removeCluster (String name) throws UnknownClusterException
final void addServer (A3CMLServer server) throws DuplicateServerException
final A3CMLServer removeServer (short sid) throws UnknownServerException
final A3CMLServer removeServer (String name) throws UnknownServerException
final boolean containsServer (short sid)
short getServerIdByName (String name) throws UnknownServerException
final boolean containsServer (String name)
final A3CMLServer getServer (short sid) throws UnknownServerException
final A3CMLServer getServer (short sid, short cid) throws UnknownServerException
final A3CMLServer getServer (String name) throws UnknownServerException
final A3CMLProperty addProperty (A3CMLProperty prop) throws Exception
final A3CMLProperty removeProperty (String name)
final boolean containsProperty (String name)
final A3CMLProperty getProperty (String name)
final A3CMLProperty getProperty (String name, short sid, short cid) throws Exception
final String getJvmArgs (short sid) throws UnknownServerException
final String getJvmArgs (String name) throws UnknownServerException
final String getServiceArgs (short sid, String classname) throws UnknownServerException, UnknownServiceException
final String getServiceArgs (String name, String classname) throws UnknownServerException, UnknownServiceException
void configure (A3CMLServer root) throws Exception
A3CMLConfig getDomainConfig (String domainName) throws Exception
A3CMLConfig getDomainConfig (String[] listDomainName) throws Exception
void save () throws IOException
String toString ()
final String getServiceArgsHost (String hostname, String classname) throws Exception
boolean equals (Object obj)
void reset ()

Static Public Member Functions

static A3CMLConfig load () throws Exception
static A3CMLConfig getConfig (String path) throws Exception

Public Attributes

Hashtable domains = null
Hashtable servers = null
Hashtable properties = null
Hashtable clusters = null

Detailed Description

Definition at line 28 of file A3CMLConfig.java.


Member Function Documentation

final void fr.dyade.aaa.agent.conf.A3CMLConfig.addDomain ( A3CMLDomain  domain  )  throws DuplicateDomainException

Adds a domain.

Parameters:
domain The description of added domain.
Exceptions:
DuplicateDomainException If the domain already exist.

Definition at line 55 of file A3CMLConfig.java.

References fr.dyade.aaa.agent.conf.A3CMLConfig.domains.

Referenced by fr.dyade.aaa.agent.ServerConfigHelper.addDomain(), fr.dyade.aaa.agent.ConfigController.addDomain(), fr.dyade.aaa.agent.conf.A3CMLSaxWrapper.endElement(), fr.dyade.aaa.agent.conf.A3CMLConfig.getDomainConfig(), fr.dyade.aaa.agent.AgentServer.init(), and fr.dyade.aaa.agent.conf.A3CMLKXmlWrapper.parse().

final A3CMLDomain fr.dyade.aaa.agent.conf.A3CMLConfig.removeDomain ( String  name  )  throws UnknownDomainException

Removes a domain.

Parameters:
name The domain name.
Returns:
The domain description if exist.
Exceptions:
UnknownDomainException If the domain don't exist.

Definition at line 69 of file A3CMLConfig.java.

References fr.dyade.aaa.agent.conf.A3CMLConfig.domains.

Referenced by fr.dyade.aaa.agent.ServerConfigHelper.addDomain(), fr.dyade.aaa.agent.ServerConfigHelper.removeDomain(), and fr.dyade.aaa.agent.ConfigController.removeDomain().

final boolean fr.dyade.aaa.agent.conf.A3CMLConfig.containsDomain ( String  name  ) 

Returns true if it exists a domain with this name, false otherwise.

Parameters:
name The domain name.
Returns:
True if the domain is declared, false otherwise.

Definition at line 84 of file A3CMLConfig.java.

References fr.dyade.aaa.agent.conf.A3CMLConfig.domains.

final A3CMLDomain fr.dyade.aaa.agent.conf.A3CMLConfig.getDomain ( String  name  )  throws UnknownDomainException

Returns the description of a domain.

Parameters:
name The domain name.
Returns:
The domain description if exist.
Exceptions:
UnknownDomainException If the domain don't exist.

Definition at line 96 of file A3CMLConfig.java.

References fr.dyade.aaa.agent.conf.A3CMLConfig.domains.

Referenced by fr.dyade.aaa.agent.ConfigController.addNetwork(), fr.dyade.aaa.agent.ServerConfigHelper.addServer(), fr.dyade.aaa.agent.conf.A3CMLSaxWrapper.endElement(), fr.dyade.aaa.agent.conf.A3CMLConfig.getDomainConfig(), fr.dyade.aaa.agent.conf.A3CMLKXmlWrapper.parse(), fr.dyade.aaa.agent.ServerConfigHelper.removeDomain(), and fr.dyade.aaa.agent.ConfigController.removeDomain().

final void fr.dyade.aaa.agent.conf.A3CMLConfig.addCluster ( A3CMLCluster  cluster  )  throws DuplicateClusterException

Adds a cluster.

Parameters:
cluster The description of added cluster.
Exceptions:
DuplicateClusterException If the cluster already exist.

Definition at line 110 of file A3CMLConfig.java.

References fr.dyade.aaa.agent.conf.A3CMLConfig.clusters.

Referenced by fr.dyade.aaa.agent.conf.A3CMLSaxWrapper.endElement().

final A3CMLCluster fr.dyade.aaa.agent.conf.A3CMLConfig.getCluster ( short  sid  )  throws UnknownClusterException

Returns the description of a cluster.

Parameters:
sid The cluster identifier.
Returns:
The cluster description if exist.
Exceptions:
UnknownClusterException If the cluster does not exist.

Definition at line 125 of file A3CMLConfig.java.

References fr.dyade.aaa.agent.conf.A3CMLConfig.clusters.

Referenced by fr.dyade.aaa.agent.conf.A3CMLConfig.getProperty(), and fr.dyade.aaa.agent.conf.A3CMLConfig.getServer().

final A3CMLCluster fr.dyade.aaa.agent.conf.A3CMLConfig.getCluster ( String  name  )  throws UnknownClusterException

Returns the description of a cluster.

Parameters:
name The cluster name.
Returns:
The cluster description if exist.
Exceptions:
UnknownClusterException If the cluster does not exist.

Definition at line 140 of file A3CMLConfig.java.

References fr.dyade.aaa.agent.conf.A3CMLConfig.clusters.

short fr.dyade.aaa.agent.conf.A3CMLConfig.getClusterIdByName ( String  name  )  throws UnknownClusterException

Gets a cluster identifier from its name.

Parameters:
name The cluster name.
Returns:
The cluster identifier.
Exceptions:
UnknownClusterException If the cluster does not exist.

Definition at line 156 of file A3CMLConfig.java.

References fr.dyade.aaa.agent.conf.A3CMLConfig.clusters.

Referenced by fr.dyade.aaa.agent.conf.A3CMLConfig.containsCluster(), and fr.dyade.aaa.agent.conf.A3CMLConfig.removeCluster().

final boolean fr.dyade.aaa.agent.conf.A3CMLConfig.containsCluster ( String  name  ) 

Returns true if the configuration contains a cluster with specified name.

Parameters:
name cluster name
Returns:
true if contain name; false otherwise.

Definition at line 171 of file A3CMLConfig.java.

References fr.dyade.aaa.agent.conf.A3CMLConfig.getClusterIdByName().

Here is the call graph for this function:

final boolean fr.dyade.aaa.agent.conf.A3CMLConfig.containsCluster ( short  sid  ) 

Returns true if the configuration contains a cluster with specified id.

Parameters:
sid cluster id
Returns:
true if contain sid; false otherwise.

Definition at line 186 of file A3CMLConfig.java.

References fr.dyade.aaa.agent.conf.A3CMLConfig.clusters.

final A3CMLCluster fr.dyade.aaa.agent.conf.A3CMLConfig.removeCluster ( short  sid  )  throws UnknownClusterException

Removes a cluster.

Parameters:
sid The unique cluster identifier.
Returns:
The cluster description if exists.
Exceptions:
UnknownClusterException If the server does not exist.

Definition at line 198 of file A3CMLConfig.java.

References fr.dyade.aaa.agent.conf.A3CMLConfig.clusters.

Referenced by fr.dyade.aaa.agent.conf.A3CMLConfig.removeCluster().

final A3CMLCluster fr.dyade.aaa.agent.conf.A3CMLConfig.removeCluster ( String  name  )  throws UnknownClusterException

Remove a cluster.

Parameters:
name The cluster name.
Returns:
The cluster description if exists.
Exceptions:
UnknownClusterException If the server does not exist.

Definition at line 216 of file A3CMLConfig.java.

References fr.dyade.aaa.agent.conf.A3CMLConfig.getClusterIdByName(), and fr.dyade.aaa.agent.conf.A3CMLConfig.removeCluster().

Here is the call graph for this function:

final void fr.dyade.aaa.agent.conf.A3CMLConfig.addServer ( A3CMLServer  server  )  throws DuplicateServerException

Adds a server.

Parameters:
server The description of added server.
Exceptions:
DuplicateServerException If the server already exist.

Definition at line 227 of file A3CMLConfig.java.

References fr.dyade.aaa.agent.conf.A3CMLConfig.servers.

Referenced by fr.dyade.aaa.agent.ServerConfigHelper.addServer(), fr.dyade.aaa.agent.ConfigController.addServer(), fr.dyade.aaa.agent.conf.A3CMLSaxWrapper.endElement(), fr.dyade.aaa.agent.AgentServer.init(), and fr.dyade.aaa.agent.conf.A3CMLKXmlWrapper.parse().

final A3CMLServer fr.dyade.aaa.agent.conf.A3CMLConfig.removeServer ( short  sid  )  throws UnknownServerException

Removes a server.

Parameters:
sid The unique server identifier.
Returns:
The server description if exists.
Exceptions:
UnknownServerException If the server does not exist.

Definition at line 242 of file A3CMLConfig.java.

References fr.dyade.aaa.agent.conf.A3CMLConfig.domains, fr.dyade.aaa.agent.conf.A3CMLServer.networks, fr.dyade.aaa.agent.conf.A3CMLDomain.removeServer(), and fr.dyade.aaa.agent.conf.A3CMLConfig.servers.

Referenced by fr.dyade.aaa.agent.conf.A3CMLConfig.removeServer().

Here is the call graph for this function:

final A3CMLServer fr.dyade.aaa.agent.conf.A3CMLConfig.removeServer ( String  name  )  throws UnknownServerException

Remove a server.

Parameters:
name The server name.
Returns:
The server description if exists.
Exceptions:
UnknownServerException If the server does not exist.

Definition at line 268 of file A3CMLConfig.java.

References fr.dyade.aaa.agent.conf.A3CMLConfig.getServerIdByName(), and fr.dyade.aaa.agent.conf.A3CMLConfig.removeServer().

Here is the call graph for this function:

final boolean fr.dyade.aaa.agent.conf.A3CMLConfig.containsServer ( short  sid  ) 

Returns true if the configuration contains a server with specified id.

Parameters:
sid server id
Returns:
true if contain sid; false otherwise.

Definition at line 278 of file A3CMLConfig.java.

References fr.dyade.aaa.agent.conf.A3CMLConfig.servers.

Referenced by fr.dyade.aaa.agent.ConfigController.addServer().

short fr.dyade.aaa.agent.conf.A3CMLConfig.getServerIdByName ( String  name  )  throws UnknownServerException

Gets a server identifier from its name.

Parameters:
name The server name.
Returns:
The server identifier.
Exceptions:
UnknownServerException If the server does not exist.

Definition at line 290 of file A3CMLConfig.java.

References fr.dyade.aaa.agent.conf.A3CMLConfig.servers.

Referenced by fr.dyade.aaa.agent.ConfigController.addNetwork(), fr.dyade.aaa.agent.ConfigController.addService(), fr.dyade.aaa.agent.conf.A3CMLConfig.containsServer(), fr.dyade.aaa.agent.AgentServer.getServerIdByName(), fr.dyade.aaa.agent.conf.A3CMLConfig.removeServer(), and fr.dyade.aaa.agent.ConfigController.setServerNat().

final boolean fr.dyade.aaa.agent.conf.A3CMLConfig.containsServer ( String  name  ) 

Returns true if the configuration contains a server with specified name.

Parameters:
name server name
Returns:
true if contain name; false otherwise.

Definition at line 304 of file A3CMLConfig.java.

References fr.dyade.aaa.agent.conf.A3CMLConfig.getServerIdByName().

Here is the call graph for this function:

final A3CMLServer fr.dyade.aaa.agent.conf.A3CMLConfig.getServer ( short  sid  )  throws UnknownServerException

Returns the description of a server.

Parameters:
sid The server identifier.
Returns:
The server description if exist.
Exceptions:
UnknownServerException If the server does not exist.

Definition at line 321 of file A3CMLConfig.java.

Referenced by fr.dyade.aaa.agent.ServerConfigHelper.addDomain(), fr.dyade.aaa.agent.ConfigController.addNetwork(), fr.dyade.aaa.agent.ServerConfigHelper.addServer(), fr.dyade.aaa.agent.ServerConfigHelper.addService(), fr.dyade.aaa.agent.ConfigController.addService(), fr.dyade.aaa.agent.ConfigController.commitConfig(), fr.dyade.aaa.agent.SCAdminBase.crashAgentServer(), fr.dyade.aaa.agent.conf.A3CMLConfig.getDomainConfig(), fr.dyade.aaa.agent.conf.A3CMLConfig.getJvmArgs(), fr.dyade.aaa.agent.conf.A3CMLConfig.getProperty(), fr.dyade.aaa.agent.conf.A3CMLConfig.getServiceArgs(), fr.dyade.aaa.agent.AgentServer.initServerDesc(), fr.dyade.aaa.agent.ServerConfigHelper.removeDomain(), fr.dyade.aaa.agent.ConfigController.removeNetwork(), fr.dyade.aaa.agent.ConfigController.removeServer(), fr.dyade.aaa.agent.ServerConfigHelper.removeService(), fr.dyade.aaa.agent.ConfigController.removeService(), fr.dyade.aaa.agent.ConfigController.setJVMArgs(), fr.dyade.aaa.agent.ConfigController.setNetworkPort(), fr.dyade.aaa.agent.ConfigController.setNetworkProperties(), fr.dyade.aaa.agent.ConfigController.setServerNat(), fr.dyade.aaa.agent.ConfigController.setServerProperty(), and fr.dyade.aaa.agent.SCAdminBase.stopAgentServer().

final A3CMLServer fr.dyade.aaa.agent.conf.A3CMLConfig.getServer ( short  sid,
short  cid 
) throws UnknownServerException

Returns the description of a server.

Parameters:
sid The server identifier.
cid The cluster identifier.
Returns:
The server description if exist.
Exceptions:
UnknownServerException If the server does not exist.

Definition at line 334 of file A3CMLConfig.java.

References fr.dyade.aaa.agent.conf.A3CMLConfig.getCluster(), fr.dyade.aaa.agent.conf.A3CMLCluster.getServer(), and fr.dyade.aaa.agent.conf.A3CMLConfig.servers.

Here is the call graph for this function:

final A3CMLServer fr.dyade.aaa.agent.conf.A3CMLConfig.getServer ( String  name  )  throws UnknownServerException

Returns the description of a server.

Parameters:
name The server name.
Returns:
The server description if exist.
Exceptions:
UnknownServerException If the server does not exist.

Definition at line 360 of file A3CMLConfig.java.

References fr.dyade.aaa.agent.conf.A3CMLConfig.servers.

final A3CMLProperty fr.dyade.aaa.agent.conf.A3CMLConfig.addProperty ( A3CMLProperty  prop  )  throws Exception

add property

Parameters:
prop A3CMLProperty
Returns:
the previous value of the specified prop.name in this hashtable, or null if it did not have one.
Exceptions:
Exception 

Definition at line 376 of file A3CMLConfig.java.

References fr.dyade.aaa.agent.conf.A3CMLConfig.properties.

Referenced by fr.dyade.aaa.agent.conf.A3CMLSaxWrapper.endElement(), fr.dyade.aaa.agent.conf.A3CMLConfig.getDomainConfig(), fr.dyade.aaa.agent.conf.A3CMLKXmlWrapper.parse(), and fr.dyade.aaa.agent.ConfigController.setProperty().

final A3CMLProperty fr.dyade.aaa.agent.conf.A3CMLConfig.removeProperty ( String  name  ) 

remove property

Parameters:
name property name
Returns:
the value to which the name had been mapped in this hashtable, or null if the name did not have a mapping.

Definition at line 387 of file A3CMLConfig.java.

References fr.dyade.aaa.agent.conf.A3CMLConfig.properties.

final boolean fr.dyade.aaa.agent.conf.A3CMLConfig.containsProperty ( String  name  ) 

contains property

Parameters:
name property name
Returns:
true if contain name; false otherwise.

Definition at line 397 of file A3CMLConfig.java.

References fr.dyade.aaa.agent.conf.A3CMLConfig.properties.

final A3CMLProperty fr.dyade.aaa.agent.conf.A3CMLConfig.getProperty ( String  name  ) 

Returns the specified property.

Definition at line 404 of file A3CMLConfig.java.

References fr.dyade.aaa.agent.conf.A3CMLConfig.properties.

Referenced by fr.dyade.aaa.agent.conf.A3CML.getConfig(), and fr.dyade.aaa.agent.conf.A3CML.getXMLConfig().

final A3CMLProperty fr.dyade.aaa.agent.conf.A3CMLConfig.getProperty ( String  name,
short  sid,
short  cid 
) throws Exception

Returns the specified property.

Definition at line 411 of file A3CMLConfig.java.

References fr.dyade.aaa.agent.conf.A3CMLConfig.getCluster(), fr.dyade.aaa.agent.conf.A3CMLCluster.getProperty(), fr.dyade.aaa.agent.conf.A3CMLServer.getProperty(), fr.dyade.aaa.agent.conf.A3CMLCluster.getServer(), and fr.dyade.aaa.agent.conf.A3CMLConfig.getServer().

Here is the call graph for this function:

final String fr.dyade.aaa.agent.conf.A3CMLConfig.getJvmArgs ( short  sid  )  throws UnknownServerException

Get the JVM argument for a particular agent server identified by its id.

Parameters:
id agent server identifier.
Returns:
the arguments as declared in configuration file
Exceptions:
UnknownServerException The specified server does not exist.

Definition at line 435 of file A3CMLConfig.java.

References fr.dyade.aaa.agent.conf.A3CMLServer.getJvmArgs(), and fr.dyade.aaa.agent.conf.A3CMLConfig.getServer().

Referenced by fr.dyade.aaa.agent.SCAdminBase.startAgentServer().

Here is the call graph for this function:

final String fr.dyade.aaa.agent.conf.A3CMLConfig.getJvmArgs ( String  name  )  throws UnknownServerException

Get the JVM argument for a particular agent server identified by its name.

Parameters:
name agent server name.
Returns:
the arguments as declared in configuration file
Exceptions:
UnknownServerException The specified server does not exist.

Definition at line 448 of file A3CMLConfig.java.

References fr.dyade.aaa.agent.conf.A3CMLServer.getJvmArgs(), and fr.dyade.aaa.agent.conf.A3CMLConfig.getServer().

Here is the call graph for this function:

final String fr.dyade.aaa.agent.conf.A3CMLConfig.getServiceArgs ( short  sid,
String  classname 
) throws UnknownServerException, UnknownServiceException

Get the argument strings for a particular service on a particular agent server identified by its id.

Parameters:
sid agent server id.
classname the service class name.
Returns:
the arguments as declared.
Exceptions:
UnknownServerException The specified server does not exist.
UnknownServiceException The specified service is not declared on this server.

Definition at line 466 of file A3CMLConfig.java.

References fr.dyade.aaa.agent.conf.A3CMLConfig.getServer(), and fr.dyade.aaa.agent.conf.A3CMLServer.getServiceArgs().

Referenced by fr.dyade.aaa.agent.SCAdminBase.crashAgentServer(), fr.dyade.aaa.agent.AgentServer.getServiceArgs(), fr.dyade.aaa.agent.conf.A3CMLConfig.getServiceArgsHost(), and fr.dyade.aaa.agent.SCAdminBase.stopAgentServer().

Here is the call graph for this function:

final String fr.dyade.aaa.agent.conf.A3CMLConfig.getServiceArgs ( String  name,
String  classname 
) throws UnknownServerException, UnknownServiceException

Get the argument strings for a particular service on a particular agent server identified by its name.

Parameters:
sid agent server name.
classname the service class name.
Returns:
the arguments as declared.
Exceptions:
UnknownServerException The specified server does not exist.
UnknownServiceException The specified service is not declared on this server.

Definition at line 485 of file A3CMLConfig.java.

References fr.dyade.aaa.agent.conf.A3CMLConfig.getServer(), and fr.dyade.aaa.agent.conf.A3CMLServer.getServiceArgs().

Here is the call graph for this function:

void fr.dyade.aaa.agent.conf.A3CMLConfig.configure ( A3CMLServer  root  )  throws Exception

Adapts the current configuration to the specified persistent server.

Definition at line 498 of file A3CMLConfig.java.

References fr.dyade.aaa.agent.conf.A3CMLServer.domain, fr.dyade.aaa.agent.conf.A3CMLConfig.domains, fr.dyade.aaa.agent.conf.A3CMLConfig.equals(), fr.dyade.aaa.agent.conf.A3CMLDomain.gateway, fr.dyade.aaa.agent.conf.A3CMLDomain.hops, fr.dyade.aaa.agent.conf.A3CMLDomain.network, fr.dyade.aaa.agent.conf.A3CMLConfig.reset(), fr.dyade.aaa.agent.conf.A3CMLDomain.servers, and fr.dyade.aaa.agent.conf.A3CMLConfig.servers.

Referenced by fr.dyade.aaa.agent.ServerConfigHelper.addDomain(), fr.dyade.aaa.agent.ServerConfigHelper.addServer(), fr.dyade.aaa.agent.ConfigController.commitConfig(), and fr.dyade.aaa.agent.ServerConfigHelper.removeDomain().

Here is the call graph for this function:

A3CMLConfig fr.dyade.aaa.agent.conf.A3CMLConfig.getDomainConfig ( String  domainName  )  throws Exception

Gets configuration of agent servers by a domain from a Config object. This method fills the object graph configuration in the Config object.

Parameters:
domainName domain name
Returns:
the Config object if file exists and is correct, null otherwise.
Exceptions:
Exception unspecialized exception when reading and parsing the configuration file

Definition at line 651 of file A3CMLConfig.java.

References fr.dyade.aaa.agent.conf.A3CMLConfig.A3CMLConfig(), fr.dyade.aaa.agent.conf.A3CMLConfig.addDomain(), fr.dyade.aaa.agent.conf.A3CMLConfig.addProperty(), fr.dyade.aaa.agent.conf.A3CMLDomain.addServer(), fr.dyade.aaa.agent.conf.A3CMLDomain.duplicate(), fr.dyade.aaa.agent.conf.A3CMLConfig.getDomain(), fr.dyade.aaa.agent.conf.A3CMLConfig.getServer(), fr.dyade.aaa.agent.conf.A3CMLDomain.name, fr.dyade.aaa.agent.conf.A3CMLDomain.network, fr.dyade.aaa.agent.conf.A3CMLServer.networks, fr.dyade.aaa.agent.conf.A3CMLConfig.properties, fr.dyade.aaa.agent.conf.A3CMLConfig.servers, and fr.dyade.aaa.agent.conf.A3CMLDomain.servers.

Referenced by fr.dyade.aaa.agent.AgentServer.getAppConfig().

Here is the call graph for this function:

A3CMLConfig fr.dyade.aaa.agent.conf.A3CMLConfig.getDomainConfig ( String[]  listDomainName  )  throws Exception

Gets configuration of agent servers by a list of domain from a Config object. This method fills the object graph configuration in the Config object.

Parameters:
domainName list of domain name
Returns:
the Config object if file exists and is correct, null otherwise.
Exceptions:
Exception unspecialized exception when reading and parsing the configuration file

Definition at line 710 of file A3CMLConfig.java.

References fr.dyade.aaa.agent.conf.A3CMLConfig.A3CMLConfig(), fr.dyade.aaa.agent.conf.A3CMLConfig.addDomain(), fr.dyade.aaa.agent.conf.A3CMLConfig.addProperty(), fr.dyade.aaa.agent.conf.A3CMLDomain.addServer(), fr.dyade.aaa.agent.conf.A3CMLDomain.duplicate(), fr.dyade.aaa.agent.conf.A3CMLConfig.getDomain(), fr.dyade.aaa.agent.conf.A3CMLConfig.getServer(), fr.dyade.aaa.agent.conf.A3CMLDomain.name, fr.dyade.aaa.agent.conf.A3CMLDomain.network, fr.dyade.aaa.agent.conf.A3CMLServer.networks, fr.dyade.aaa.agent.conf.A3CMLConfig.properties, fr.dyade.aaa.agent.conf.A3CMLConfig.servers, and fr.dyade.aaa.agent.conf.A3CMLDomain.servers.

Here is the call graph for this function:

void fr.dyade.aaa.agent.conf.A3CMLConfig.save (  )  throws IOException

save configuration of agent servers (Config) in a serialized file.

Exceptions:
IOException 
See also:
AgentServer.DEFAULT_SER_CFG_FILE

Definition at line 782 of file A3CMLConfig.java.

Referenced by fr.dyade.aaa.agent.ServerConfigHelper.commit(), and fr.dyade.aaa.agent.AgentServer.init().

static A3CMLConfig fr.dyade.aaa.agent.conf.A3CMLConfig.load (  )  throws Exception [static]

read object from a serialized file, in cfgDir if null, search object in path used to load classes

Parameters:
cfgDir read obj in this directory
cfgFileName serialized file name
Exceptions:
Exception 

Definition at line 798 of file A3CMLConfig.java.

References fr.dyade.aaa.agent.conf.A3CMLConfig.load().

Referenced by fr.dyade.aaa.agent.AgentServer.init(), and fr.dyade.aaa.agent.conf.A3CMLConfig.load().

Here is the call graph for this function:

static A3CMLConfig fr.dyade.aaa.agent.conf.A3CMLConfig.getConfig ( String  path  )  throws Exception [static]

Gets a A3CMLConfig serialialized object from file.

Parameters:
path path of serialized configuration file
Returns:
the A3CMLConfig object if file exists and is correct, null otherwise.
Exceptions:
Exception unspecialized exception when reading and parsing the configuration file

Definition at line 826 of file A3CMLConfig.java.

Referenced by fr.dyade.aaa.agent.ConfigController.beginConfig(), and fr.dyade.aaa.agent.AgentServer.init().

final String fr.dyade.aaa.agent.conf.A3CMLConfig.getServiceArgsHost ( String  hostname,
String  classname 
) throws Exception

Gets the argument strings for a particular service running on a server identified by its host (searchs on all servers and associated transient).

Parameters:
hostname hostname
className the service class name
Returns:
the arguments as declared in configuration file
Exceptions:
UnknownServiceException The specified service is not declared on this server.

Definition at line 972 of file A3CMLConfig.java.

References fr.dyade.aaa.agent.conf.A3CMLConfig.getServiceArgs(), and fr.dyade.aaa.agent.conf.A3CMLConfig.servers.

Referenced by fr.dyade.aaa.agent.AgentServer.getServiceArgs().

Here is the call graph for this function:

void fr.dyade.aaa.agent.conf.A3CMLConfig.reset (  ) 

reset visited and gateway fields.

Definition at line 1004 of file A3CMLConfig.java.

References fr.dyade.aaa.agent.conf.A3CMLConfig.domains, and fr.dyade.aaa.agent.conf.A3CMLConfig.servers.

Referenced by fr.dyade.aaa.agent.conf.A3CMLConfig.configure().


Member Data Documentation

Hashtable fr.dyade.aaa.agent.conf.A3CMLConfig.domains = null

Hashtable of all domains

Definition at line 33 of file A3CMLConfig.java.

Referenced by fr.dyade.aaa.agent.conf.A3CMLConfig.A3CMLConfig(), fr.dyade.aaa.agent.ServerConfigHelper.addDomain(), fr.dyade.aaa.agent.conf.A3CMLConfig.addDomain(), fr.dyade.aaa.agent.conf.A3CMLConfig.configure(), fr.dyade.aaa.agent.conf.A3CMLConfig.containsDomain(), fr.dyade.aaa.agent.conf.A3CMLConfig.equals(), fr.dyade.aaa.agent.conf.A3CMLConfig.getDomain(), fr.dyade.aaa.agent.conf.A3CMLConfig.removeDomain(), fr.dyade.aaa.agent.conf.A3CMLConfig.removeServer(), fr.dyade.aaa.agent.conf.A3CMLConfig.reset(), and fr.dyade.aaa.agent.conf.A3CMLConfig.toString().

Hashtable fr.dyade.aaa.agent.conf.A3CMLConfig.servers = null

Hashtable of all servers (persitent and transient)

Definition at line 35 of file A3CMLConfig.java.

Referenced by fr.dyade.aaa.agent.conf.A3CMLConfig.A3CMLConfig(), fr.dyade.aaa.agent.ServerConfigHelper.addDomain(), fr.dyade.aaa.agent.ServerConfigHelper.addServer(), fr.dyade.aaa.agent.conf.A3CMLConfig.addServer(), fr.dyade.aaa.agent.conf.A3CMLConfig.configure(), fr.dyade.aaa.agent.conf.A3CMLConfig.containsServer(), fr.dyade.aaa.agent.conf.A3CMLConfig.equals(), fr.dyade.aaa.agent.conf.A3CML.getConfig(), fr.dyade.aaa.agent.conf.A3CMLConfig.getDomainConfig(), fr.dyade.aaa.agent.conf.A3CMLConfig.getServer(), fr.dyade.aaa.agent.conf.A3CMLConfig.getServerIdByName(), fr.dyade.aaa.agent.conf.A3CMLConfig.getServiceArgsHost(), fr.dyade.aaa.agent.conf.A3CMLConfig.removeServer(), fr.dyade.aaa.agent.conf.A3CMLConfig.reset(), and fr.dyade.aaa.agent.conf.A3CMLConfig.toString().

Hashtable fr.dyade.aaa.agent.conf.A3CMLConfig.properties = null

Hashtable of all global properties

Definition at line 37 of file A3CMLConfig.java.

Referenced by fr.dyade.aaa.agent.conf.A3CMLConfig.A3CMLConfig(), fr.dyade.aaa.agent.conf.A3CMLConfig.addProperty(), fr.dyade.aaa.agent.conf.A3CMLConfig.containsProperty(), fr.dyade.aaa.agent.conf.A3CMLConfig.equals(), fr.dyade.aaa.agent.conf.A3CMLConfig.getDomainConfig(), fr.dyade.aaa.agent.conf.A3CMLConfig.getProperty(), fr.dyade.aaa.agent.conf.A3CMLConfig.removeProperty(), and fr.dyade.aaa.agent.conf.A3CMLConfig.toString().

Hashtable fr.dyade.aaa.agent.conf.A3CMLConfig.clusters = null

Hashtable of all clusters

Definition at line 39 of file A3CMLConfig.java.

Referenced by fr.dyade.aaa.agent.conf.A3CMLConfig.A3CMLConfig(), fr.dyade.aaa.agent.conf.A3CMLConfig.addCluster(), fr.dyade.aaa.agent.conf.A3CMLConfig.containsCluster(), fr.dyade.aaa.agent.conf.A3CMLConfig.getCluster(), fr.dyade.aaa.agent.conf.A3CMLConfig.getClusterIdByName(), fr.dyade.aaa.agent.conf.A3CMLConfig.removeCluster(), and fr.dyade.aaa.agent.conf.A3CMLConfig.toString().


The documentation for this class was generated from the following file:
Generated on Tue Sep 16 16:16:58 2008 for joram by  doxygen 1.5.0