Package cartago

Examples of cartago.CartagoWorkspace


      AgentId userId, ArtifactId srcId, ArtifactId targetId, Op op,
      long timeout, IAlignmentTest test) throws CartagoException {
   
    ICartagoCallback proxy = new CartagoCallbackProxy(callback);
    String wspName = targetId.getWorkspaceId().getName();
    CartagoWorkspace wsp = mNode.getWorkspace(wspName);
    return wsp.execInterArtifactOp(proxy, callbackId, userId, srcId, targetId, op, timeout, test);
  }
View Full Code Here


  @Override
  public IAgentBodyRemote join(String wspName, AgentCredential cred,
      ICartagoCallbackRemote callback) throws CartagoException {
   
    CartagoWorkspace wsp = mNode.getWorkspace(wspName);
    ICartagoCallback proxy = new CartagoCallbackProxy(callback);
    ICartagoContext ctx = wsp.join(cred,proxy);
    try {
      IAgentBodyRemote rctx = new AgentBodyRemote((AgentBody)ctx, mCallHandler);
      mRemoteCtxs.add((AgentBodyRemote) rctx);
      return rctx;
    } catch (LipeRMIException e) {
View Full Code Here

  }

  @Override
  public void quit(String wspName, AgentId id) throws CartagoException {
   
    CartagoWorkspace wsp = mNode.getWorkspace(wspName);
    wsp.getKernel().quitAgent(id);
    Iterator<AgentBodyRemote> it = mRemoteCtxs.iterator();
    while (it.hasNext()){
      AgentBodyRemote c = it.next();
      if (c.getAgentId().equals(id)){
        it.remove();
View Full Code Here

TOP

Related Classes of cartago.CartagoWorkspace

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.