Package cartago

Examples of cartago.ICartagoContext


        port = port1;
      }
      Client client = new Client(address, port, callHandler);
      ICartagoNodeRemote env = (ICartagoNodeRemote) client.getGlobal(ICartagoNodeRemote.class);
      IAgentBodyRemote rctx = env.join(wspName, cred, srv);
      ICartagoContext ctx = new  AgentBodyProxy(rctx, client);
      mRemoteCtxs.add((AgentBodyProxy)ctx);
      return ctx;
    } catch (IOException ex) {
      //ex.printStackTrace();
      throw new CartagoInfrastructureLayerException();
View Full Code Here


  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

TOP

Related Classes of cartago.ICartagoContext

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.