Package org.eclipse.ecf.provider.generic

Examples of org.eclipse.ecf.provider.generic.TCPServerSOContainer


    destroyServers();
  }

  protected synchronized void destroyServers() {
    for (final Iterator i = servers.iterator(); i.hasNext();) {
      final TCPServerSOContainer s = (TCPServerSOContainer) i.next();
      if (s != null) {
        try {
          s.dispose();
        } catch (final Exception e) {
          ClientPlugin.log("Exception destroying server " + s.getConfig().getID()); //$NON-NLS-1$
        }
      }
    }
    servers.clear();
    if (serverGroups != null) {
View Full Code Here


        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);
          ClientPlugin.log("ECF group server created: " + cont.getConfig().getID().getName()); //$NON-NLS-1$
        }
        serverGroups[j].putOnTheAir();
        j++;
      }
    }
View Full Code Here

  }

  protected TCPServerSOContainer createServerContainer(String id, TCPServerSOContainerGroup group, String path, int keepAlive) throws IDCreateException {
    final ID newServerID = IDFactory.getDefault().createStringID(id);
    final SOContainerConfig config = new SOContainerConfig(newServerID);
    return new TCPServerSOContainer(config, group, path, keepAlive);
  }
View Full Code Here

TOP

Related Classes of org.eclipse.ecf.provider.generic.TCPServerSOContainer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.