/** Stops the manager. */
  public void stop() {
    if (!_lifecycle.toStop()) return;

    log.finer(this + " stopping");

    if (_alarm != null) _alarm.dequeue();
  }
示例#2
0
  /** Closes the log, flushing the results. */
  @Override
  public void destroy() throws IOException {
    super.destroy();

    _isActive = false;

    Alarm alarm = _alarm;
    _alarm = null;

    if (alarm != null) alarm.dequeue();

    flush();

    _logWriter.close();
  }