fr.dyade.aaa.util

Class AgentServerConfigGenerator


public class AgentServerConfigGenerator
extends java.lang.Object

Field Summary

static String
A3_DTD
static String
CONFIG_TAG
static String
DOMAIN_TAG
static String
ID
static String
INFO
static String
NAME
static String
NETWORK_TAG
static String
PORT
static String
PROPERTY_TAG
static String
SERVER
static String
SERVER_TAG
static String
SET_TAG
static String
TRANSIENT_TAG
static String
TYPE
static String
VALUE
static String
VAR_MARK
static String
VAR_TAG

Constructor Summary

AgentServerConfigGenerator(InputStream template)
AgentServerConfigGenerator(String templateFile)
constructor

Method Summary

static void
deleteApplicationConfig(InputStream totalConfig, InputStream localConfig, String res)
ConfigVariable[]
getGlobalVariables()
returns the list of global variables
String[]
getServerSetTypes()
return the list of all set types defined in template
ConfigVariable[]
getServerSetVariables(String typeName)
return the list of variables for a type
void
merge(OutputStream totalConfig, OutputStream localConfig, Properties p, InputStream previousConfig, String instanceName)
Generate news a3servers configurations depending of new template, new properties and existing configuration.
void
setIndent(int indent)
set nb of chars for indentation

Field Details

A3_DTD

public static final String A3_DTD


CONFIG_TAG

public static final String CONFIG_TAG


DOMAIN_TAG

public static final String DOMAIN_TAG


ID

public static final String ID


INFO

public static final String INFO


NAME

public static final String NAME


NETWORK_TAG

public static final String NETWORK_TAG


PORT

public static final String PORT


PROPERTY_TAG

public static final String PROPERTY_TAG


SERVER

public static final String SERVER


SERVER_TAG

public static final String SERVER_TAG


SET_TAG

public static final String SET_TAG


TRANSIENT_TAG

public static final String TRANSIENT_TAG


TYPE

public static final String TYPE


VALUE

public static final String VALUE


VAR_MARK

public static final String VAR_MARK


VAR_TAG

public static final String VAR_TAG

Constructor Details

AgentServerConfigGenerator

public AgentServerConfigGenerator(InputStream template)
            throws SAXException,
                   IOException


AgentServerConfigGenerator

public AgentServerConfigGenerator(String templateFile)
            throws SAXException,
                   IOException
constructor

Method Details

deleteApplicationConfig

public static void deleteApplicationConfig(InputStream totalConfig,
                                           InputStream localConfig,
                                           String res)
            throws Exception


getGlobalVariables

public ConfigVariable[] getGlobalVariables()
            throws A3configException
returns the list of global variables


getServerSetTypes

public String[] getServerSetTypes()
return the list of all set types defined in template


getServerSetVariables

public ConfigVariable[] getServerSetVariables(String typeName)
            throws A3configException
return the list of variables for a type


merge

public void merge(OutputStream totalConfig,
                  OutputStream localConfig,
                  Properties p,
                  InputStream previousConfig,
                  String instanceName)
            throws IOException,
                   A3configException,
                   SAXException
Generate news a3servers configurations depending of new template, new properties and existing configuration.

Parameters:
totalConfig - The whole configuration including all applications, only known by admin server s0
localConfig - The application specific configuration, seen by application servers
p - The properties to instantiate new configuration
previousConfig - The name of the previous configuration file (a3servers.xml)


setIndent

public void setIndent(int indent)
set nb of chars for indentation


Copyright B) 2004 Scalagent - All rights reserved