Class CompactionNotification

Object
com.tailf.notif.Notification
com.tailf.notif.CompactionNotification

public class CompactionNotification extends Notification
Data structure for compaction notifications.
  • Constructor Details

    • CompactionNotification

      public CompactionNotification(int dbFile, int compactionType, long fsizeStart, long fsizeEnd, long fsizeLast, long timeStart, long duration, int nTrans)
  • Method Details

    • getCompactionFile

      public CompactionNotification.CompactionFile getCompactionFile()
      Indicates which datastore was compacted.
    • getCompactionType

      public CompactionNotification.CompactionType getCompactionType()
      Indicates whether the compaction was triggered manually or automatically by the system.
    • getFsizeStart

      public long getFsizeStart()
      The size (bytes) of the datastore at the beginning of the compaction.
    • getFsizeEnd

      public long getFsizeEnd()
      The size (bytes) of the datastore at the end of the compaction.
    • getFsizeLast

      public long getFsizeLast()
      The size (bytes) of the datastore at the end of the previous compaction.
    • getTimeStart

      public long getTimeStart()
      Epoch timestamp of when the transaction started, given in microseconds.
    • getDuration

      public long getDuration()
      Duration of compaction in microseconds.
    • getNTrans

      public int getNTrans()
      Number of transactions since the previous compaction.
    • toString

      public String toString()
      Overrides:
      toString in class Notification