use of org.eclipse.ecf.server.generic.app.NamedGroup in project ecf by eclipse.
the class ServerStartup method createServers.
protected synchronized void createServers(InputStream ins) throws Exception {
final ServerConfigParser scp = new ServerConfigParser();
final List connectors = scp.load(ins);
if (connectors != null) {
serverGroups = new TCPServerSOContainerGroup[connectors.size()];
int j = 0;
for (final Iterator i = connectors.iterator(); i.hasNext(); ) {
final Connector connect = (Connector) i.next();
serverGroups[j] = createServerGroup(connect.getHostname(), connect.getPort());
final List groups = connect.getGroups();
for (final Iterator g = groups.iterator(); g.hasNext(); ) {
final NamedGroup group = (NamedGroup) g.next();
final TCPServerSOContainer cont = createServerContainer(group.getIDForGroup(), serverGroups[j], group.getName(), connect.getTimeout());
servers.add(cont);
// $NON-NLS-1$
ClientPlugin.log("ECF group server created: " + cont.getConfig().getID().getName());
}
serverGroups[j].putOnTheAir();
j++;
}
}
}
Aggregations