|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.csc.phynixx.watchdog.WatchdogRegistry
public class WatchdogRegistry
ThreadGroup
Nested Class Summary | |
---|---|
static interface |
WatchdogRegistry.IWatchdogVisitor
|
Field Summary | |
---|---|
protected org.apache.log4j.Logger |
log
Logger |
static String |
OK
|
Method Summary | |
---|---|
void |
activate()
activates all Watchdogs |
void |
activate(Long id)
activates all Conditions of the Watchdog with the given id |
void |
clearOut()
|
IWatchdog |
createWatchdog(long checkInterval)
|
void |
deactivate()
restarts all Watchdogs |
void |
deactivate(Long id)
deactivates all Conditions of the Watchdog with the given id |
void |
deregisterWatchdog(IWatchdog wd)
|
void |
deregisterWatchdog(Long key)
|
int |
getCountWatchdogs()
|
WatchdogInfo[] |
getManagementWatchdogsInfo()
|
String |
getManagementWatchdogsState()
|
static WatchdogRegistry |
getTheRegistry()
|
WatchdogInfo[] |
getWatchdogInfos()
|
static long |
getWatchdogManagementInterval()
|
static long |
getWatchTheWatchdogInterval()
|
void |
registerWatchdog(org.csc.phynixx.watchdog.Watchdog wd)
Thread wird unter seinem Namen verwaltet (t.getName()) |
IWatchdog |
resolveWatchdogId(Long id)
|
void |
restart()
restarts all Watchdogs |
void |
restart(Long id)
restart the Watchdog with the given id |
static void |
setWatchdogManagementInterval(long watchdogManagementInterval)
|
String[][] |
showWatchdogInfos()
|
void |
shutdown()
killt alle Threads der Gruppe und wartet bis auch der letzte beendet ist. |
void |
shutdown(Long id)
stops the the Watchdog with the given id The executing thread of the watchdog is stopped and the watchdog is removed from the registry. |
void |
stop()
restarts all Watchdogs |
void |
stop(Long id)
stops the the Watchdog with the given id The executing thread of the watchdog is stopped, but the watchdog is not removed from the registry. |
void |
visitWatchdogRegistry(WatchdogRegistry.IWatchdogVisitor visitor)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String OK
protected org.apache.log4j.Logger log
Method Detail |
---|
public static long getWatchdogManagementInterval()
public static void setWatchdogManagementInterval(long watchdogManagementInterval)
public static long getWatchTheWatchdogInterval()
public WatchdogInfo[] getManagementWatchdogsInfo()
public String getManagementWatchdogsState()
public IWatchdog createWatchdog(long checkInterval)
public static WatchdogRegistry getTheRegistry()
public void registerWatchdog(org.csc.phynixx.watchdog.Watchdog wd)
wd
- Watchdog
IllegalStateException
- falls Thread NICHT zur aktuellen ThreadGroup( ==this) geh�rt;public void deregisterWatchdog(Long key)
public IWatchdog resolveWatchdogId(Long id)
public void deregisterWatchdog(IWatchdog wd)
public void clearOut()
public void restart()
public void stop()
public void activate()
public void deactivate()
public void shutdown()
public int getCountWatchdogs()
public WatchdogInfo[] getWatchdogInfos()
public String[][] showWatchdogInfos()
public void visitWatchdogRegistry(WatchdogRegistry.IWatchdogVisitor visitor)
public void stop(Long id)
IllegalStateException
- Watchdog does not exist,
check existence with findWatchdog(Long)
restart(Long)
,
shutdown(Long)
public void shutdown(Long id)
IllegalStateException
- Watchdog does not exist,
check existence with findWatchdog(Long)
restart(Long)
,
stop(Long)
public void restart(Long id)
IllegalStateException
- Watchdog does not exist,
check existence with findWatchdog(Long)
public void deactivate(Long id)
IllegalStateException
- Watchdog does not exist,
check existence with findWatchdog(Long)
public void activate(Long id)
IllegalStateException
- Watchdog does not exist,
check existence with findWatchdog(Long)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |