org.jmythapi.database.impl
Class MythShutdownStatus

java.lang.Object
  extended by org.jmythapi.impl.AData<E>
      extended by org.jmythapi.database.impl.ADatabaseRow<E>
          extended by org.jmythapi.database.impl.ASettingsGroup<IMythShutdownSettings.Props>
              extended by org.jmythapi.database.impl.MythShutdownStatus
All Implemented Interfaces:
Cloneable, IMythShutdownSettings, IPropertyAware<IMythShutdownSettings.Props>, IVersionable

public class MythShutdownStatus
extends ASettingsGroup<IMythShutdownSettings.Props>
implements IMythShutdownSettings


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jmythapi.database.IMythShutdownSettings
IMythShutdownSettings.Props, IMythShutdownSettings.StartupMode
 
Field Summary
 
Fields inherited from class org.jmythapi.impl.AData
logger, propsClass, protoVersion, respArgs
 
Constructor Summary
MythShutdownStatus(ProtocolVersion protoVersion, int dbVersion, Map<String,ISetting> settings)
           
 
Method Summary
 Integer getIdleTimeout()
           
 Integer getIdleWaitForRecording()
           
 Integer getLockedCount()
           
 Date getNextScheduledShutdown()
           
 Date getNextScheduledWakeup()
           
 Integer getStartupBeforeRecording()
           
 IMythShutdownSettings.StartupMode getStartupMode(Date startupTime)
           
 boolean isShutdownEnabled()
           
 boolean isShutdownLocked()
          Specifies if shutdown was locked by the user.
 
Methods inherited from class org.jmythapi.database.impl.ASettingsGroup
extractArgumentsList, getSettingsNames
 
Methods inherited from class org.jmythapi.database.impl.ADatabaseRow
clone, decodeProperty, encodeProperty, equals, getDatabaseVersion, getProperties, getProperty, getPropertyIndex
 
Methods inherited from class org.jmythapi.impl.AData
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.IPropertyAware
getProperties, getProperty, getPropertyClass, getPropertyCount, getPropertyIndex, getPropertyMap, getPropertyValue, getPropertyValue, getPropertyValueObject, getPropertyValues, setPropertyValue, setPropertyValue, setPropertyValueObject
 
Methods inherited from interface org.jmythapi.IVersionable
getVersionNr
 

Constructor Detail

MythShutdownStatus

public MythShutdownStatus(ProtocolVersion protoVersion,
                          int dbVersion,
                          Map<String,ISetting> settings)
Method Detail

isShutdownLocked

public boolean isShutdownLocked()
Description copied from interface: IMythShutdownSettings
Specifies if shutdown was locked by the user.

This method returns true if the shutdown-lock counter is greater than 0

Specified by:
isShutdownLocked in interface IMythShutdownSettings
Returns:
true if shutdown was locked by the user.

getLockedCount

public Integer getLockedCount()
Specified by:
getLockedCount in interface IMythShutdownSettings

isShutdownEnabled

public boolean isShutdownEnabled()
Specified by:
isShutdownEnabled in interface IMythShutdownSettings

getIdleTimeout

public Integer getIdleTimeout()
Specified by:
getIdleTimeout in interface IMythShutdownSettings

getIdleWaitForRecording

public Integer getIdleWaitForRecording()
Specified by:
getIdleWaitForRecording in interface IMythShutdownSettings

getStartupBeforeRecording

public Integer getStartupBeforeRecording()
Specified by:
getStartupBeforeRecording in interface IMythShutdownSettings

getNextScheduledShutdown

public Date getNextScheduledShutdown()
Specified by:
getNextScheduledShutdown in interface IMythShutdownSettings

getNextScheduledWakeup

public Date getNextScheduledWakeup()
Specified by:
getNextScheduledWakeup in interface IMythShutdownSettings

getStartupMode

public IMythShutdownSettings.StartupMode getStartupMode(Date startupTime)
Specified by:
getStartupMode in interface IMythShutdownSettings


Copyright © 2008-2013. All Rights Reserved.