|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.csource.fastdfs.StructBase
org.csource.fastdfs.StructGroupStat
public class StructGroupStat
C struct body decoder
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.csource.fastdfs.StructBase |
---|
StructBase.FieldInfo |
Field Summary | |
---|---|
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_TRUNK_FREE_MB
|
protected static StructBase.FieldInfo[] |
fieldsArray
|
protected static int |
fieldsTotalSize
|
protected long |
freeMB
|
protected java.lang.String |
groupName
|
protected int |
storageCount
|
protected int |
storageHttpPort
|
protected int |
storagePort
|
protected int |
storePathCount
|
protected int |
subdirCountPerPath
|
protected long |
trunkFreeMB
|
Constructor Summary | |
---|---|
StructGroupStat()
|
Method Summary | |
---|---|
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 |
java.lang.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 |
getTrunkFreeMB()
get trunk free space in MB |
void |
setFields(byte[] bs,
int offset)
set fields |
Methods inherited from class org.csource.fastdfs.StructBase |
---|
booleanValue, byteValue, dateValue, intValue, longValue, stringValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final int FIELD_INDEX_GROUP_NAME
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 java.lang.String groupName
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
Constructor Detail |
---|
public StructGroupStat()
Method Detail |
---|
public java.lang.String getGroupName()
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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |