Example #1
0
  @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();
  }
Example #2
0
 @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);
   }
 }
Example #3
0
 @Override
 public String toString() {
   return "AeshProcess{"
       + "pid="
       + operation.getPid()
       + ", manager="
       + manager
       + ", consoleCallback="
       + consoleCallback
       + ", operation="
       + operation
       + '}';
 }
Example #4
0
 @Override
 public int getPID() {
   return operation.getPid();
 }
Example #5
0
 @Override
 public int hashCode() {
   return operation.getPid();
 }