Exemple #1
0
  /*
   * (non-Javadoc)
   *
   * @see com.fd.util.resourcemonitor.server.Server#start()
   */
  public boolean start() {
    String fileName = (String) properties.get(Constant.FILE_NAME);
    File file = new File(fileName);
    OutputStream out;
    try {
      out = new FileOutputStream(file);
      runner = new CLIRunner(out);
      runner.startRunner();
      return true;
    } catch (FileNotFoundException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }

    return false;
  }