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()
LocalInstanceStats
getCreationTime
in interface LocalInstanceStats
public WanSyncStatus getStatus()
getStatus
in interface WanSyncState
public int getSyncedPartitionCount()
getSyncedPartitionCount
in interface WanSyncState
public String getActiveWanConfigName()
getActiveWanConfigName
in interface WanSyncState
public String getActivePublisherName()
getActivePublisherName
in interface WanSyncState
public JsonObject toJson()
JsonSerializable
JsonObject
.toJson
in interface JsonSerializable
public void fromJson(JsonObject json)
JsonSerializable
json
object and mutates the
state of this object.fromJson
in interface JsonSerializable
json
- the JSON object carrying state for this objectCopyright © 2022 Hazelcast, Inc.. All Rights Reserved.