Package jade.core

Examples of jade.core.Node


    sb.append("- Label = "+myLabel+"\n");
    sb.append("- Monitored Label = ").append(localSlice.monitoredLabel).append("\n");
    sb.append("- Monitored PlatformManager replica = ").append(localSlice.monitoredSvcMgr).append("\n");
    String monitoredNodeStr = "UNKNOWN(Monitor null)";
    if (localSlice.nodeMonitor != null) {
      Node n = localSlice.nodeMonitor.getNode();
      monitoredNodeStr = (n != null ? n.getName() : "null");
    }
    sb.append("- Monitored Node = ").append(monitoredNodeStr).append("\n");
    sb.append(super.dump(key));
    return (sb.toString());
  }
View Full Code Here


          myLogger.log(Logger.CONFIG, "Agent " + name.getName() + " inserted into GADT");

      } catch (NameClashException nce) {
        try {
          ContainerID oldCid = myMain.getContainerID(name);
          Node n = myMain.getContainerNode(oldCid).getNode();

          // Perform a non-blocking ping to check...
          n.ping(false);

          // Ping succeeded: rethrow the NameClashException
          throw nce;
        } catch (NameClashException nce2) {
          throw nce2; // Let this one through...
View Full Code Here

    public int getLabel() throws IMTPException {
  try {
      GenericCommand cmd = new GenericCommand(H_GETLABEL, NAME, null);

      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 String getPlatformManagerAddress() throws IMTPException {
  try {
      GenericCommand cmd = new GenericCommand(H_GETPLATFORMMANAGERADDRESS, NAME, null);

      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(smAddr);
      cmd.addParam(new Integer(sliceIndex));
      cmd.addParam(dsc);
      cmd.addParam(services);

      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_REMOVEREPLICA, NAME, null);
      cmd.addParam(smAddr);
      cmd.addParam(new Integer(sliceIndex));

      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_FILLGADT, NAME, null);
      cmd.addParam(agents);
      cmd.addParam(containers);

      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 void suspendedAgent(AID name) throws IMTPException, NotFoundException {
  try {
      GenericCommand cmd = new GenericCommand(H_SUSPENDEDAGENT, 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 newTool(AID tool) throws IMTPException {
  try {
      GenericCommand cmd = new GenericCommand(H_NEWTOOL, NAME, null);
      cmd.addParam(tool);

      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 void boot(Profile p) throws ServiceException {
    try {
      // Get the Service Manager address list, if this node isn't hosting one itself...
      Node n = getLocalNode();
      if(!n.hasPlatformManager()) {
        Object[] slices = getAllSlices();
        for(int i = 0; i < slices.length; i++) {
          AddressNotificationSlice slice = (AddressNotificationSlice)slices[i];
          if (slice.getNode().hasPlatformManager()) {
            addAddress(slice.getServiceManagerAddress());
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.