org.jmythapi.protocol.response.impl
Class FreeSpaceList.Entry

java.lang.Object
  extended by org.jmythapi.impl.AData<E>
      extended by org.jmythapi.protocol.response.impl.AMythResponse<IFreeSpaceListEntry.EntryProps>
          extended by 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


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jmythapi.protocol.response.IFreeSpaceListEntry
IFreeSpaceListEntry.EntryProps
 
Field Summary
 
Fields inherited from class org.jmythapi.impl.AData
logger, propsClass, protoVersion, respArgs
 
Constructor Summary
FreeSpaceList.Entry(IMythPacket packet)
           
FreeSpaceList.Entry(ProtocolVersion protoVersion, List<String> responseArgs)
           
 
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()
           
 Long getFreeSpace()
          Gets the free space on file system.
 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 class org.jmythapi.protocol.response.impl.AMythResponse
checkSize, decodeProperty, encodeProperty, getExpectedSize, getPacket, getProperties, getProperty, getPropertyIndex
 
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 class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
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
 

Constructor Detail

FreeSpaceList.Entry

public FreeSpaceList.Entry(IMythPacket packet)

FreeSpaceList.Entry

public FreeSpaceList.Entry(ProtocolVersion protoVersion,
                           List<String> responseArgs)
Method Detail

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.