public class LocalWanPublisherStatsImpl extends Object implements LocalWanPublisherStats
| Constructor and Description |
|---|
LocalWanPublisherStatsImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
fromJson(JsonObject json)
Extracts the state from the given
json object and mutates the
state of this object. |
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()
Serializes state represented by this object into a
JsonObject. |
String |
toString() |
public boolean isConnected()
LocalWanPublisherStatsisConnected in interface LocalWanPublisherStatspublic void setConnected(boolean connected)
public int getOutboundQueueSize()
LocalWanPublisherStatsgetOutboundQueueSize in interface LocalWanPublisherStatspublic void setOutboundQueueSize(int outboundQueueSize)
public WanPublisherState getPublisherState()
LocalWanPublisherStatsWanPublisherState of this publisher.getPublisherState in interface LocalWanPublisherStatsWanReplicationService.pause(String, String),
WanReplicationService.stop(String, String)public void setState(WanPublisherState state)
public long getTotalPublishLatency()
LocalWanPublisherStatsgetTotalPublishLatency in interface LocalWanPublisherStatspublic long getTotalPublishedEventCount()
LocalWanPublisherStatsgetTotalPublishedEventCount in interface LocalWanPublisherStatspublic Map<String,DistributedServiceWanEventCounters.DistributedObjectWanEventCounters> getSentMapEventCounter()
LocalWanPublisherStatsgetSentMapEventCounter in interface LocalWanPublisherStatspublic void setSentMapEventCounter(Map<String,DistributedServiceWanEventCounters.DistributedObjectWanEventCounters> sentMapEventCounter)
public Map<String,DistributedServiceWanEventCounters.DistributedObjectWanEventCounters> getSentCacheEventCounter()
LocalWanPublisherStatsgetSentCacheEventCounter in interface LocalWanPublisherStatspublic void setSentCacheEventCounter(Map<String,DistributedServiceWanEventCounters.DistributedObjectWanEventCounters> sentCacheEventCounter)
public void setLastConsistencyCheckResults(Map<String,ConsistencyCheckResult> lastConsistencyCheckResults)
public Map<String,ConsistencyCheckResult> getLastConsistencyCheckResults()
LocalWanPublisherStatsgetLastConsistencyCheckResults in interface LocalWanPublisherStatspublic void setLastSyncStats(Map<String,WanSyncStats> lastSyncStats)
public Map<String,WanSyncStats> getLastSyncStats()
LocalWanPublisherStatsgetLastSyncStats in interface LocalWanPublisherStatspublic void incrementPublishedEventCount(long latency)
public JsonObject toJson()
JsonSerializableJsonObject.toJson in interface JsonSerializablepublic void fromJson(JsonObject json)
JsonSerializablejson object and mutates the
state of this object.fromJson in interface JsonSerializablejson - the JSON object carrying state for this objectCopyright © 2020 Hazelcast, Inc.. All Rights Reserved.