Package org.eclipse.ecf.provider.generic

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


    // Setup server group
    serverGroups[0] = new RssServerSOContainerGroup(port);
    // Create identity for server
    final ID id = IDFactory.getDefault().createStringID(serverName);
    // Create server config object with identity and default timeout
    final SOContainerConfig config = new SOContainerConfig(id);
    // Make server instance
    System.out.println("Creating ECF server container...");
    final RssServerSOContainer server = new RssServerSOContainer(config, serverGroups[0], DEFAULT_KEEPALIVE);
    // Setup join policy
    ((ISharedObjectContainerGroupManager) server).setConnectPolicy(new IConnectHandlerPolicy() {
View Full Code Here


  public RssClientSOContainer(String userhost, int keepAlive) throws IDCreateException {
    this(IDFactory.getDefault().createStringID(userhost), keepAlive);
  }

  public RssClientSOContainer(ID containerId, int keepAlive) throws IDCreateException {
    super(new SOContainerConfig(containerId));
    this.keepAlive = keepAlive;
    this.addListener(new ContainerListener());
  }
View Full Code Here

    return group;
  }

  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

  protected RegistrySharedObject getRegistrySharedObject() {
    return remoteServiceAdapter;
  }
 
  public ServletServerContainer(ID id) {
    super(new SOContainerConfig(id));
    remoteServiceAdapter = new RegistrySharedObject();
    try {
      getSharedObjectManager().addSharedObject(IDFactory.getDefault().createStringID(RegistrySharedObject.class.getName()), remoteServiceAdapter, null);
    } catch (SharedObjectAddException e) {
      throw new RuntimeException("Cannot add RegistrySharedObject",e);
View Full Code Here

      multiuserchat.invite(toUser.getName(), (body == null) ? "" : body); //$NON-NLS-1$
    }
  }

  public XMPPChatRoomContainer(ECFConnection conn, Namespace usernamespace) throws IDCreateException {
    this(new SOContainerConfig(IDFactory.getDefault().createGUID()), conn, usernamespace);
  }
View Full Code Here

  public XMPPContainer() throws Exception {
    this(DEFAULT_KEEPALIVE);
  }

  public XMPPContainer(int ka) throws Exception {
    this(new SOContainerConfig(IDFactory.getDefault().createGUID()), ka);
  }
View Full Code Here

  public XMPPContainer(int ka) throws Exception {
    this(new SOContainerConfig(IDFactory.getDefault().createGUID()), ka);
  }

  public XMPPContainer(String userhost, int ka) throws Exception {
    this(new SOContainerConfig(IDFactory.getDefault().createStringID(
        userhost)), ka);
  }
View Full Code Here

  }
 
  @Override
  protected IContainer createClientContainer(GenericContainerArgs gcargs)
      throws Exception {
    return new J8TCPClientSOContainer(new SOContainerConfig(gcargs.getID()), gcargs.getKeepAlive().intValue());
  }
View Full Code Here

  }
 
  @Override
  protected IContainer createServerContainer(GenericContainerArgs gcargs)
      throws Exception {
    return new J8TCPServerSOContainer(new SOContainerConfig(gcargs.getID()), gcargs.getBindAddress(), gcargs.getKeepAlive().intValue());
  }
View Full Code Here

  }
 
  @Override
  protected IContainer createClientContainer(GenericContainerArgs gcargs)
      throws Exception {
    return new J8TCPClientSOContainer(new SOContainerConfig(gcargs.getID()), gcargs.getKeepAlive().intValue());
  }
View Full Code Here

TOP

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

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.