Package jade.core

Examples of jade.core.GenericCommand.addParam()


   */
  public void deactivateUDP(String label, long key) throws IMTPException {
    try {
      GenericCommand cmd = new GenericCommand(H_DEACTIVATEUDP, UDPNodeMonitoringService.NAME, null);
      cmd.addParam(label);
      cmd.addParam(new Long(key));
 
      Node n = getNode();
      Object result = n.accept(cmd);
      if ((result != null) && (result instanceof Throwable)) {
        if (result instanceof IMTPException) {
View Full Code Here


  }
 
  void handleOrphanNode(String nodeID) {
    try {
      GenericCommand cmd = new GenericCommand(ORPHAN_NODE, NAME, null);
      cmd.addParam(nodeID);
      submit(cmd);
    }
    catch (Exception e) {
      // Should never happen
      e.printStackTrace();
View Full Code Here

 
 
  public void dispatchLocally(AID senderID, GenericMessage msg, AID receiverID) throws IMTPException, NotFoundException, JADESecurityException {
    try {
      GenericCommand cmd = new GenericCommand(H_DISPATCHLOCALLY, NAME, null);
      cmd.addParam(senderID);
      cmd.addParam(msg);
      cmd.addParam(receiverID);
      long timeStamp = msg.getTimeStamp();
      if (timeStamp > 0) {
        cmd.addParam(new Long(timeStamp));
View Full Code Here

 
  public void dispatchLocally(AID senderID, GenericMessage msg, AID receiverID) throws IMTPException, NotFoundException, JADESecurityException {
    try {
      GenericCommand cmd = new GenericCommand(H_DISPATCHLOCALLY, NAME, null);
      cmd.addParam(senderID);
      cmd.addParam(msg);
      cmd.addParam(receiverID);
      long timeStamp = msg.getTimeStamp();
      if (timeStamp > 0) {
        cmd.addParam(new Long(timeStamp));
      }     
View Full Code Here

  public void dispatchLocally(AID senderID, GenericMessage msg, AID receiverID) throws IMTPException, NotFoundException, JADESecurityException {
    try {
      GenericCommand cmd = new GenericCommand(H_DISPATCHLOCALLY, NAME, null);
      cmd.addParam(senderID);
      cmd.addParam(msg);
      cmd.addParam(receiverID);
      long timeStamp = msg.getTimeStamp();
      if (timeStamp > 0) {
        cmd.addParam(new Long(timeStamp));
      }     
      cmd.setPrincipal(msg.getSenderPrincipal());
View Full Code Here

      cmd.addParam(senderID);
      cmd.addParam(msg);
      cmd.addParam(receiverID);
      long timeStamp = msg.getTimeStamp();
      if (timeStamp > 0) {
        cmd.addParam(new Long(timeStamp));
      }     
      cmd.setPrincipal(msg.getSenderPrincipal());
      cmd.setCredentials(msg.getSenderCredentials());
     
      Node n = getNode();
View Full Code Here

  }
 
  public void routeOut(Envelope env, byte[] payload,AID receiverID, String address) throws IMTPException, MTPException {
    try {
      GenericCommand cmd = new GenericCommand(H_ROUTEOUT, NAME, null);
      cmd.addParam(env);
      cmd.addParam(payload);
      cmd.addParam(receiverID);
      cmd.addParam(address);
     
     
View Full Code Here

 
  public void routeOut(Envelope env, byte[] payload,AID receiverID, String address) throws IMTPException, MTPException {
    try {
      GenericCommand cmd = new GenericCommand(H_ROUTEOUT, NAME, null);
      cmd.addParam(env);
      cmd.addParam(payload);
      cmd.addParam(receiverID);
      cmd.addParam(address);
     
     
      Node n = getNode();
View Full Code Here

  public void routeOut(Envelope env, byte[] payload,AID receiverID, String address) throws IMTPException, MTPException {
    try {
      GenericCommand cmd = new GenericCommand(H_ROUTEOUT, NAME, null);
      cmd.addParam(env);
      cmd.addParam(payload);
      cmd.addParam(receiverID);
      cmd.addParam(address);
     
     
      Node n = getNode();
      Object result = n.accept(cmd);
View Full Code Here

    try {
      GenericCommand cmd = new GenericCommand(H_ROUTEOUT, NAME, null);
      cmd.addParam(env);
      cmd.addParam(payload);
      cmd.addParam(receiverID);
      cmd.addParam(address);
     
     
      Node n = getNode();
      Object result = n.accept(cmd);
      if((result != null) && (result instanceof Throwable)) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.