public class LocalWanPublisherStatsImpl extends Object implements LocalWanPublisherStats
| Constructor and Description |
|---|
LocalWanPublisherStatsImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
fromJson(com.eclipsesource.json.JsonObject json) |
int |
getOutboundQueueSize()
Returns the outbound queue size on this member
|
Map<String,WanEventCounter.EventCounter> |
getSentCacheEventCounter()
Returns the counter for the successfully transfered cache WAN events.
|
Map<String,WanEventCounter.EventCounter> |
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
|
boolean |
isPaused()
Returns if the wan replication on this member is paused
|
void |
setConnected(boolean connected) |
void |
setOutboundQueueSize(int outboundQueueSize) |
void |
setPaused(boolean paused) |
void |
setSentCacheEventCounter(Map<String,WanEventCounter.EventCounter> sentCacheEventCounter) |
void |
setSentMapEventCounter(Map<String,WanEventCounter.EventCounter> sentMapEventCounter) |
com.eclipsesource.json.JsonObject |
toJson() |
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 boolean isPaused()
LocalWanPublisherStatsisPaused in interface LocalWanPublisherStatspublic void setPaused(boolean paused)
public long getTotalPublishLatency()
LocalWanPublisherStatsgetTotalPublishLatency in interface LocalWanPublisherStatspublic long getTotalPublishedEventCount()
LocalWanPublisherStatsgetTotalPublishedEventCount in interface LocalWanPublisherStatspublic Map<String,WanEventCounter.EventCounter> getSentMapEventCounter()
LocalWanPublisherStatsgetSentMapEventCounter in interface LocalWanPublisherStatspublic Map<String,WanEventCounter.EventCounter> getSentCacheEventCounter()
LocalWanPublisherStatsgetSentCacheEventCounter in interface LocalWanPublisherStatspublic void setSentMapEventCounter(Map<String,WanEventCounter.EventCounter> sentMapEventCounter)
public void setSentCacheEventCounter(Map<String,WanEventCounter.EventCounter> sentCacheEventCounter)
public void incrementPublishedEventCount(long latency)
public com.eclipsesource.json.JsonObject toJson()
toJson in interface JsonSerializablepublic void fromJson(com.eclipsesource.json.JsonObject json)
fromJson in interface JsonSerializableCopyright © 2018 Hazelcast, Inc.. All Rights Reserved.