Class ProtocolInputStream


  • public class ProtocolInputStream
    extends java.lang.Object
    Klasse zum Zugriff auf gespeicherte Protokolle.
    • Constructor Summary

      Constructors 
      Constructor Description
      ProtocolInputStream​(long protocolId, java.lang.String path)
      Öffnet eine Protokolldatei.
    • Method Summary

      Modifier and Type Method Description
      void close()
      Beendet den Zugriff auf das Protokoll.
      void closeAndRename()
      Beendet den Zugriff auf das Protokoll und nennt das Protokoll in ein gespeichertes Protokoll um.
      byte[] getProcessingParameters()
      Gibt die Anfrageparameter zurück
      ProtocolResult take()
      Liefert den nächsten Datensatz, der im Protokoll gespeichert ist.
      • Methods inherited from class java.lang.Object

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

      • ProtocolInputStream

        public ProtocolInputStream​(long protocolId,
                                   java.lang.String path)
                            throws de.bsvrz.sys.funclib.losb.exceptions.FailureException
        Öffnet eine Protokolldatei.
        Parameters:
        protocolId - protocolId für die Datei, in die geschrieben werden soll.
        path - Verzeichnis, in dem das Protokoll abgelegt werden soll. Muss auf File.separator enden.
        Throws:
        de.bsvrz.sys.funclib.losb.exceptions.FailureException - Fehler beim Zugriff auf die Datei.
    • Method Detail

      • take

        public ProtocolResult take()
                            throws de.bsvrz.sys.funclib.losb.exceptions.FailureException
        Liefert den nächsten Datensatz, der im Protokoll gespeichert ist.
        Returns:
        Datensatz oder null wenn alle Datensätze abgefragt wurden.
        Throws:
        de.bsvrz.sys.funclib.losb.exceptions.FailureException - Fehler beim Zugriff auf die protokolldatei.
      • close

        public void close()
        Beendet den Zugriff auf das Protokoll. Muss aufgerufen werden, wenn keine weiteren Zugriffe mehr auf die Protokolldatei erfolgen.
      • closeAndRename

        public void closeAndRename()
                            throws NoncriticalException
        Beendet den Zugriff auf das Protokoll und nennt das Protokoll in ein gespeichertes Protokoll um. Muss aufgerufen werden, wenn keine weiteren Zugriffe mehr auf die Protokolldatei erfolgen.
        Throws:
        NoncriticalException - Exception
      • getProcessingParameters

        public byte[] getProcessingParameters()
        Gibt die Anfrageparameter zurück
        Returns:
        ProcessingParameters