org.jmythapi.protocol.response
Interface IUptime

All Superinterfaces:
Cloneable, IPropertyAware<IUptime.Props>, IVersionable
All Known Implementing Classes:
Uptime

public interface IUptime
extends IVersionable, IPropertyAware<IUptime.Props>

An interface to get the uptime of a MythTV backend.

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

A response example:

<0>UPTIME_SECONDS: 1163950

Since:
15
See Also:
IBackend.queryUptime(), QUERY_UPTIME
MythTV protocol range: [15,-1)
 VersionDateAdditional Version Info
Added152005-03-23Changelog, MythTV-Release: 0.18, SVN-Rev.: 5833
Removed-1 

Nested Class Summary
static class IUptime.Props
          Properties of the IUptime response.
 
Method Summary
 Date getStartupTime()
          Gts the startup time of the backend.
 Date getStartupTime(Date uptimeLoadedDate)
           
 Integer getUptimeSeconds()
          Gets the uptime in seconds
 Integer getUptimeSeconds(Date uptimeLoadedDate)
           
 
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

getUptimeSeconds

Integer getUptimeSeconds()
Gets the uptime in seconds

Returns:
the uptime in seconds or -1 if unknown
See Also:
IUptime.Props.UPTIME_SECONDS

getUptimeSeconds

Integer getUptimeSeconds(Date uptimeLoadedDate)

getStartupTime

Date getStartupTime()
Gts the startup time of the backend.

This date/time is calculated using the uptime in seconds.

Returns:
the backend startup time

getStartupTime

Date getStartupTime(Date uptimeLoadedDate)


Copyright © 2008-2013. All Rights Reserved.