Beispiel #1
0
  protected void makeDebugActions() {
    DebugHandler debugHandler = DebugHandler.get("NetcdfSubsetServer");
    DebugHandler.Action act;

    act =
        new DebugHandler.Action("showRadar datasets", "Show Radar dataset") {
          public void doAction(DebugHandler.Event e) {
            e.pw.println("Radar  Datasets\n");
            for (int j = 0; j < datasets.size(); j++) {
              InvDatasetScan ds = (InvDatasetScan) datasets.get(j);
              e.pw.println(ds.getFullName() + " " + ds.getPath() + " " + ds.getScanLocation());
            }
          }
        };
    debugHandler.addAction(act);
  }
Beispiel #2
0
  ///////////////////////////////////////////////////////////////////////////////////////////////
  // debugging
  private void makeDebugActions() {
    DebugHandler debugHandler = DebugHandler.get("ncdodsServer");
    DebugHandler.Action act;

    act =
        new DebugHandler.Action("help", "Show help page") {
          public void doAction(DebugHandler.Event e) {
            try {
              doGetHELP(getRequestState(e.req, e.res));
            } catch (Exception ioe) {
              log.error("ShowHelp", ioe);
            }
          }
        };
    debugHandler.addAction(act);

    act =
        new DebugHandler.Action("version", "Show server version") {
          public void doAction(DebugHandler.Event e) {
            e.pw.println("  version= " + getServerVersion());
          }
        };
    debugHandler.addAction(act);
  }