Package com.tailf.notif
Class CompactionNotification
Object
com.tailf.notif.Notification
com.tailf.notif.CompactionNotification
Data structure for compaction notifications.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enum -
Constructor Summary
ConstructorsConstructorDescriptionCompactionNotification(int dbFile, int compactionType, long fsizeStart, long fsizeEnd, long fsizeLast, long timeStart, long duration, int nTrans) -
Method Summary
Modifier and TypeMethodDescriptionIndicates which datastore was compacted.Indicates whether the compaction was triggered manually or automatically by the system.longDuration of compaction in microseconds.longThe size (bytes) of the datastore at the end of the compaction.longThe size (bytes) of the datastore at the end of the previous compaction.longThe size (bytes) of the datastore at the beginning of the compaction.intNumber of transactions since the previous compaction.longEpoch timestamp of when the transaction started, given in microseconds.toString()Methods inherited from class com.tailf.notif.Notification
getNotificationType
-
Constructor Details
-
CompactionNotification
public CompactionNotification(int dbFile, int compactionType, long fsizeStart, long fsizeEnd, long fsizeLast, long timeStart, long duration, int nTrans)
-
-
Method Details
-
getCompactionFile
Indicates which datastore was compacted. -
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
- Overrides:
toStringin classNotification
-