public class ServerIdxThreadState extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
BAD |
static int |
BUSY |
static int |
FREE |
private long |
freeBytes |
private long |
freeBytesToCaller |
private String |
host_sn |
(专用程序包) Schema |
schema |
private List<ServerSegState> |
segs |
private int |
state |
private long |
totalBytes |
| 构造器和说明 |
|---|
ServerIdxThreadState(Schema schema) |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
bytes2Me(byte[] buf,
int start,
String charset)
byte 2 me
|
long |
getFreeKB() |
long |
getFreeKBToCaller() |
String |
getHostSn() |
List<ServerSegState> |
getSegs() |
int |
getState() |
long |
getTotalKB() |
void |
setSegs(List<ServerSegState> segs) |
void |
setState(int state) |
String |
toString() |
Schema schema
public static final int FREE
public static final int BUSY
public static final int BAD
private int state
private long totalBytes
private long freeBytes
private long freeBytesToCaller
private String host_sn
private List<ServerSegState> segs
public ServerIdxThreadState(Schema schema)
public List<ServerSegState> getSegs()
public void setSegs(List<ServerSegState> segs)
public long getFreeKB()
public long getFreeKBToCaller()
public long getTotalKB()
public int getState()
public void setState(int state)
state - The state to set.public int bytes2Me(byte[] buf,
int start,
String charset)
throws UnsupportedEncodingException
buf - start - UnsupportedEncodingExceptionpublic String getHostSn()
Copyright © 2023. All rights reserved.