public class HeartbeatRequest<T extends Node> extends Object implements Serializable
| 构造器和说明 |
|---|
HeartbeatRequest(T node,
long slotTableEpoch,
String dataCenter,
long timestamp,
SlotConfig.SlotBasicInfo slotBasicInfo,
List<BaseSlotStatus> slotStatuses,
Map<String,Long> remoteClusterSlotTableEpoch)
constructor
|
HeartbeatRequest(T node,
long slotTableEpoch,
String dataCenter,
long timestamp,
SlotConfig.SlotBasicInfo slotBasicInfo,
Map<String,Long> remoteClusterSlotTableEpoch)
constructor
|
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getDataCenter()
Gets get data center.
|
int |
getDuration()
Getter method for property duration.
|
T |
getNode()
Getter method for property node.
|
Map<String,Long> |
getRemoteClusterSlotTableEpoch()
Getter method for property remoteClusterSlotTableEpoch.
|
SlotConfig.SlotBasicInfo |
getSlotBasicInfo()
Gets get slot basic info.
|
List<BaseSlotStatus> |
getSlotStatus()
Gets get slot status.
|
SlotTable |
getSlotTable()
Gets get slot table.
|
long |
getSlotTableEpoch()
Gets get slot table epoch.
|
long |
getTimestamp()
Gets get timestamp.
|
void |
setDuration(int duration)
Setter method for property duration.
|
HeartbeatRequest<T> |
setSlotTable(SlotTable slotTable)
Sets set slot table.
|
String |
toString()
To string string.
|
public HeartbeatRequest(T node, long slotTableEpoch, String dataCenter, long timestamp, SlotConfig.SlotBasicInfo slotBasicInfo, Map<String,Long> remoteClusterSlotTableEpoch)
node - nodeslotTableEpoch - slotTableEpochdataCenter - dataCentertimestamp - timestampslotBasicInfo - slotBasicInforemoteClusterSlotTableEpoch - remoteClusterSlotTableEpochpublic HeartbeatRequest(T node, long slotTableEpoch, String dataCenter, long timestamp, SlotConfig.SlotBasicInfo slotBasicInfo, List<BaseSlotStatus> slotStatuses, Map<String,Long> remoteClusterSlotTableEpoch)
node - nodeslotTableEpoch - slotTableEpochdataCenter - dataCentertimestamp - timestampslotBasicInfo - slotBasicInfoslotStatuses - slotStatusesremoteClusterSlotTableEpoch - remoteClusterSlotTableEpochpublic int getDuration()
public void setDuration(int duration)
duration - value to be assigned to property durationpublic T getNode()
public String getDataCenter()
public long getTimestamp()
public SlotConfig.SlotBasicInfo getSlotBasicInfo()
public long getSlotTableEpoch()
public List<BaseSlotStatus> getSlotStatus()
public SlotTable getSlotTable()
public HeartbeatRequest<T> setSlotTable(SlotTable slotTable)
slotTable - the slot tablepublic Map<String,Long> getRemoteClusterSlotTableEpoch()
Copyright © 2023 The Ant Financial. All rights reserved.