Package org.eclipse.ecf.core.sharedobject

Examples of org.eclipse.ecf.core.sharedobject.ReplicaSharedObjectDescription


  protected ReplicaSharedObjectDescription getReplicaDescription(ID remoteID) {
    Object[] remoteArgs = { message, sender };
    HashMap map = new HashMap();
    map.put(ARGS_PROPERTY_NAME, remoteArgs);
    return new ReplicaSharedObjectDescription(getClass(), getID(),
        getConfig().getHomeContainerID(), map, getNextReplicateID());
  }
View Full Code Here


      e.printStackTrace();
    }
   
    props.put(MODEL_UPDATER_KEY, updaterID);
    props.put(REQUESTOR_ID, requestorID);
    return new ReplicaSharedObjectDescription(RemoteAgent.class, config.getSharedObjectID(), config.getHomeContainerID(), props);
  }
View Full Code Here

  }
 
  protected void connected(ID containerID) {
    if (isPrimary())
      try {
        config.getContext().sendCreate(containerID, new ReplicaSharedObjectDescription(getClass(), config.getSharedObjectID()));
      } catch (IOException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
      }
  }
View Full Code Here

  }
 
  protected void connected() {
    if (isPrimary()) {
      try {
        config.getContext().sendCreate(null, new ReplicaSharedObjectDescription(getClass(), config.getSharedObjectID()));
      } catch (IOException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
      }
    } else {
View Full Code Here

        getContext().getLocalContainerID())) {
      // we're the primary copy -- replicate everywhere
      try {
        getContext().sendCreate(
            null,
            new ReplicaSharedObjectDescription(getClass(),config.getSharedObjectID(),
                config.getHomeContainerID()));
      } catch (IOException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
      }
View Full Code Here

    Map props = new HashMap(1);
    props.put(ARG_TABLE, table.createMemento());
    try {
      getContext().sendCreate(
          containerID,
          new ReplicaSharedObjectDescription(getClass(),config.getSharedObjectID(),
              config.getHomeContainerID(), props));
    } catch (IOException ex) {
      // TODO Auto-generated catch block
      ex.printStackTrace();
    }
View Full Code Here

TOP

Related Classes of org.eclipse.ecf.core.sharedobject.ReplicaSharedObjectDescription

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.