public class StructGroupStat extends StructBase
StructBase.FieldInfo
Modifier and Type | Field and Description |
---|---|
protected int |
activeCount |
protected int |
currentTrunkFileId |
protected int |
currentWriteServer |
protected static int |
FIELD_INDEX_ACTIVE_COUNT |
protected static int |
FIELD_INDEX_CURRENT_TRUNK_FILE_ID |
protected static int |
FIELD_INDEX_CURRENT_WRITE_SERVER |
protected static int |
FIELD_INDEX_FREE_MB |
protected static int |
FIELD_INDEX_GROUP_NAME |
protected static int |
FIELD_INDEX_STORAGE_COUNT |
protected static int |
FIELD_INDEX_STORAGE_HTTP_PORT |
protected static int |
FIELD_INDEX_STORAGE_PORT |
protected static int |
FIELD_INDEX_STORE_PATH_COUNT |
protected static int |
FIELD_INDEX_SUBDIR_COUNT_PER_PATH |
protected static int |
FIELD_INDEX_TOTAL_MB |
protected static int |
FIELD_INDEX_TRUNK_FREE_MB |
protected static StructBase.FieldInfo[] |
fieldsArray |
protected static int |
fieldsTotalSize |
protected long |
freeMB |
protected String |
groupName |
protected int |
storageCount |
protected int |
storageHttpPort |
protected int |
storagePort |
protected int |
storePathCount |
protected int |
subdirCountPerPath |
protected long |
totalMB |
protected long |
trunkFreeMB |
Constructor and Description |
---|
StructGroupStat() |
Modifier and Type | Method and Description |
---|---|
int |
getActiveCount()
get active storage server count in this group
|
int |
getCurrentTrunkFileId()
get current trunk file id
|
int |
getCurrentWriteServer()
get current storage server index to upload file
|
static int |
getFieldsTotalSize()
get fields total size
|
long |
getFreeMB()
get free disk space in MB
|
String |
getGroupName()
get group name
|
int |
getStorageCount()
get storage server count in this group
|
int |
getStorageHttpPort()
get storage server HTTP port
|
int |
getStoragePort()
get storage server port
|
int |
getStorePathCount()
get store base path count of each storage server
|
int |
getSubdirCountPerPath()
get sub dir count per store path
|
long |
getTotalMB()
get total disk space in MB
|
long |
getTrunkFreeMB()
get trunk free space in MB
|
void |
setFields(byte[] bs,
int offset)
set fields
|
booleanValue, byteValue, dateValue, int32Value, intValue, longValue, stringValue
protected static final int FIELD_INDEX_GROUP_NAME
protected static final int FIELD_INDEX_TOTAL_MB
protected static final int FIELD_INDEX_FREE_MB
protected static final int FIELD_INDEX_TRUNK_FREE_MB
protected static final int FIELD_INDEX_STORAGE_COUNT
protected static final int FIELD_INDEX_STORAGE_PORT
protected static final int FIELD_INDEX_STORAGE_HTTP_PORT
protected static final int FIELD_INDEX_ACTIVE_COUNT
protected static final int FIELD_INDEX_CURRENT_WRITE_SERVER
protected static final int FIELD_INDEX_STORE_PATH_COUNT
protected static final int FIELD_INDEX_SUBDIR_COUNT_PER_PATH
protected static final int FIELD_INDEX_CURRENT_TRUNK_FILE_ID
protected static int fieldsTotalSize
protected static StructBase.FieldInfo[] fieldsArray
protected String groupName
protected long totalMB
protected long freeMB
protected long trunkFreeMB
protected int storageCount
protected int storagePort
protected int storageHttpPort
protected int activeCount
protected int currentWriteServer
protected int storePathCount
protected int subdirCountPerPath
protected int currentTrunkFileId
public String getGroupName()
public long getTotalMB()
public long getFreeMB()
public long getTrunkFreeMB()
public int getStorageCount()
public int getActiveCount()
public int getStoragePort()
public int getStorageHttpPort()
public int getCurrentWriteServer()
public int getStorePathCount()
public int getSubdirCountPerPath()
public int getCurrentTrunkFileId()
public void setFields(byte[] bs, int offset)
setFields
in class StructBase
bs
- byte arrayoffset
- start offsetpublic static int getFieldsTotalSize()
Copyright © 2018 lodsve. All rights reserved.