Package cartago

Examples of cartago.CartagoException


    // ctx.focus(((AbstractAgentCallback)actx).getProxy(), id, tag);
    this.ctx = ctx;
    try {
      wspId = ctx.getWorkspaceId();
    } catch (RemoteException ex) {
      throw new CartagoException(ex.getMessage());
    }
  }
View Full Code Here


  public AgentId getAgentId() throws CartagoException {
    try {
      return ctx.getAgentId();
    } catch (RemoteException ex) {
      throw new CartagoException(ex.getMessage());
    }
  }
View Full Code Here

      long timeout) throws CartagoException {
    try {
      // return ctx.use(((AbstractAgentCallback)actx).getProxy(), id, op, test, timeout);     
      ctx.doAction(agentCallbackId, id, op, test, timeout);     
    } catch (RemoteException ex) {
      throw new CartagoException(ex.getMessage());
    }

  }
View Full Code Here

      long timeout) throws CartagoException {
    try {
      // return ctx.use(((AbstractAgentCallback)actx).getProxy(), id, op, test, timeout);     
      ctx.doAction(agentCallbackId, id, op, test, timeout);     
    } catch (RemoteException ex) {
      throw new CartagoException(ex.getMessage());
    }

  }
View Full Code Here

      long timeout) throws CartagoException {
    try {
      // return ctx.use(((AbstractAgentCallback)actx).getProxy(), id, op, test, timeout);     
      ctx.doAction(agentCallbackId, op, test, timeout);     
    } catch (RemoteException ex) {
      throw new CartagoException(ex.getMessage());
    }

  }
View Full Code Here

 
  public void ping() throws CartagoException {
    try {
      ctx.ping();
    } catch (RemoteException ex) {
      throw new CartagoException(ex.getMessage());
    }
  }
View Full Code Here

      throw new CartagoInfrastructureLayerException();
    }
  }
 
  public void registerLoggerToRemoteWsp(String wspName, String address, ICartagoLogger logger) throws CartagoException {
    throw new CartagoException("Feature not supported (TODO)");
  }
View Full Code Here

 
  public void close() throws CartagoException {
    try {
      mClient.close();
    } catch (IOException e) {
      throw new CartagoException();
    }
  }
View Full Code Here

      IAgentBodyRemote rctx = new AgentBodyRemote((AgentBody)ctx, mCallHandler);
      mRemoteCtxs.add((AgentBodyRemote) rctx);
      return rctx;
    } catch (LipeRMIException e) {
      e.printStackTrace();
      throw new CartagoException(e.getLocalizedMessage());
    }
  }
View Full Code Here

TOP

Related Classes of cartago.CartagoException

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.