Package jade.core

Examples of jade.core.NotFoundException


    c.addParam(name);
    Command r = executeRemotely(c, -1);
    if (r != null && r.getCode() == Command.ERROR) {
      // One of the expected exceptions occurred in the remote BackEnd
      // --> It must be a NotFoundException --> throw it
      throw new NotFoundException((String) r.getParamAt(2));
    }
  }
View Full Code Here


    c.addParam(name);
    Command r = executeRemotely(c, -1);
    if (r != null && r.getCode() == Command.ERROR) {
      // One of the expected exceptions occurred in the remote BackEnd
      // --> It must be a NotFoundException --> throw it
      throw new NotFoundException((String) r.getParamAt(2));
    }
  }
View Full Code Here

    c.addParam(sender);
    Command r = executeRemotely(c, -1);
    if (r != null && r.getCode() == Command.ERROR) {
      // One of the expected exceptions occurred in the remote BackEnd
      // --> It must be a NotFoundException --> throw it
      throw new NotFoundException((String) r.getParamAt(2));
    }
  }
View Full Code Here

    }
    Command r = executeRemotely(c, 0);
    if (r != null && r.getCode() == Command.ERROR) {
      // One of the expected exceptions occurred in the remote BackEnd --> throw it
      if (((String) r.getParamAt(1)).equals("jade.core.NotFoundException")) {
        throw new NotFoundException((String) r.getParamAt(2));
      }
      if (((String) r.getParamAt(1)).equals("jade.core.ServiceException")) {
        throw new ServiceException((String) r.getParamAt(2));
      }
    }
View Full Code Here

    Command r = executeRemotely(c, -1);
    if (r != null) {
      if (r.getCode() == Command.ERROR) {
        // One of the expected exceptions occurred in the remote FrontEnd
        // --> It must be a NotFoundException --> throw it
        throw new NotFoundException((String) r.getParamAt(2));
      }
    }
    else {
      throw new PostponedException();
    }
View Full Code Here

    Command r = executeRemotely(c, -1);
    if (r != null) {
      if (r.getCode() == Command.ERROR) {
        // One of the expected exceptions occurred in the remote FrontEnd
        // --> It must be a NotFoundException --> throw it
        throw new NotFoundException((String) r.getParamAt(2));
      }
    }
    else {
      throw new PostponedException();
   
View Full Code Here

    Command r = executeRemotely(c, -1);
    if (r != null) {
      if (r.getCode() == Command.ERROR) {
        // One of the expected exceptions occurred in the remote FrontEnd
        // --> It must be a NotFoundException --> throw it
        throw new NotFoundException((String) r.getParamAt(2));
      }
    }
    else {
      throw new PostponedException();
   
View Full Code Here

    // We don't even throw PostponedException here since that
    // is completely transparent to the rest of the platform.
    if (r != null && r.getCode() == Command.ERROR) {
      // One of the expected exceptions occurred in the remote FrontEnd
      // --> It must be a NotFoundException --> throw it
      throw new NotFoundException((String) r.getParamAt(2));
    }
  }
View Full Code Here

    ThreadedBehaviourWrapper wrapper = getWrapper(b);
    if (wrapper != null) {
      return wrapper.interrupt();
    }
    else {
      throw new NotFoundException(b.getBehaviourName());
    }
  }
View Full Code Here

            targetSlice = (AgentManagementSlice)getFreshSlice(cid.getName());
            targetSlice.createAgent(agentID, className, args, owner, initialCredentials, AgentManagementSlice.CREATE_AND_START, cmd);
          }
        }
        else {
          throw new NotFoundException("Container "+cid.getName()+" not found");
        }
      }
      else {
        // Do nothing for now, but could also route the command to the main slice, thus enabling e.g. AMS replication
      }
View Full Code Here

TOP

Related Classes of jade.core.NotFoundException

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.