|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IFreeSpace
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.
IFreeSpace freeSpace = backend.queryFreeSpace(); System.out.println(String.format( "MythTV has used %d space out of %d.", freeSpace.getUsedSpace(), freeSpace.getTotalSpace() ));
<0>TOTAL_SPACE: 13817 | <1>USED_SPACE: 50
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 |
---|
Long getTotalSpace()
getTotalSpace
in interface IBasicFreeSpace
IFreeSpace.Props.TOTAL_SPACE
Long getUsedSpace()
getUsedSpace
in interface IBasicFreeSpace
IFreeSpace.Props.USED_SPACE
void addUsedSpace(long spaceDiff)
void setUsedSpace(long usedSpace)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |