public class MirrorStatisticsImpl extends AbstractMirrorOperations implements MirrorStatistics, SmartExternalizable, IReplicationInOperationsStatistics<MirrorOperations>
Constructor and Description |
---|
MirrorStatisticsImpl() |
Modifier and Type | Method and Description |
---|---|
Map<String,? extends MirrorOperations> |
getAllSourceChannelStatistics()
Get mirror statistics for all space instances incoming channels to the mirror
|
MirrorOperationStatistics |
getChangeOperationStatistics()
Return statistics on change operations
|
MirrorOperationStatistics |
getRemoveOperationStatistics()
Return statistics on remove operations
|
MirrorOperations |
getSourceChannelStatistics(String channelName)
Get the mirror statistics per specific space instance replication channel that replicates
data to the mirror.
|
MirrorOperationStatistics |
getUpdateOperationStatistics()
Return statistics on update operations
|
MirrorOperationStatistics |
getWriteOperationStatistics()
Return statistics on write operations
|
void |
readExternal(ObjectInput in) |
void |
setMetricRegistrator(MetricRegistrator metricRegistrator) |
String |
toString() |
void |
writeExternal(ObjectOutput out) |
getDiscardedOperationCount, getFailedOperationCount, getInProgressOperationCount, getOperationCount, getSuccessfulOperationCount
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDiscardedOperationCount, getFailedOperationCount, getInProgressOperationCount, getOperationCount, getSuccessfulOperationCount
enabledSmartExternalizableWithReference
public String toString()
toString
in class AbstractMirrorOperations
public void setMetricRegistrator(MetricRegistrator metricRegistrator)
public Map<String,? extends MirrorOperations> getAllSourceChannelStatistics()
MirrorStatistics
getAllSourceChannelStatistics
in interface MirrorStatistics
getAllSourceChannelStatistics
in interface IReplicationInOperationsStatistics<MirrorOperations>
public MirrorOperations getSourceChannelStatistics(String channelName)
MirrorStatistics
SpaceInstanceStatistics statistics = spaceInstance.getStatistics();
MirrorStatistics mirrorStat =statistics.getMirrorStatistics();
MirrorBulkStatistics primaryToMirrorStatistics = mirrorStat.getSourceChannelStatistics("mySpace_container1:mySpace");
long bulkCountFromPrimary = primaryToMirrorStatistics.getOperationCount(); long
writeCountFromPrimary = primaryToMirrorStatistics.getWriteOperationStatistics().getOperationCount();
getSourceChannelStatistics
in interface MirrorStatistics
getSourceChannelStatistics
in interface IReplicationInOperationsStatistics<MirrorOperations>
channelName
- the name of the source mirror channel. Format : public MirrorOperationStatistics getWriteOperationStatistics()
MirrorOperations
getWriteOperationStatistics
in interface MirrorOperations
getWriteOperationStatistics
in interface IReplicationInOperations<MirrorOperationStatistics>
public MirrorOperationStatistics getUpdateOperationStatistics()
MirrorOperations
getUpdateOperationStatistics
in interface MirrorOperations
getUpdateOperationStatistics
in interface IReplicationInOperations<MirrorOperationStatistics>
public MirrorOperationStatistics getRemoveOperationStatistics()
MirrorOperations
getRemoveOperationStatistics
in interface MirrorOperations
getRemoveOperationStatistics
in interface IReplicationInOperations<MirrorOperationStatistics>
public MirrorOperationStatistics getChangeOperationStatistics()
MirrorOperations
getChangeOperationStatistics
in interface MirrorOperations
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
Copyright © GigaSpaces.