com.sun.jini.phoenix
Class Activation.GroupEntry.Watchdog

java.lang.Object
  extended by java.lang.Thread
      extended by com.sun.jini.phoenix.Activation.GroupEntry.Watchdog
All Implemented Interfaces:
Runnable
Enclosing class:
Activation.GroupEntry

private class Activation.GroupEntry.Watchdog
extends Thread

Waits for process termination and then restarts services.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
private  boolean canInterrupt
           
private  long groupIncarnation
           
private  Process groupProcess
           
private  boolean shouldQuit
           
private  boolean shouldRestart
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
Activation.GroupEntry.Watchdog()
           
 
Method Summary
(package private)  void dispose()
          Marks this thread as one that is no longer needed.
(package private)  void noRestart()
          Marks this thread as no longer needing to restart objects.
 void run()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

groupProcess

private Process groupProcess

groupIncarnation

private long groupIncarnation

canInterrupt

private boolean canInterrupt

shouldQuit

private boolean shouldQuit

shouldRestart

private boolean shouldRestart
Constructor Detail

Activation.GroupEntry.Watchdog

Activation.GroupEntry.Watchdog()
Method Detail

run

public void run()
Specified by:
run in interface Runnable
Overrides:
run in class Thread

dispose

void dispose()
Marks this thread as one that is no longer needed. If the thread is in a state in which it can be interrupted, then the thread is interrupted.


noRestart

void noRestart()
Marks this thread as no longer needing to restart objects.



Copyright 2007-2010, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.