public class WanSyncStateImpl extends Object implements WanSyncState
STAT_NOT_AVAILABLE| Constructor and Description |
|---|
WanSyncStateImpl() |
WanSyncStateImpl(WanSyncStatus status,
int syncedPartitionCount,
String activeWanConfigName,
String activePublisherName) |
| 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. |
String |
getActivePublisherName() |
String |
getActiveWanConfigName() |
long |
getCreationTime()
Returns the creation time of this distributed object instance on this member.
|
WanSyncStatus |
getStatus() |
int |
getSyncedPartitionCount() |
JsonObject |
toJson()
Serializes state represented by this object into a
JsonObject. |
String |
toString() |
public WanSyncStateImpl()
public WanSyncStateImpl(WanSyncStatus status, int syncedPartitionCount, String activeWanConfigName, String activePublisherName)
public long getCreationTime()
LocalInstanceStatsgetCreationTime in interface LocalInstanceStatspublic WanSyncStatus getStatus()
getStatus in interface WanSyncStatepublic int getSyncedPartitionCount()
getSyncedPartitionCount in interface WanSyncStatepublic String getActiveWanConfigName()
getActiveWanConfigName in interface WanSyncStatepublic String getActivePublisherName()
getActivePublisherName in interface WanSyncStatepublic 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.