org.jmythapi.protocol.response
Interface IFreeSpaceListEntry

All Superinterfaces:
Cloneable, IBasicFreeSpace, IPropertyAware<IFreeSpaceListEntry.EntryProps>, IVersionable
All Known Implementing Classes:
FreeSpaceList.Entry

public interface IFreeSpaceListEntry
extends IVersionable, IBasicFreeSpace, IPropertyAware<IFreeSpaceListEntry.EntryProps>

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

getHostName

String getHostName()

getDirectories

List<String> getDirectories()
Gets all directory of the file system.

Since:
32

getDirectories

List<String> getDirectories(boolean withHostnames)
Gets all directory of the file system.

Since:
32

hasDirectory

boolean hasDirectory(String directory)
Checks if the given directory exists in the file system entry.

Parameters:
directory - the desired directory
Returns:
true if the directory exists

isLocal

Boolean isLocal()
Since:
32

getFileSystemID

String getFileSystemID()
Since:
32

getStorageGroupID

Integer getStorageGroupID()
Since:
37

getBlockSize

Integer getBlockSize()
Since:
47

getTotalSpace

Long getTotalSpace()
Gets the total space on file system.

Specified by:
getTotalSpace in interface IBasicFreeSpace
Returns:
total space
See Also:
IFreeSpaceListEntry.EntryProps.TOTAL_SPACE

getUsedSpace

Long getUsedSpace()
Gets the used space on file system.

Specified by:
getUsedSpace in interface IBasicFreeSpace
Returns:
used space
See Also:
IFreeSpaceListEntry.EntryProps.USED_SPACE

addUsedSpace

void addUsedSpace(long spaceDiff)

setUsedSpace

void setUsedSpace(long usedSpace)


Copyright © 2008-2013. All Rights Reserved.