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