|
GigaSpaces XAP 10.1 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MirrorStatistics
Interface for mirror operation statistics. All mirror operations are executed in bulks.
Each bulk can contain several operations that can be one of the following:
WRITE,REMOVE,UPDATE. See BulkItem.
MirrorStatistics shows the total operation statistics, specific replication channel statistics and also
statistics per operation - WRITE/UPDATE/REMOVE.
Example:
SpaceInstanceStatistics statistics = spaceInstance.getStatistics();
MirrorStatistics mirrorStat =statistics.getMirrorStatistics();
long totalOperationsCount = mirrorStat.getOperationCount();
long totalSuccessfulOperationsCount = mirrorStat.getSuccessfulOperationCount();
long totalOperationsCount = mirrorStat.getFailedOperationCount();
long totalWriteCount = mirrorStat.getWriteOperationStatistics().getOperationCount();
Mirror Channels statistics shows only operations that belong to specific space. This might be useful when monitoring a connection between specific space and the mirror.
To get information about what is sent to the mirror by the cluster spaces, use the ReplicationStatistics API.
| Method Summary | |
|---|---|
Map<String,? extends MirrorOperations> |
getAllSourceChannelStatistics()
Get mirror statistics for all space instances incoming channels to the mirror |
MirrorOperations |
getSourceChannelStatistics(String channelName)
Get the mirror statistics per specific space instance replication channel that replicates data to the mirror. |
| Methods inherited from interface com.gigaspaces.cluster.replication.async.mirror.MirrorOperations |
|---|
getChangeOperationStatistics, getRemoveOperationStatistics, getUpdateOperationStatistics, getWriteOperationStatistics |
| Methods inherited from interface com.gigaspaces.cluster.replication.async.mirror.MirrorOperationStatistics |
|---|
getDiscardedOperationCount, getFailedOperationCount, getInProgressOperationCount, getOperationCount, getSuccessfulOperationCount |
| Method Detail |
|---|
MirrorOperations getSourceChannelStatistics(String channelName)
SpaceInstanceStatistics statistics = spaceInstance.getStatistics();
MirrorStatistics mirrorStat =statistics.getMirrorStatistics();
MirrorBulkStatistics primaryToMirrorStatistics = mirrorStat.getSourceChannelStatistics("mySpace_container1:mySpace");
long bulkCountFromPrimary = primaryToMirrorStatistics.getOperationCount();
long writeCountFromPrimary = primaryToMirrorStatistics.getWriteOperationStatistics().getOperationCount();
channelName - the name of the source mirror channel. Format : Map<String,? extends MirrorOperations> getAllSourceChannelStatistics()
|
GigaSpaces XAP 10.1 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||