|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IFreeSpaceListEntry
One entry of an IFreeSpaceList
response.
A response example:
<00>HOSTNAME: mythbox | <01>DIRECTORIES: mythbox:/mnt/data/mythpinky | <02>IS_LOCAL: false | <03>FILESYSTEM_ID: 1 | <04>STORAGE_GROUP_ID: 12 | <05>BLOCK_SIZE: 131072 | <06>TOTAL_SPACE1: 0 | <07>TOTAL_SPACE2: 1922845568 | <08>USED_SPACE1: 0 | <09>USED_SPACE2: 1814276224
Nested Class Summary | |
---|---|
static class |
IFreeSpaceListEntry.EntryProps
The properties of an IFreeSpaceList response. |
Method Summary | |
---|---|
void |
addUsedSpace(long spaceDiff)
|
Integer |
getBlockSize()
|
List<String> |
getDirectories()
Gets all directory of the file system. |
List<String> |
getDirectories(boolean withHostnames)
Gets all directory of the file system. |
String |
getFileSystemID()
|
String |
getHostName()
|
Integer |
getStorageGroupID()
|
Long |
getTotalSpace()
Gets the total space on file system. |
Long |
getUsedSpace()
Gets the used space on file system. |
boolean |
hasDirectory(String directory)
Checks if the given directory exists in the file system entry. |
Boolean |
isLocal()
|
void |
setUsedSpace(long usedSpace)
|
Methods inherited from interface org.jmythapi.protocol.response.IBasicFreeSpace |
---|
getFreeSpace |
Methods inherited from interface org.jmythapi.IVersionable |
---|
getVersionNr |
Methods inherited from interface org.jmythapi.IPropertyAware |
---|
getProperties, getProperty, getPropertyClass, getPropertyCount, getPropertyIndex, getPropertyMap, getPropertyValue, getPropertyValue, getPropertyValueObject, getPropertyValues, setPropertyValue, setPropertyValue, setPropertyValueObject |
Method Detail |
---|
String getHostName()
List<String> getDirectories()
List<String> getDirectories(boolean withHostnames)
boolean hasDirectory(String directory)
directory
- the desired directory
true
if the directory existsBoolean isLocal()
String getFileSystemID()
Integer getStorageGroupID()
Integer getBlockSize()
Long getTotalSpace()
getTotalSpace
in interface IBasicFreeSpace
IFreeSpaceListEntry.EntryProps.TOTAL_SPACE
Long getUsedSpace()
getUsedSpace
in interface IBasicFreeSpace
IFreeSpaceListEntry.EntryProps.USED_SPACE
void addUsedSpace(long spaceDiff)
void setUsedSpace(long usedSpace)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |