Package jade.core

Examples of jade.core.ServiceException


    public Node getNode() throws ServiceException {
      try {
        return MessagingService.this.getLocalNode();
      }
      catch(IMTPException imtpe) {
        throw new ServiceException("Problem in contacting the IMTP Manager", imtpe);
      }
    }
View Full Code Here


    public Node getNode() throws ServiceException {
      try {
        return SAMService.this.getLocalNode();
      }
      catch(IMTPException imtpe) {
        throw new ServiceException("Problem contacting the IMTP Manager", imtpe);
      }
    }
View Full Code Here

              aliasListeners.add(l);
            }
          }
        }
        else {
          throw new ServiceException("Cannot register AliasListener on a non-Main container");
        }
      }
     
      public void deregisterAliasListener(AliasListener l) throws ServiceException {
        if (myContainer.getMain() != null) {
          synchronized (aliasListeners) {
            aliasListeners.remove(l);
          }
        }
        else {
          throw new ServiceException("Cannot register AliasListener on a non-Main container");
        }
      }
    };
  }
View Full Code Here

        }
      }
      catch (Exception e) {
        String msg = "Error recovering from previous fault. ";
        myLogger.log(Logger.SEVERE, msg, e);
        throw new ServiceException(msg, e);
      }
    }
    bootComplete = true;
  }
View Full Code Here

     
      public Node getNode() throws ServiceException {
        try {
          return FaultRecoveryService.this.getLocalNode();
        } catch (IMTPException imtpe) {
          throw new ServiceException("Problem in contacting the IMTP Manager", imtpe);
        }
      }
     
      public VerticalCommand serve(HorizontalCommand cmd) {
        try {
View Full Code Here

          Node n = myContainer.getNodeDescriptor().getNode();
          String pmAddress = myContainer.getServiceManager().getLocalAddress();
          n.platformManagerDead(pmAddress, pmAddress);
        }
        catch (IMTPException imtpe) {
          throw new ServiceException("Communication error: "+imtpe.getMessage(), imtpe);
        }
      }
    };
  }
View Full Code Here

      myLogger.log(Logger.INFO, "UDP Monitor Client for "+label+" successfully started. Host = " + host + " port = " + port + " pingdelay = " + pingDelay);
    }
    catch (Exception e) {
      // Rollback
      myClients.remove(label);
      throw new ServiceException("Error starting UDP Monitor client.", e);
    }
  }
View Full Code Here

    public Node getNode() throws ServiceException {
      try {
        return UDPNodeMonitoringService.this.getLocalNode();
      }
      catch (IMTPException imtpe) {
        throw new ServiceException("Problem in contacting the local IMTP Manager", imtpe);
      }
    }
View Full Code Here

      // 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));
      }
    }
    if (r.getParamCnt() > 0) {
      return r.getParamAt(0);
    }
View Full Code Here

      public void register(AID topic) throws ServiceException {
        try {
          invoke(myAgent.getLocalName(), "register", new Object[]{topic});
        }
        catch (NotFoundException nfe) {
          throw new ServiceException("Registering agent "+myAgent.getLocalName()+" not found on the back-end");
        }
        catch (IMTPException imtpe) {
          throw new ServiceException("Communication error: "+imtpe.getMessage(), imtpe);
        }
      }
     
      public void deregister(AID topic) throws ServiceException {
        try {
          invoke(myAgent.getLocalName(), "deregister", new Object[]{topic});
        }
        catch (NotFoundException nfe) {
          throw new ServiceException("Deregistering agent "+myAgent.getLocalName()+" not found on the back-end");
        }
        catch (IMTPException imtpe) {
          throw new ServiceException("Communication error: "+imtpe.getMessage(), imtpe);
        }
      }
    };
    sh.init(a);
    return sh;
View Full Code Here

TOP

Related Classes of jade.core.ServiceException

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.