Package org.eclipse.ecf.core.sharedobject

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


   */
  protected ReplicaSharedObjectDescription getReplicaDescription(ID receiver) {
    // Put primary state into properties and include in replica description
    final Map properties = new HashMap();
    properties.put(NAME_PROPERTY, name);
    return new ReplicaSharedObjectDescription(this.getClass(), getConfig().getSharedObjectID(), getConfig().getHomeContainerID(), properties);
  }
View Full Code Here


   */
  protected ReplicaSharedObjectDescription getReplicaDescription(ID receiver) {
    // Put primary state into properties and include in replica description
    final Map properties = new HashMap();
    properties.put(NAME_PROPERTY, name);
    return new ReplicaSharedObjectDescription(this.getClass(), getConfig().getSharedObjectID(), getConfig().getHomeContainerID(), properties);
  }
View Full Code Here

   */
  protected ReplicaSharedObjectDescription getReplicaDescription(ID receiver) {
    // Put primary state into properties and include in replica description
    final Map properties = new HashMap();
    properties.put(NAME_PROPERTY, name);
    return new ReplicaSharedObjectDescription(this.getClass(), getConfig().getSharedObjectID(), getConfig().getHomeContainerID(), properties);
  }
View Full Code Here

  }
  protected SharedObjectDescription createLocalAgentDescription(ID sharedObjectID, ID homeContainerID, Object data, String updaterID) {
    HashMap props = new HashMap(2);
    props.put(INITIAL_DATA_KEY, data);
    props.put(MODEL_UPDATER_KEY, updaterID);
    return new ReplicaSharedObjectDescription(LocalAgent.class, sharedObjectID, homeContainerID, props);
  }
View Full Code Here

      return null;
    return localGUI.getView();
  }

  public ID createObject(ID target, String classname, Map map) throws Exception {
    return createObject(target, new ReplicaSharedObjectDescription(Class.forName(classname), IDFactory.getDefault().createGUID(), config.getHomeContainerID(), map));
  }
View Full Code Here

  protected ReplicaSharedObjectDescription getReplicaDescription(
      ID remoteMember) {
    Object args[] = { receiver, url };
    HashMap map = new HashMap();
    map.put(ARGS_PROPERTY_NAME, args);
    return new ReplicaSharedObjectDescription(getClass(), getID(),
        getHomeContainerID(), map, getNextReplicateID());
  }
View Full Code Here

    // If we do have a specific receiver, only send create message to the
    // specific receiver
    // if we're replicating on activation
    else if (remoteMember == null) {
      try {
        ReplicaSharedObjectDescription createInfo = getReplicaDescription(receiver);
        if (createInfo != null)
          getContext().sendCreate(receiver, createInfo);
      } catch (IOException e) {
        log("Exception in replicateSelf", e); //$NON-NLS-1$
      }
View Full Code Here

  }
 
  protected ReplicaSharedObjectDescription createReplicaDescription() {
    Map props = new HashMap(1);
    props.put(SHARED_OBJECT_ID_KEY, sharedObjectID);
    return new ReplicaSharedObjectDescription(getClass(), config.getSharedObjectID(), config.getHomeContainerID(), props);
  }
View Full Code Here

  public ID getID() {
    return getConfig().getSharedObjectID();
  }

  protected ReplicaSharedObjectDescription getReplicaDescription(ID receiver) {
    return new ReplicaSharedObjectDescription(getClass(), getID(),
        getHomeContainerID(), getConfig().getProperties(),
        getNextReplicateID());
  }
View Full Code Here

      ID[] group = getContext().getGroupMemberIDs();
      if (group == null || group.length < 1) {
        // we're done
        return;
      }
      ReplicaSharedObjectDescription createInfo = getReplicaDescription(remote);
      if (createInfo != null)
        getContext().sendCreate(remote, createInfo);
      else
        return;
    } catch (IOException e) {
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.