Class RollingFileManager

All Implemented Interfaces:
ChannelManager, ChannelManagerStandard, Closeable, AutoCloseable

@Deprecated public class RollingFileManager extends RollingFileManagerBase<String,Void>
Deprecated.
This class maintains the file channels, with the appropriate roll interval for BinaryStoreWriters. Each call to getChannel() evaluates the current time, and might re-initialize the channel. This class adds a time suffix to the configured location and file prefix. For example, "/db/TempFiles/irisadmin/logs", "DbInternal.UpdatePerformanceLog.localhost.bin.2018-04-16." to specify the log directory and file prefix or "/db/TempFiles/irisadmin/logs/DbInternal.UpdatePerformanceLog.localhost.bin.2018-04-16." to specify the directory and prefix together.
  • Constructor Details

  • Method Details

    • makeFilename

      protected String makeFilename(String value, Void ignored)
      Deprecated.
      Description copied from class: RollingFileWriterBase
      Construct the complete filename using the changing part passed in.
      Specified by:
      makeFilename in class RollingFileWriterBase<String,Void>
      Parameters:
      value - the changing portion of the filename based on our expiration
      ignored - the changing portion of the filename based on our caller
      Returns:
      the filename, possibly combining other data with the value
    • getChannel

      public GatheringByteChannel getChannel() throws IOException
      Deprecated.
      Description copied from interface: ChannelManagerStandard
      For ChannelManager implementations that don't support dynamic column partition determination, the channel is based on pre-determined criteria. The channel may still change, but not dynamically based on data that the ChannelManager user determines.
      Returns:
      a non-null, open GatheringByteChannel
      Throws:
      IOException - if the call encounters an error