@Override public String toString() { final StringBuilder sb = new StringBuilder(getClass().getSimpleName()); sb.append(" Thread").append(" #").append(System.identityHashCode(this)); sb.append(" alive=").append(isRunning()); //this.thread == null ? false : this.thread.isAlive()); sb.append(" listener=").append(this.listener); return sb.toString(); }
@Override public String toString() { final StringBuilder sb = new StringBuilder(getClass().getSimpleName()); sb.append(" Thread").append(" #").append(System.identityHashCode(this)); sb.append(" alive=").append(isRunning()); //this.thread == null ? false : this.thread.isAlive()); sb.append(" listener=").append(this.inputListener); return sb.toString(); }
@Override protected void subTearDown1() throws Exception { if (this.process != null) { this.process.destroy(); this.process = null; } if (this.processOutReader != null && this.processOutReader.isRunning()) { this.processOutReader.stop(); } if (this.processErrReader != null && this.processErrReader.isRunning()) { this.processErrReader.stop(); } if (this.workingDirectory != null) { try { //delete(this.workingDirectory); } finally { this.workingDirectory = null; } } subTearDown2(); }
@Override protected final void subTearDown1() throws Exception { if (this.process != null) { this.process.destroy(); this.process = null; } if (this.processOutReader != null && this.processOutReader.isRunning()) { this.processOutReader.stop(); } if (this.processErrReader != null && this.processErrReader.isRunning()) { this.processErrReader.stop(); } if (this.workingDirectory != null) { try { //delete(this.workingDirectory); keep it around to help debug failures } finally { this.workingDirectory = null; } } subTearDown2(); }