public abstract class StatePublisherTask
extends java.util.TimerTask
Constructor and Description |
---|
StatePublisherTask() |
Modifier and Type | Method and Description |
---|---|
abstract int |
getInterval() |
abstract void |
notifyArchiveAvailable(boolean archiveAvailable)
Wird aufgerufen, wenn sich der Zustand des Archivsystems ändert
|
abstract void |
notifyProtocolRead(long protocolId)
Wird aufgerufen, wenn ein Protokoll den Status von gelesen nach ungelesen ändert
|
abstract void |
notifyProtocolRemoved(long protocolId)
Wird aufgerufen, nachdem ein Protokoll gelöscht wird
|
abstract void |
notifyThreadFinished(ThreadElement threadElement)
Wird aufgerufen, wenn sich ein Auftrag beendet hat
|
void |
run() |
void |
setDataSource(StatePublisher statePublisher) |
protected abstract void |
update(StatePublisher.Status status)
Wird periodisch (siehe
getInterval() ) aufgerufen, um über den aktuellen Status zu informieren |
public abstract int getInterval()
public final void setDataSource(StatePublisher statePublisher)
public void run()
run
in interface java.lang.Runnable
run
in class java.util.TimerTask
protected abstract void update(StatePublisher.Status status)
getInterval()
) aufgerufen, um über den aktuellen Status zu informierenstatus
- aktueller Statuspublic abstract void notifyThreadFinished(ThreadElement threadElement)
threadElement
- Auftragpublic abstract void notifyProtocolRemoved(long protocolId)
protocolId
- Protokoll-Idpublic abstract void notifyProtocolRead(long protocolId)
protocolId
- Protokoll-Idpublic abstract void notifyArchiveAvailable(boolean archiveAvailable)
archiveAvailable
- Ob das Archivsystem verfügbar ist, oder nicht