Package jade.core

Examples of jade.core.NotFoundException


          targetSlice.exitContainer();
        }
      }
      catch (NullPointerException npe) {
        // targetSlice not found --> The container does not exist
        throw new NotFoundException("Container "+cid.getName()+" not found");
      }
    }
View Full Code Here


    private void killAgent(AID agentID) throws IMTPException, NotFoundException {
     
      Agent a = myContainer.acquireLocalAgent(agentID);
     
      if(a == null)
        throw new NotFoundException("Kill-Agent failed to find " + agentID);
      a.doDelete();
     
      myContainer.releaseLocalAgent(agentID);
    }
View Full Code Here

   
    private void changeAgentState(AID agentID, int newState) throws IMTPException, NotFoundException {
      Agent a = myContainer.acquireLocalAgent(agentID);
     
      if(a == null)
        throw new NotFoundException("Change-Agent-State failed to find " + agentID);
     
      if(newState == Agent.AP_SUSPENDED) {
        a.doSuspend();
      }
      else if(newState == Agent.AP_WAITING) {
View Full Code Here

      if (myContainer.getAgentImage(agentID) != null) {
        String name = agentID.getLocalName();
        myContainer.killAgentOnFE(name);
      }
      else {
        throw new NotFoundException("KillAgent failed to find " + agentID);
      }
    }
View Full Code Here

    }

    private void changeAgentState(AID agentID, int newState) throws IMTPException, NotFoundException {
      BackEndContainer.AgentImage a = myContainer.getAgentImage(agentID);
      if(a == null)
        throw new NotFoundException("Change-Agent-State failed to find " + agentID);

      if(newState == Agent.AP_SUSPENDED) {
        myContainer.suspendAgentOnFE(agentID.getLocalName());
      }
      else if(newState == Agent.AP_ACTIVE) {
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.