org.jmythapi.protocol.response.impl
Class FreeSpaceList.Entry
java.lang.Object
org.jmythapi.impl.AData<E>
org.jmythapi.protocol.response.impl.AMythResponse<IFreeSpaceListEntry.EntryProps>
org.jmythapi.protocol.response.impl.FreeSpaceList.Entry
- All Implemented Interfaces:
- Cloneable, IPropertyAware<IFreeSpaceListEntry.EntryProps>, IVersionable, ISendable, IBasicFreeSpace, IFreeSpaceListEntry, IMythResponse<IFreeSpaceListEntry.EntryProps>
- Enclosing class:
- FreeSpaceList
public class FreeSpaceList.Entry
- extends AMythResponse<IFreeSpaceListEntry.EntryProps>
- implements IFreeSpaceListEntry
| Methods inherited from class org.jmythapi.impl.AData |
clone, equals, getPropertyClass, getPropertyCount, getPropertyMap, getPropertyValue, getPropertyValue, getPropertyValueObject, getPropertyValueObject, getPropertyValues, getVersionNr, hashCode, init, postProcessArguments, setPropertyValue, setPropertyValue, setPropertyValueObject, toString |
| Methods inherited from interface org.jmythapi.IPropertyAware |
getProperties, getProperty, getPropertyClass, getPropertyCount, getPropertyIndex, getPropertyMap, getPropertyValue, getPropertyValue, getPropertyValueObject, getPropertyValues, setPropertyValue, setPropertyValue, setPropertyValueObject |
FreeSpaceList.Entry
public FreeSpaceList.Entry(IMythPacket packet)
FreeSpaceList.Entry
public FreeSpaceList.Entry(ProtocolVersion protoVersion,
List<String> responseArgs)
getHostName
public String getHostName()
- Specified by:
getHostName in interface IFreeSpaceListEntry
getDirectories
public List<String> getDirectories()
- Description copied from interface:
IFreeSpaceListEntry
- Gets all directory of the file system.
- Specified by:
getDirectories in interface IFreeSpaceListEntry
- Since:
- 32
getDirectories
public List<String> getDirectories(boolean withHostnames)
- Description copied from interface:
IFreeSpaceListEntry
- Gets all directory of the file system.
- Specified by:
getDirectories in interface IFreeSpaceListEntry
hasDirectory
public boolean hasDirectory(String directory)
- Description copied from interface:
IFreeSpaceListEntry
- Checks if the given directory exists in the file system entry.
- Specified by:
hasDirectory in interface IFreeSpaceListEntry
- Parameters:
directory - the desired directory
- Returns:
true if the directory exists
isLocal
public Boolean isLocal()
- Specified by:
isLocal in interface IFreeSpaceListEntry
- Since:
- 32
getFileSystemID
public String getFileSystemID()
- Specified by:
getFileSystemID in interface IFreeSpaceListEntry
- Since:
- 32
getStorageGroupID
public Integer getStorageGroupID()
- Specified by:
getStorageGroupID in interface IFreeSpaceListEntry
- Since:
- 37
getBlockSize
public Integer getBlockSize()
- Specified by:
getBlockSize in interface IFreeSpaceListEntry
- Since:
- 47
getTotalSpace
public Long getTotalSpace()
- Description copied from interface:
IFreeSpaceListEntry
- Gets the total space on file system.
- Specified by:
getTotalSpace in interface IBasicFreeSpace- Specified by:
getTotalSpace in interface IFreeSpaceListEntry
- Returns:
- total space
- See Also:
IFreeSpaceListEntry.EntryProps.TOTAL_SPACE
getUsedSpace
public Long getUsedSpace()
- Description copied from interface:
IFreeSpaceListEntry
- Gets the used space on file system.
- Specified by:
getUsedSpace in interface IBasicFreeSpace- Specified by:
getUsedSpace in interface IFreeSpaceListEntry
- Returns:
- used space
- See Also:
IFreeSpaceListEntry.EntryProps.USED_SPACE
addUsedSpace
public void addUsedSpace(long spaceDiff)
- Specified by:
addUsedSpace in interface IFreeSpaceListEntry
setUsedSpace
public void setUsedSpace(long usedSpace)
- Specified by:
setUsedSpace in interface IFreeSpaceListEntry
getFreeSpace
public Long getFreeSpace()
- Description copied from interface:
IBasicFreeSpace
- Gets the free space on file system.
- Specified by:
getFreeSpace in interface IBasicFreeSpace
- Returns:
- free space
Copyright © 2008-2013. All Rights Reserved.