Package jade.core

Examples of jade.core.Node.accept()


      cmd.addParam(snifferName);
      cmd.addParam(targetName);


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


      cmd.addParam(snifferName);
      cmd.addParam(targetName);


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

      cmd.addParam(introspectorName);
      cmd.addParam(targetName);


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

      cmd.addParam(introspectorName);
      cmd.addParam(targetName);


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

  public SAMInfo getSAMInfo() throws IMTPException {
    try {
      GenericCommand cmd = new GenericCommand(H_GETSAMINFO, SAMHelper.SERVICE_NAME, null);
     
      Node n = getNode();
      Object result = n.accept(cmd);
      if (result instanceof IMTPException) {
        throw (IMTPException)result;
      }
      else if (result instanceof Throwable) {
        throw new IMTPException("An undeclared exception was thrown", (Throwable)result);
View Full Code Here

      GenericCommand cmd = new GenericCommand(H_REGISTER, TopicManagementService.NAME, null);
      cmd.addParam(aid);
      cmd.addParam(topic);
     
      Node n = getNode();
      Object result = n.accept(cmd);
      if((result != null) && (result instanceof Throwable)) {
        if(result instanceof IMTPException) {
          throw (IMTPException)result;
        }
        else {
View Full Code Here

      GenericCommand cmd = new GenericCommand(H_DEREGISTER, TopicManagementService.NAME, null);
      cmd.addParam(aid);
      cmd.addParam(topic);
     
      Node n = getNode();
      Object result = n.accept(cmd);
      if((result != null) && (result instanceof Throwable)) {
        if(result instanceof IMTPException) {
          throw (IMTPException)result;
        }
        else {
View Full Code Here

      GenericCommand cmd = new GenericCommand(H_GETRESOURCE, ResourceManagementService.NAME, null);
      cmd.addParam(name);
      cmd.addParam(fetchMode);
     
      Node n = getNode();
      Object result = n.accept(cmd);
      if((result != null) && (result instanceof Throwable)) {
        if(result instanceof Exception) {
          throw (Exception)result;
        }
        else {
View Full Code Here

  private void killNode(String name, byte[] nn) {
    Node node = null;
    try {
      node = nodeSerializer.deserialize(nn);
      HorizontalCommand cmd = new GenericCommand(H_KILLNODE, NAME, null);
      node.accept(cmd);
      myLogger.log(Logger.INFO, "Node "+name+" successfully killed.");
    }
    catch (IMTPException imtpe) {
      myLogger.log(Logger.INFO, "Node "+name+" unreachable (it has likely been killed in the meanwhile) or does not support fault recovery.");
    }
View Full Code Here

    cmd.addParam(new Integer(port));
    cmd.addParam(new Integer(pingDelay));
    cmd.addParam(new Long(key));

    Node n = getNode();
    Object result = n.accept(cmd);
    if ((result != null) && (result instanceof Throwable)) {
      if (result instanceof IMTPException) {
        throw (IMTPException) result;
      }
      else {
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.