@Override public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof AeshProcess)) return false; AeshProcess that = (AeshProcess) o; return operation.getPid() == that.operation.getPid(); }
@Override public void run() { try { Thread.currentThread().setName("AeshProcess: " + operation.getPid()); myThread = Thread.currentThread(); setExitResult(consoleCallback.execute(operation)); } catch (InterruptedException e) { setExitResult(-1); // e.printStackTrace(); } finally { manager.processHaveFinished(this); } }
@Override public String toString() { return "AeshProcess{" + "pid=" + operation.getPid() + ", manager=" + manager + ", consoleCallback=" + consoleCallback + ", operation=" + operation + '}'; }
@Override public int getPID() { return operation.getPid(); }
@Override public int hashCode() { return operation.getPid(); }