|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IFreeSpaceSummary
An interface to get the free disk-space of a MythTV backend.
This interface represents the response to a backend.queryFreeSpaceSummary
request.
This interface is property-aware
. See the properties-list
for all properties of this interface.
IFreeSpaceSummary freeSpaceSummary = backend.queryFreeSpaceSummary(); System.out.println(String.format( "MythTV has used %d space out of %d.", freeSpaceSummary.getUsedSpace(), freeSpaceSummary.getTotalSpace() ));
<0>TOTAL_SPACE1: 0 | <1>TOTAL_SPACE2: 2067475048 | <2>USED_SPACE1: 0 | <3>USED_SPACE2: 1856202500
IBackend.queryFreeSpaceSummary()
,
QUERY_FREE_SPACE_SUMMARY
Nested Class Summary | |
---|---|
static class |
IFreeSpaceSummary.Props
The properties of an IFreeSpaceSummary response. |
Method Summary | |
---|---|
Long |
getTotalSpace()
Gets the total space on file system. |
Long |
getUsedSpace()
Gets the used space on file system. |
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
IFreeSpaceSummary.Props.TOTAL_SPACE
Long getUsedSpace()
getUsedSpace
in interface IBasicFreeSpace
IFreeSpaceSummary.Props.USED_SPACE
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |