Class SyncLogWriter

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    public class SyncLogWriter
    extends java.lang.Object
    implements java.lang.AutoCloseable
    SyncLogger is used to manage the persistent information in the sync module. Persistent information can be recovered on reboot via SyncLogReader.
    • Constructor Detail

      • SyncLogWriter

        public SyncLogWriter​(java.io.File dir)
      • SyncLogWriter

        public SyncLogWriter​(java.io.File dir,
                             java.lang.String fileName)
    • Method Detail

      • initOutputStream

        public void initOutputStream()
                              throws java.io.IOException
        Throws:
        java.io.IOException
      • addPipeSink

        public void addPipeSink​(PipeSink pipeSink)
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • dropPipeSink

        public void dropPipeSink​(java.lang.String pipeSinkName)
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • addPipe

        public void addPipe​(PipeInfo pipeInfo)
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • operatePipe

        public void operatePipe​(java.lang.String pipeName,
                                SyncOperation syncOperation)
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Throws:
        java.io.IOException