Package org.eclipse.ecf.provider.generic.gmm

Examples of org.eclipse.ecf.provider.generic.gmm.Member


          synchronized (getGroupMembershipLock()) {
            // check to make sure this member id is not already
            // known
            if (groupManager.getMemberForID(changeIDs[i]) == null) {
              wasAdded = true;
              groupManager.addMember(new Member(changeIDs[i]));
            }
          }
          // Notify listeners only if the add was actually
          // accomplished
          if (wasAdded)
View Full Code Here


  };

  public SOContainer(ISharedObjectContainerConfig config) {
    Assert.isNotNull(config, "container config cannot be null"); //$NON-NLS-1$
    this.config = config;
    groupManager = new SOContainerGMM(this, new Member(config.getID()));
    sharedObjectManager = new SOManager(this);
    loadingThreadGroup = new ThreadGroup(getID() + ":loading"); //$NON-NLS-1$
    sharedObjectThreadGroup = new ThreadGroup(getID() + ":SOs"); //$NON-NLS-1$
  }
View Full Code Here

      this.policy = policy;
    }
  }

  protected boolean addNewRemoteMember(ID memberID, Object data) {
    return groupManager.addMember(new Member(memberID, data));
  }
View Full Code Here

    if (excluding == null) {
      queueContainerMessage(new ContainerMessage(from, null, getNextSequenceNumber(), data.getData()));
    } else {
      final Object ms[] = groupManager.getMembers();
      for (int i = 0; i < ms.length; i++) {
        final Member m = (Member) ms[i];
        final ID oldID = m.getID();
        if (!excluding.equals(oldID) && !from.equals(oldID)) {
          final IAsynchConnection conn = (IAsynchConnection) m.getData();
          if (conn != null) {
            try {
              conn.sendAsynch(oldID, serialize(new ContainerMessage(from, oldID, getNextSequenceNumber(), data.getData())));
            } catch (final IOException e) {
              traceStack("Exception in forwardExcluding from " //$NON-NLS-1$
View Full Code Here

  // Support methods
  protected ID getIDForConnection(IAsynchConnection conn) {
    final Object ms[] = groupManager.getMembers();
    for (int i = 0; i < ms.length; i++) {
      final Member m = (Member) ms[i];
      if (conn == (IAsynchConnection) m.getData())
        return m.getID();
    }
    return null;
  }
View Full Code Here

    }
    return null;
  }

  protected IAsynchConnection getConnectionForID(ID memberID) {
    final Member mem = groupManager.getMemberForID(memberID);
    if (mem == null || !(mem.getData() instanceof IAsynchConnection))
      return null;
    return (IAsynchConnection) mem.getData();
  }
View Full Code Here

      return null;
    return (IAsynchConnection) mem.getData();
  }

  protected ISynchConnection getSynchConnectionForID(ID memberID) {
    final Member mem = groupManager.getMemberForID(memberID);
    if (mem == null || !(mem.getData() instanceof ISynchConnection))
      return null;

    return (ISynchConnection) mem.getData();
  }
View Full Code Here

TOP

Related Classes of org.eclipse.ecf.provider.generic.gmm.Member

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.