Class IOMonitorAdapter

    • Constructor Detail

      • IOMonitorAdapter

        public IOMonitorAdapter()
    • Method Detail

      • beforeSegmentRead

        public void beforeSegmentRead​(File file,
                                      long msb,
                                      long lsb,
                                      int length)
        Description copied from interface: IOMonitor
        Called before a segment is read from the file system.
        Specified by:
        beforeSegmentRead in interface IOMonitor
        Parameters:
        file - File containing the segment.
        msb - Most significant bits of the segment ID.
        lsb - Least significant bits of the segment ID.
        length - Size of the segment.
      • afterSegmentRead

        public void afterSegmentRead​(File file,
                                     long msb,
                                     long lsb,
                                     int length,
                                     long elapsed)
        Description copied from interface: IOMonitor
        Called after a segment is read from the file system. This is called only in case of successful operations.
        Specified by:
        afterSegmentRead in interface IOMonitor
        Parameters:
        file - File containing the segment.
        msb - Most significant bits of the segment ID.
        lsb - Least significant bits of the segment ID.
        length - Size of the segment.
        elapsed - Time spent by the read operation, in nanoseconds.
      • beforeSegmentWrite

        public void beforeSegmentWrite​(File file,
                                       long msb,
                                       long lsb,
                                       int length)
        Description copied from interface: IOMonitor
        Called before a segment is written to the file system.
        Specified by:
        beforeSegmentWrite in interface IOMonitor
        Parameters:
        file - File containing the segment.
        msb - Most significant bits of the segment ID.
        lsb - Least significant bits of the segment ID.
        length - Size of the segment.
      • afterSegmentWrite

        public void afterSegmentWrite​(File file,
                                      long msb,
                                      long lsb,
                                      int length,
                                      long elapsed)
        Description copied from interface: IOMonitor
        Called after a segment is written to the file system. This is called only in case of successful operations.
        Specified by:
        afterSegmentWrite in interface IOMonitor
        Parameters:
        file - File containing the segment.
        msb - Most significant bits of the segment ID.
        lsb - Least significant bits of the segment ID.
        length - Size of the segment.
        elapsed - Time spent by the write operation, in nanoseconds.