public SessionServer(ServerSessionContainer container, Zone zone)
{
_container = container;
_zone = zone;
SessionContainerPreferences prefs = zone.getSessionContainerPreferences();
String allow = prefs.getPreference("allow", "").toString();
StringTokenizer tokenizer = new StringTokenizer(allow, " \t");
while(tokenizer.hasMoreTokens()) {
String hostname = tokenizer.nextToken();
try {
_allow.add(InetAddress.getByName(hostname));
} catch (UnknownHostException e) {
log().info("Unknown host '"+hostname+"' in 'allow' attribute");
}
}
_port = prefs.getIntPreference("port", 9000);
_pool.setMaxThreads(prefs.getIntPreference("maxthreads", 10));
_pool.setMaxTasks(prefs.getIntPreference("maxtasks", 30));
}