Package jade.core

Examples of jade.core.Node


      GenericCommand cmd = new GenericCommand(H_SNIFFON, NotificationSlice.NAME, null);
      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


      GenericCommand cmd = new GenericCommand(H_SNIFFOFF, NotificationSlice.NAME, null);
      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

      GenericCommand cmd = new GenericCommand(H_DEBUGON, NotificationSlice.NAME, null);
      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

      GenericCommand cmd = new GenericCommand(H_DEBUGOFF, NotificationSlice.NAME, null);
      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

    try {
      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

    try {
      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

          command.reset(Command.OK);
          break;
      }
   
      case PlatformManagerStub.ADOPT: {
        Node node = (Node)command.getParamAt(0);
        Node[] children = (Node[]) command.getParamAt(1);
   
          // Execute command...
          impl.adopt(node, children);
   
View Full Code Here

    try {
      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

        // Just do nothing
      }
     
      public void reattach() throws ServiceException {
        try {
          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

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.