if (a3config == null) return;
// add global properties
if (a3config.properties != null) {
for (Enumeration e = a3config.properties.elements(); e.hasMoreElements();) {
A3CMLProperty p = (A3CMLProperty) e.nextElement();
Configuration.putProperty(p.name, p.value);
if (logmon.isLoggable(BasicLevel.DEBUG))
logmon.log(BasicLevel.DEBUG,
getName() + " : Adds global property: " + p.name + " = " + p.value);
}
}
A3CMLServer server = null;
if (cid != NULL_ID) {
A3CMLCluster cluster = null;
cluster = a3config.getCluster(sid);
// add cluster properties
if (cluster != null
&& cluster.properties != null
&& cluster.properties.size() > 0) {
Enumeration e = cluster.properties.elements();
do {
A3CMLProperty p = (A3CMLProperty) e.nextElement();
Configuration.putProperty(p.name, p.value);
if (logmon.isLoggable(BasicLevel.DEBUG))
logmon.log(BasicLevel.DEBUG,
getName() + " : Adds cluster property: " +
p.name + " = " + p.value);
} while (e.hasMoreElements());
}
if (cluster != null)
server = cluster.getServer(cid);
} else {
server = a3config.getServer(sid);
}
// add server properties
if (server != null && server.properties != null) {
Enumeration e = server.properties.elements();
do {
A3CMLProperty p = (A3CMLProperty) e.nextElement();
Configuration.putProperty(p.name, p.value);
if (logmon.isLoggable(BasicLevel.DEBUG))
logmon.log(BasicLevel.DEBUG,
getName() + " : Adds server property: " +