Examples of OpsuiApp


Examples of org.apache.oodt.pcs.opsui.OpsuiApp

   * @throws InstantiationException
   */
  public StatusPage(PageParameters parameters) throws InstantiationException {
    super(parameters);

    OpsuiApp app = (OpsuiApp) getApplication();
    String fmUrlStr = app.getFmUrlStr();
    String wmUrlStr = app.getWmUrlStr();
    String rmUrlStr = app.getRmUrlStr();
    String crawlerConfFilePath = app.getCrawlerConfFilePath();
    String statesFilePath = app.getStatesFilePath();
    add(new HealthMonitor("health_monitor", fmUrlStr, wmUrlStr, rmUrlStr,
        crawlerConfFilePath, statesFilePath, ProductBrowserPage.class,
        WorkflowInstanceViewerPage.class));
  }
View Full Code Here

Examples of org.apache.oodt.pcs.opsui.OpsuiApp

  public TraceableProductBrowser(String componentId, final String fmUrlStr,
      final String productId, final boolean enableNotCat, final List<String> excludes) {
    super(componentId, fmUrlStr, productId);
    final FileManagerConn fm = new FileManagerConn(fmUrlStr);
    final Product product = fm.safeGetProductById(productId);
    final OpsuiApp app = (OpsuiApp)getApplication();

    Form traceForm = new Form("trace_form");
    traceForm.add(new Button("trace_button") {
      /*
       * (non-Javadoc)
       *
       * @see org.apache.wicket.markup.html.form.Button#onSubmit()
       */
      @Override
      public void onSubmit() {
        Trace tracer = new Trace("pedigree", fmUrlStr, enableNotCat, excludes,
            product);
        tracer.setVisible(true);
        getParent().getParent().replace(tracer);
        setVisible(false);
      }

    });
    add(traceForm);
    add(new WebMarkupContainer("pedigree").setVisible(false));

    List<Reference> refs = fm.getProductReferences(product);
    if (refs != null && refs.size() > 0) {
      replace(new Label("no_prod_ref_display") {
        /*
         * (non-Javadoc)
         *
         * @see org.apache.wicket.Component#isVisible()
         */
        @Override
        public boolean isVisible() {
          return false;
        }
      });

      replace(new ListView<Reference>("ref_list", new ListModel<Reference>(refs)) {
        /*
         * (non-Javadoc)
         *
         * @see
         * org.apache.wicket.markup.html.list.ListView#populateItem(org.apache
         * .wicket.markup.html.list.ListItem)
         */
        @Override
        protected void populateItem(ListItem<Reference> refItem) {
          Reference r = refItem.getModelObject();
          String filePath = null;
          try {
            filePath = new File(new URI(r.getDataStoreReference()))
                .getAbsolutePath();
          } catch (Exception ignore) {
          }
         
          ExternalLink refLink = new ExternalLink("ref_file_path_link",
              "/" + app.getRootContext() + "/data?productID="+productId);
          refLink.add(new Label("ref_file_path", filePath));
          refItem.add(refLink);
          refItem.add(new Label("ref_file_size",
              String.valueOf(r.getFileSize())));
          try {
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.