Class DavPublisher

  • All Implemented Interfaces:
    java.lang.Runnable

    public class DavPublisher
    extends StatePublisherTask
    Veröffentlicht den Status der Protokolle über den Datenverteiler (derzeit nur Fertigmeldungen)
    • Constructor Summary

      Constructors 
      Constructor Description
      DavPublisher​(de.bsvrz.dav.daf.main.ClientDavInterface clientDavInterface)  
    • Method Summary

      Modifier and Type Method Description
      static void addClient​(de.bsvrz.dav.daf.main.ClientDavInterface dav, de.bsvrz.dav.daf.main.config.SystemObject object, int protocolVersion)
      Fügt einen neuen Client hinzu
      int getInterval()  
      void notifyArchiveAvailable​(boolean archiveAvailable)
      Wird aufgerufen, wenn sich der Zustand des Archivsystems ändert
      void notifyProtocolRead​(long protocolId)
      Wird aufgerufen, wenn ein Protokoll den Status von gelesen nach ungelesen ändert
      void notifyProtocolRemoved​(long protocolId)
      Wird aufgerufen, nachdem ein Protokoll gelöscht wird
      void notifyThreadFinished​(ThreadElement threadElement)
      Wird aufgerufen, wenn sich ein Auftrag beendet hat
      static void removeClient​(de.bsvrz.dav.daf.main.config.SystemObject object)  
      protected void update​(StatePublisher.Status status)
      Wird periodisch (siehe StatePublisherTask.getInterval()) aufgerufen, um über den aktuellen Status zu informieren
      • Methods inherited from class java.util.TimerTask

        cancel, scheduledExecutionTime
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DavPublisher

        public DavPublisher​(de.bsvrz.dav.daf.main.ClientDavInterface clientDavInterface)
    • Method Detail

      • addClient

        public static void addClient​(de.bsvrz.dav.daf.main.ClientDavInterface dav,
                                     de.bsvrz.dav.daf.main.config.SystemObject object,
                                     int protocolVersion)
        Fügt einen neuen Client hinzu
        Parameters:
        dav - DaV
        object - Empfänger-Objekt des Clients, an das Benachrichtigungen gesendet werden sollen
        protocolVersion - Protokollversion des Clients (bestimmt unter anderem ob erweiterte Benachrichtigungen an ihn gesendet werden, ab Version 2)
      • removeClient

        public static void removeClient​(de.bsvrz.dav.daf.main.config.SystemObject object)
      • notifyProtocolRemoved

        public void notifyProtocolRemoved​(long protocolId)
        Description copied from class: StatePublisherTask
        Wird aufgerufen, nachdem ein Protokoll gelöscht wird
        Specified by:
        notifyProtocolRemoved in class StatePublisherTask
        Parameters:
        protocolId - Protokoll-Id
      • notifyProtocolRead

        public void notifyProtocolRead​(long protocolId)
        Description copied from class: StatePublisherTask
        Wird aufgerufen, wenn ein Protokoll den Status von gelesen nach ungelesen ändert
        Specified by:
        notifyProtocolRead in class StatePublisherTask
        Parameters:
        protocolId - Protokoll-Id
      • notifyArchiveAvailable

        public void notifyArchiveAvailable​(boolean archiveAvailable)
        Description copied from class: StatePublisherTask
        Wird aufgerufen, wenn sich der Zustand des Archivsystems ändert
        Specified by:
        notifyArchiveAvailable in class StatePublisherTask
        Parameters:
        archiveAvailable - Ob das Archivsystem verfügbar ist, oder nicht