Package cartago.infrastructure

Examples of cartago.infrastructure.CartagoInfrastructureLayerException


      ICartagoNodeRemote env = (ICartagoNodeRemote) client.getGlobal(ICartagoNodeRemote.class);
      return env.execInterArtifactOp(srv, callbackId, userId, srcId, targetId, op, timeout, test);
     
    } catch (LipeRMIException e) {
      e.printStackTrace();
      throw new CartagoInfrastructureLayerException();
    } catch (IOException e) {
      e.printStackTrace();
      throw new CartagoInfrastructureLayerException();
    }
  }
View Full Code Here


      NodeId nodeId = env.getNodeId();
      client.close();
      return nodeId;   
    } catch (IOException ex) {
      ex.printStackTrace();
      throw new CartagoInfrastructureLayerException();
    }
  }
View Full Code Here

      ICartagoContext ctx = new  AgentBodyProxy(rctx, client);
      mRemoteCtxs.add((AgentBodyProxy)ctx);
      return ctx;
    } catch (IOException ex) {
      //ex.printStackTrace();
      throw new CartagoInfrastructureLayerException();
    } catch (LipeRMIException e) {
      //e.printStackTrace();
      throw new CartagoInfrastructureLayerException();
    }
  }
View Full Code Here

  @Override
  public void startService(CartagoNode node, String address)
      throws CartagoInfrastructureLayerException {
   
    if (mService != null){
      throw new CartagoInfrastructureLayerException();
    }
    try {
      int port = DEFAULT_PORT;
      mService = new CartagoNodeRemote(node);
      if (address!=null && !address.equals("")) {
        port = Integer.parseInt(address);
      }
     
      mService.install(port);
    } catch (Exception ex){
      ex.printStackTrace();
      throw new CartagoInfrastructureLayerException();
    }
  }
View Full Code Here

TOP

Related Classes of cartago.infrastructure.CartagoInfrastructureLayerException

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.