Package org.apache.oodt.pcs.health

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


       * org.apache.wicket.markup.html.list.ListView#populateItem(org.apache
       * .wicket.markup.html.list.ListItem)
       */
      @Override
      protected void populateItem(ListItem<CrawlerStatus> statusItem) {
        CrawlerStatus status = statusItem.getModelObject();
        String statusString = status.getInfo().getCrawlerName() + " ("
            + status.getCrawlHost() + ":" + status.getInfo().getCrawlerPort()
            + ")";
        statusItem.add(new Label("crawler_name_and_url", statusString));
        statusItem.add(new Image("crawler_status_icon",
            getUpOrDownArrowRef(status.getStatus())));
      }
    });

    ListModel batchStubStatusListModel = new ListModel(
        report.getBatchStubStatus());
View Full Code Here


  private static void sortByStatus(List statusList) {
    Collections.sort(statusList, new Comparator() {

      public int compare(Object o1, Object o2) {
        if (o1 instanceof CrawlerStatus) {
          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

  private static void sortByName(List statusList) {
    Collections.sort(statusList, new Comparator() {

      public int compare(Object o1, Object o2) {
        if (o1 instanceof CrawlerStatus) {
          CrawlerStatus stat1 = (CrawlerStatus) o1;
          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

      for (Iterator i = crawlers.iterator(); i.hasNext();) {
        CrawlInfo info = (CrawlInfo) i.next();
        String crawlerUrlStr = "http://" + crawlHost + ":"
            + info.getCrawlerPort();
        CrawlerStatus status = new CrawlerStatus();
        status.setInfo(info);
        status.setStatus(printUp(getCrawlerUp(crawlerUrlStr)));
        status.setCrawlHost(crawlHost);
        statuses.add(status);
      }
    }

    return statuses;
View Full Code Here

        && report.getCrawlerStatus().size() > 0) {
      List crawlers = this.crawlProps.getCrawlers();
      String biggestString = getBiggestString(crawlers);

      for (Iterator i = report.getCrawlerStatus().iterator(); i.hasNext();) {
        CrawlerStatus status = (CrawlerStatus) i.next();
        String crawlerUrlStr = "http://" + status.getCrawlHost() + ":"
            + status.getInfo().getCrawlerPort();
        System.out.println(getStrPadding(status.getInfo().getCrawlerName(),
            biggestString)
            + status.getInfo().getCrawlerName()
            + ": ["
            + crawlerUrlStr
            + "]: "
            + status.getStatus());
      }

    }

  }
View Full Code Here

TOP

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

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.