Class RedoLogStatistics
java.lang.Object
com.gigaspaces.cluster.replication.RedoLogStatistics
- All Implemented Interfaces:
IRedoLogFileStatistics,IRedoLogStatistics
Redo log statistics
Not serializable should go over the wire
- Since:
- 7.1
- Author:
- eitany
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRedoLogStatistics(long lastKeyInRedoLog, long firstKeyInRedoLog, long size, long memoryPacketsCount, long externalStoragePacketsCount, long externalStorageSpaceUsed, long memorySize, long externalStorageSize, Map<String, ReplicationTargetInfo> targetsInfo) -
Method Summary
-
Field Details
-
EMPTY_STATISTICS
-
-
Constructor Details
-
RedoLogStatistics
public RedoLogStatistics(long lastKeyInRedoLog, long firstKeyInRedoLog, long size, long memoryPacketsCount, long externalStoragePacketsCount, long externalStorageSpaceUsed, long memorySize, long externalStorageSize, Map<String, ReplicationTargetInfo> targetsInfo)
-
-
Method Details
-
getExternalStoragePacketsCount
public long getExternalStoragePacketsCount()- Specified by:
getExternalStoragePacketsCountin interfaceIRedoLogFileStatistics- Returns:
- number of packets held in storage
-
getMemoryPacketsWeight
public long getMemoryPacketsWeight()- Specified by:
getMemoryPacketsWeightin interfaceIRedoLogFileStatistics- Returns:
- total weight of packets held in memory
-
getExternalStoragePacketsWeight
public long getExternalStoragePacketsWeight()- Specified by:
getExternalStoragePacketsWeightin interfaceIRedoLogFileStatistics- Returns:
- total weight of packets held in external storage
-
getExternalStorageSpaceUsed
public long getExternalStorageSpaceUsed()- Specified by:
getExternalStorageSpaceUsedin interfaceIRedoLogFileStatistics- Returns:
- used space in bytes which is external to the jvm
-
getMemoryPacketsCount
public long getMemoryPacketsCount()- Specified by:
getMemoryPacketsCountin interfaceIRedoLogFileStatistics- Returns:
- number of packets held in memory
-
size
public long size()- Specified by:
sizein interfaceIRedoLogFileStatistics- Returns:
- the number of replication packets held in the file
-
getLastKeyInRedoLog
public long getLastKeyInRedoLog()- Specified by:
getLastKeyInRedoLogin interfaceIRedoLogStatistics
-
getFirstKeyInRedoLog
public long getFirstKeyInRedoLog()- Specified by:
getFirstKeyInRedoLogin interfaceIRedoLogStatistics
-
getReplicationTargetsInfo
- Specified by:
getReplicationTargetsInfoin interfaceIRedoLogStatistics
-
toString
-