public class LocalWanPublisherStatsImpl extends Object implements LocalWanPublisherStats
Constructor and Description |
---|
LocalWanPublisherStatsImpl() |
Modifier and Type | Method and Description |
---|---|
void |
fromJson(JsonObject json) |
Map<String,ConsistencyCheckResult> |
getLastConsistencyCheckResults()
Returns the last results of the consistency checks, mapped by map name.
|
Map<String,WanSyncStats> |
getLastSyncStats()
Returns the last synchronization statistics, mapped by map name.
|
int |
getOutboundQueueSize()
Returns the outbound queue size on this member
|
WanPublisherState |
getPublisherState()
Returns the current
WanPublisherState of this publisher. |
Map<String,DistributedServiceWanEventCounters.DistributedObjectWanEventCounters> |
getSentCacheEventCounter()
Returns the counter for the successfully transfered cache WAN events.
|
Map<String,DistributedServiceWanEventCounters.DistributedObjectWanEventCounters> |
getSentMapEventCounter()
Returns the counter for the successfully transfered map WAN events.
|
long |
getTotalPublishedEventCount()
Returns the total number of published events from this member
|
long |
getTotalPublishLatency()
Returns the total latency of published wan events from this member by millisecond.
|
void |
incrementPublishedEventCount(long latency) |
boolean |
isConnected()
Returns if this member is connected to the Wan publisher
|
void |
setConnected(boolean connected) |
void |
setLastConsistencyCheckResults(Map<String,ConsistencyCheckResult> lastConsistencyCheckResults) |
void |
setLastSyncStats(Map<String,WanSyncStats> lastSyncStats) |
void |
setOutboundQueueSize(int outboundQueueSize) |
void |
setSentCacheEventCounter(Map<String,DistributedServiceWanEventCounters.DistributedObjectWanEventCounters> sentCacheEventCounter) |
void |
setSentMapEventCounter(Map<String,DistributedServiceWanEventCounters.DistributedObjectWanEventCounters> sentMapEventCounter) |
void |
setState(WanPublisherState state) |
JsonObject |
toJson() |
String |
toString() |
public boolean isConnected()
LocalWanPublisherStats
isConnected
in interface LocalWanPublisherStats
public void setConnected(boolean connected)
public int getOutboundQueueSize()
LocalWanPublisherStats
getOutboundQueueSize
in interface LocalWanPublisherStats
public void setOutboundQueueSize(int outboundQueueSize)
public WanPublisherState getPublisherState()
LocalWanPublisherStats
WanPublisherState
of this publisher.getPublisherState
in interface LocalWanPublisherStats
WanReplicationService.pause(String, String)
,
WanReplicationService.stop(String, String)
public void setState(WanPublisherState state)
public long getTotalPublishLatency()
LocalWanPublisherStats
getTotalPublishLatency
in interface LocalWanPublisherStats
public long getTotalPublishedEventCount()
LocalWanPublisherStats
getTotalPublishedEventCount
in interface LocalWanPublisherStats
public Map<String,DistributedServiceWanEventCounters.DistributedObjectWanEventCounters> getSentMapEventCounter()
LocalWanPublisherStats
getSentMapEventCounter
in interface LocalWanPublisherStats
public void setSentMapEventCounter(Map<String,DistributedServiceWanEventCounters.DistributedObjectWanEventCounters> sentMapEventCounter)
public Map<String,DistributedServiceWanEventCounters.DistributedObjectWanEventCounters> getSentCacheEventCounter()
LocalWanPublisherStats
getSentCacheEventCounter
in interface LocalWanPublisherStats
public void setSentCacheEventCounter(Map<String,DistributedServiceWanEventCounters.DistributedObjectWanEventCounters> sentCacheEventCounter)
public void setLastConsistencyCheckResults(Map<String,ConsistencyCheckResult> lastConsistencyCheckResults)
public Map<String,ConsistencyCheckResult> getLastConsistencyCheckResults()
LocalWanPublisherStats
getLastConsistencyCheckResults
in interface LocalWanPublisherStats
public void setLastSyncStats(Map<String,WanSyncStats> lastSyncStats)
public Map<String,WanSyncStats> getLastSyncStats()
LocalWanPublisherStats
getLastSyncStats
in interface LocalWanPublisherStats
public void incrementPublishedEventCount(long latency)
public JsonObject toJson()
toJson
in interface JsonSerializable
public void fromJson(JsonObject json)
fromJson
in interface JsonSerializable
Copyright © 2018 Hazelcast, Inc.. All Rights Reserved.