org.jmythapi.protocol.response.impl
Class AFreeSpace<E extends Enum<E>>

java.lang.Object
  extended by org.jmythapi.impl.AData<E>
      extended by org.jmythapi.protocol.response.impl.AMythResponse<E>
          extended by org.jmythapi.protocol.response.impl.AFreeSpace<E>
All Implemented Interfaces:
Cloneable, IPropertyAware<E>, IVersionable, ISendable, IBasicFreeSpace, IMythResponse<E>
Direct Known Subclasses:
FreeSpace, FreeSpaceList, FreeSpaceSummary

public abstract class AFreeSpace<E extends Enum<E>>
extends AMythResponse<E>
implements IBasicFreeSpace


Field Summary
 
Fields inherited from class org.jmythapi.impl.AData
logger, propsClass, protoVersion, respArgs
 
Constructor Summary
AFreeSpace(Class<E> propsClass, IMythPacket packet)
           
AFreeSpace(ProtocolVersion protoVersion, Class<E> propsClass, ArrayList<String> responseArgs)
           
AFreeSpace(ProtocolVersion protoVersion, Class<E> propsClass, String... responseArgs)
           
 
Method Summary
 Long getFreeSpace()
          Gets the free space on file system.
abstract  Long getTotalSpace()
          Gets the total space on file system.
abstract  Long getUsedSpace()
          Gets the used space on file system.
 
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
getPropertyClass, getPropertyCount, getPropertyMap, getPropertyValue, getPropertyValue, getPropertyValueObject, getPropertyValues, setPropertyValue, setPropertyValue, setPropertyValueObject
 

Constructor Detail

AFreeSpace

public AFreeSpace(Class<E> propsClass,
                  IMythPacket packet)

AFreeSpace

public AFreeSpace(ProtocolVersion protoVersion,
                  Class<E> propsClass,
                  String... responseArgs)

AFreeSpace

public AFreeSpace(ProtocolVersion protoVersion,
                  Class<E> propsClass,
                  ArrayList<String> responseArgs)
Method Detail

getTotalSpace

public abstract Long getTotalSpace()
Description copied from interface: IBasicFreeSpace
Gets the total space on file system.

Specified by:
getTotalSpace in interface IBasicFreeSpace
Returns:
total space

getUsedSpace

public abstract Long getUsedSpace()
Description copied from interface: IBasicFreeSpace
Gets the used space on file system.

Specified by:
getUsedSpace in interface IBasicFreeSpace
Returns:
used space

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.