org.csource.fastdfs
类 StructGroupStat

java.lang.Object
  继承者 org.csource.fastdfs.StructBase
      继承者 org.csource.fastdfs.StructGroupStat

public class StructGroupStat
extends StructBase

C struct body decoder

版本:
Version 1.18
作者:
Happy Fish / YuQing

嵌套类摘要
 
从类 org.csource.fastdfs.StructBase 继承的嵌套类/接口
StructBase.FieldInfo
 
字段摘要
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
           
 
构造方法摘要
StructGroupStat()
           
 
方法摘要
 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
 
从类 org.csource.fastdfs.StructBase 继承的方法
booleanValue, byteValue, dateValue, int32Value, intValue, longValue, stringValue
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

FIELD_INDEX_GROUP_NAME

protected static final int FIELD_INDEX_GROUP_NAME
另请参见:
常量字段值

FIELD_INDEX_TOTAL_MB

protected static final int FIELD_INDEX_TOTAL_MB
另请参见:
常量字段值

FIELD_INDEX_FREE_MB

protected static final int FIELD_INDEX_FREE_MB
另请参见:
常量字段值

FIELD_INDEX_TRUNK_FREE_MB

protected static final int FIELD_INDEX_TRUNK_FREE_MB
另请参见:
常量字段值

FIELD_INDEX_STORAGE_COUNT

protected static final int FIELD_INDEX_STORAGE_COUNT
另请参见:
常量字段值

FIELD_INDEX_STORAGE_PORT

protected static final int FIELD_INDEX_STORAGE_PORT
另请参见:
常量字段值

FIELD_INDEX_STORAGE_HTTP_PORT

protected static final int FIELD_INDEX_STORAGE_HTTP_PORT
另请参见:
常量字段值

FIELD_INDEX_ACTIVE_COUNT

protected static final int FIELD_INDEX_ACTIVE_COUNT
另请参见:
常量字段值

FIELD_INDEX_CURRENT_WRITE_SERVER

protected static final int FIELD_INDEX_CURRENT_WRITE_SERVER
另请参见:
常量字段值

FIELD_INDEX_STORE_PATH_COUNT

protected static final int FIELD_INDEX_STORE_PATH_COUNT
另请参见:
常量字段值

FIELD_INDEX_SUBDIR_COUNT_PER_PATH

protected static final int FIELD_INDEX_SUBDIR_COUNT_PER_PATH
另请参见:
常量字段值

FIELD_INDEX_CURRENT_TRUNK_FILE_ID

protected static final int FIELD_INDEX_CURRENT_TRUNK_FILE_ID
另请参见:
常量字段值

fieldsTotalSize

protected static int fieldsTotalSize

fieldsArray

protected static StructBase.FieldInfo[] fieldsArray

groupName

protected String groupName

totalMB

protected long totalMB

freeMB

protected long freeMB

trunkFreeMB

protected long trunkFreeMB

storageCount

protected int storageCount

storagePort

protected int storagePort

storageHttpPort

protected int storageHttpPort

activeCount

protected int activeCount

currentWriteServer

protected int currentWriteServer

storePathCount

protected int storePathCount

subdirCountPerPath

protected int subdirCountPerPath

currentTrunkFileId

protected int currentTrunkFileId
构造方法详细信息

StructGroupStat

public StructGroupStat()
方法详细信息

getFieldsTotalSize

public static int getFieldsTotalSize()
get fields total size

返回:
fields total size

getGroupName

public String getGroupName()
get group name

返回:
group name

getTotalMB

public long getTotalMB()
get total disk space in MB

返回:
total disk space in MB

getFreeMB

public long getFreeMB()
get free disk space in MB

返回:
free disk space in MB

getTrunkFreeMB

public long getTrunkFreeMB()
get trunk free space in MB

返回:
trunk free space in MB

getStorageCount

public int getStorageCount()
get storage server count in this group

返回:
storage server count in this group

getActiveCount

public int getActiveCount()
get active storage server count in this group

返回:
active storage server count in this group

getStoragePort

public int getStoragePort()
get storage server port

返回:
storage server port

getStorageHttpPort

public int getStorageHttpPort()
get storage server HTTP port

返回:
storage server HTTP port

getCurrentWriteServer

public int getCurrentWriteServer()
get current storage server index to upload file

返回:
current storage server index to upload file

getStorePathCount

public int getStorePathCount()
get store base path count of each storage server

返回:
store base path count of each storage server

getSubdirCountPerPath

public int getSubdirCountPerPath()
get sub dir count per store path

返回:
sub dir count per store path

getCurrentTrunkFileId

public int getCurrentTrunkFileId()
get current trunk file id

返回:
current trunk file id

setFields

public void setFields(byte[] bs,
                      int offset)
set fields

指定者:
StructBase 中的 setFields
参数:
bs - byte array
offset - start offset


Copyright © 2017. All rights reserved.