Package com.tailf.notif
Class CompactionNotification
Object
com.tailf.notif.Notification
com.tailf.notif.CompactionNotification
Data structure for compaction notifications.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
static enum
-
Constructor Summary
ConstructorDescriptionCompactionNotification
(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.long
Duration of compaction in microseconds.long
The size (bytes) of the datastore at the end of the compaction.long
The size (bytes) of the datastore at the end of the previous compaction.long
The size (bytes) of the datastore at the beginning of the compaction.int
Number of transactions since the previous compaction.long
Epoch 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:
toString
in classNotification
-