org.jmythapi.protocol.response
Interface IFreeSpace

All Superinterfaces:
Cloneable, IBasicFreeSpace, IPropertyAware<IFreeSpace.Props>, IVersionable
All Known Implementing Classes:
FreeSpace

Deprecated. 17

public interface IFreeSpace
extends IBasicFreeSpace, IVersionable, IPropertyAware<IFreeSpace.Props>

An interface to get the free disk space of a MythTV backend.

This interface represents the response to a IBackend.queryFreeSpace request.
This interface is property-aware. See the properties-list for all properties of this interface.

Request example:


    IFreeSpace freeSpace = backend.queryFreeSpace();
    System.out.println(String.format(
       "MythTV has used %d space out of %d.",
       freeSpace.getUsedSpace(),
       freeSpace.getTotalSpace()
    ));
 

Response example:

<0>TOTAL_SPACE: 13817 | <1>USED_SPACE: 50

Since:
00
See Also:
IBackend.queryFreeSpace(), QUERY_FREESPACE

Nested Class Summary
static class IFreeSpace.Props
          Deprecated. The properties of an IFreeSpace response.
 
Method Summary
 void addUsedSpace(long spaceDiff)
          Deprecated.  
 Long getTotalSpace()
          Deprecated. Gets the total space on file system.
 Long getUsedSpace()
          Deprecated. Gets the used space on file system.
 void setUsedSpace(long usedSpace)
          Deprecated.  
 
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

getTotalSpace

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

Specified by:
getTotalSpace in interface IBasicFreeSpace
Returns:
total space
See Also:
IFreeSpace.Props.TOTAL_SPACE

getUsedSpace

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

Specified by:
getUsedSpace in interface IBasicFreeSpace
Returns:
used space
See Also:
IFreeSpace.Props.USED_SPACE

addUsedSpace

void addUsedSpace(long spaceDiff)
Deprecated. 

setUsedSpace

void setUsedSpace(long usedSpace)
Deprecated. 


Copyright © 2008-2013. All Rights Reserved.