Package org.apache.oodt.pcs.health

Examples of org.apache.oodt.pcs.health.PCSDaemonStatus


          CrawlerStatus stat1 = (CrawlerStatus) o1;
          CrawlerStatus stat2 = (CrawlerStatus) o2;

          return stat1.getStatus().compareTo(stat2.getStatus());
        } else if (o1 instanceof PCSDaemonStatus) {
          PCSDaemonStatus stat1 = (PCSDaemonStatus) o1;
          PCSDaemonStatus stat2 = (PCSDaemonStatus) o2;

          return stat1.getStatus().compareTo(stat2.getStatus());
        } else
          return 0;
      }

    });
View Full Code Here


          CrawlerStatus stat2 = (CrawlerStatus) o2;

          return stat1.getInfo().getCrawlerName()
              .compareTo(stat2.getInfo().getCrawlerName());
        } else if (o1 instanceof PCSDaemonStatus) {
          PCSDaemonStatus stat1 = (PCSDaemonStatus) o1;
          PCSDaemonStatus stat2 = (PCSDaemonStatus) o2;

          return stat1.getDaemonName().compareTo(stat2.getDaemonName());
        } else
          return 0;
      }

    });
View Full Code Here

      e.printStackTrace();
    }
  }

  private PCSDaemonStatus getFileManagerStatus() {
    PCSDaemonStatus fmStatus = new PCSDaemonStatus();

    fmStatus.setDaemonName(FILE_MANAGER_DAEMON_NAME);
    fmStatus.setStatus(printUp(getFmUp()));
    fmStatus.setUrlStr(this.fm.getFmUrl().toString());

    return fmStatus;
  }
View Full Code Here

    return fmStatus;
  }

  private PCSDaemonStatus getWorkflowManagerStatus() {
    PCSDaemonStatus wmStatus = new PCSDaemonStatus();

    wmStatus.setDaemonName(WORKFLOW_MANAGER_DAEMON_NAME);
    wmStatus.setStatus(printUp(getWmUp()));
    wmStatus.setUrlStr(this.wm.getWmUrl().toString());

    return wmStatus;
  }
View Full Code Here

    return wmStatus;
  }

  private PCSDaemonStatus getResourceManagerStatus() {
    PCSDaemonStatus rmStatus = new PCSDaemonStatus();

    rmStatus.setDaemonName(RESOURCE_MANAGER_DAEMON_NAME);
    rmStatus.setStatus(printUp(getRmUp()));
    rmStatus.setUrlStr(this.rm.getResmgrUrl().toString());

    return rmStatus;
  }
View Full Code Here

      List resNodes = rm.safeGetResourceNodes();

      if (resNodes != null && resNodes.size() > 0) {
        for (Iterator i = resNodes.iterator(); i.hasNext();) {
          ResourceNode node = (ResourceNode) i.next();
          PCSDaemonStatus batchStatus = new PCSDaemonStatus();
          batchStatus.setDaemonName(BATCH_STUB_DAEMON_NAME);
          batchStatus.setUrlStr(node.getIpAddr().toString());
          batchStatus.setStatus(printUp(getBatchStubUp(node)));
          batchStubStatus.add(batchStatus);
        }
      }
    }
View Full Code Here

  private void printBatchStubs(PCSHealthMonitorReport report) {
    if (report.getBatchStubStatus() != null
        && report.getBatchStubStatus().size() > 0) {
      for (Iterator i = report.getBatchStubStatus().iterator(); i.hasNext();) {
        PCSDaemonStatus batchStatus = (PCSDaemonStatus) i.next();
        System.out.println("> " + batchStatus.getDaemonName() + ": ["
            + batchStatus.getUrlStr() + "]: " + batchStatus.getStatus());
      }

    }
  }
View Full Code Here

TOP

Related Classes of org.apache.oodt.pcs.health.PCSDaemonStatus

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.