Package jade.core

Examples of jade.core.Node


    public void resumedAgent(AID name) throws IMTPException, NotFoundException {
  try {
      GenericCommand cmd = new GenericCommand(H_RESUMEDAGENT, AgentManagementSlice.NAME, null);
      cmd.addParam(name);

      Node n = getNode();
      Object result = n.accept(cmd);
      if((result != null) && (result instanceof Throwable)) {
    if(result instanceof IMTPException) {
        throw (IMTPException)result;
    }
    else if(result instanceof NotFoundException) {
View Full Code Here


    public void exitContainer() throws IMTPException, NotFoundException {
  try {
      GenericCommand cmd = new GenericCommand(H_EXITCONTAINER, AgentManagementSlice.NAME, null);

      Node n = getNode();
      Object result = n.accept(cmd);
      if((result != null) && (result instanceof Throwable)) {
    if(result instanceof IMTPException) {
        throw (IMTPException)result;
    }
    else if(result instanceof NotFoundException) {
View Full Code Here

        catch(NameClashException nce) {
          //#CUSTOMJ2SE_EXCLUDE_BEGIN
          try {
            ContainerID oldCid = impl.getContainerID(name);
            if (oldCid != null) {
              Node n = impl.getContainerNode(oldCid).getNode();
             
              // Perform a non-blocking ping to check...
              n.ping(false);
             
              // Ping succeeded: rethrow the NameClashException
              throw nce;
            }
            else {
View Full Code Here

TOP

Related Classes of jade.core.Node

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.