Serializablepublic class Shard extends Object implements Serializable
| 修饰符和类型 | 字段 | 说明 |
|---|---|---|
protected int |
createTime |
|
protected String |
exclusiveEndKey |
|
protected String |
inclusiveBeginKey |
|
protected String |
serverIp |
|
protected int |
shardId |
|
protected String |
status |
| 构造器 | 说明 |
|---|---|
Shard(int shardId,
String status,
String begin,
String end,
int createTime) |
Create a shard with shard id
|
| 修饰符和类型 | 方法 | 说明 |
|---|---|---|
int |
getCreateTime() |
Return shard create time
|
String |
getExclusiveEndKey() |
Return shard exclusive end key
|
String |
getInclusiveBeginKey() |
Return shard inclusive begin key
|
String |
getServerIp() |
return server ip for the shard
|
int |
GetShardId() |
Return shard id
|
String |
getStatus() |
Return shard status
|
void |
setCreateTime(int createTime) |
|
void |
setExclusiveEndKey(String exclusiveEndKey) |
set shard exclusive end key
|
void |
setInclusiveBeginKey(String inclusiveBeginKey) |
set shard inclusive begin key
|
void |
setServerIp(String serverIp) |
set server ip
|
void |
setStatus(String status) |
set shard status
|
protected int shardId
protected String status
protected String inclusiveBeginKey
protected String exclusiveEndKey
protected String serverIp
protected int createTime
public String getStatus()
public void setStatus(String status)
status - the shard statuspublic String getInclusiveBeginKey()
public void setInclusiveBeginKey(String inclusiveBeginKey)
inclusiveBeginKey - the shard inclusive begin keypublic String getExclusiveEndKey()
public void setExclusiveEndKey(String exclusiveEndKey)
exclusiveEndKey - the shard exclusive end keypublic int getCreateTime()
public void setServerIp(String serverIp)
serverIp - the server ip for the shardpublic String getServerIp()
public void setCreateTime(int createTime)
createTime - shard create timepublic int GetShardId()
Copyright © 2018. All Rights Reserved.