home *** CD-ROM | disk | FTP | other *** search
/ S283 Planetary Science &… the Search for Life CD 3 / 0_CD-ROM.iso / install / jre1_3 / lib / rt.jar / sun / rmi / server / Activation$GroupEntry$RestartThread.class (.txt) < prev    next >
Encoding:
Java Class File  |  1979-12-31  |  1.2 KB  |  57 lines

  1. package sun.rmi.server;
  2.  
  3. import sun.rmi.server.Activation.GroupEntry;
  4.  
  5. class Activation$GroupEntry$RestartThread implements Runnable {
  6.    Process groupProcess;
  7.    long groupIncarnation;
  8.    boolean canInterrupt;
  9.    boolean shouldQuit;
  10.    Thread thread;
  11.    // $FF: synthetic field
  12.    private final Activation.GroupEntry this$1;
  13.  
  14.    Activation$GroupEntry$RestartThread(Activation.GroupEntry var1, Process var2, long var3) {
  15.       this.this$1 = var1;
  16.       this.canInterrupt = true;
  17.       this.shouldQuit = false;
  18.       this.groupProcess = var2;
  19.       this.groupIncarnation = var3;
  20.    }
  21.  
  22.    void setThread(Thread var1) {
  23.       this.thread = var1;
  24.    }
  25.  
  26.    public void run() {
  27.       if (!this.shouldQuit) {
  28.          try {
  29.             this.groupProcess.waitFor();
  30.             if (this.shouldQuit) {
  31.                return;
  32.             }
  33.  
  34.             this.canInterrupt = false;
  35.             Activation.GroupEntry var1 = this.this$1;
  36.             synchronized(var1) {
  37.                if (this.groupIncarnation == this.this$1.incarnation) {
  38.                   GroupEntry.access$1800(this.this$1);
  39.                }
  40.             }
  41.          } catch (InterruptedException var4) {
  42.             return;
  43.          }
  44.  
  45.          this.this$1.restartServices();
  46.       }
  47.    }
  48.  
  49.    void dispose() {
  50.       this.shouldQuit = true;
  51.       if (this.canInterrupt) {
  52.          this.thread.interrupt();
  53.       }
  54.  
  55.    }
  56. }
  57.