org.jmythapi.protocol.events.impl
Class ShutdownCountdown

java.lang.Object
  extended by org.jmythapi.impl.AData<E>
      extended by org.jmythapi.protocol.response.impl.AMythResponse<E>
          extended by org.jmythapi.protocol.events.impl.AMythEvent<IShutdownCountdown.Props>
              extended by org.jmythapi.protocol.events.impl.ShutdownCountdown
All Implemented Interfaces:
Cloneable, IPropertyAware<IShutdownCountdown.Props>, IVersionable, IMythEvent<IShutdownCountdown.Props>, IShutdownCountdown, ISendable, IMythResponse<IShutdownCountdown.Props>

public class ShutdownCountdown
extends AMythEvent<IShutdownCountdown.Props>
implements IShutdownCountdown


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jmythapi.protocol.events.IShutdownCountdown
IShutdownCountdown.Props
 
Field Summary
 
Fields inherited from class org.jmythapi.impl.AData
logger, propsClass, protoVersion, respArgs
 
Constructor Summary
ShutdownCountdown(IMythPacket packet)
           
 
Method Summary
 Integer getSecondsTillShutdown()
          Gets the amount of seconds left till shutdown.
 Date getShutdownTime()
          Gets the scheduled shutdown time.
 
Methods inherited from class org.jmythapi.protocol.events.impl.AMythEvent
decodeProperty, encodeProperty, extractArgumentsList, extractEventName, getEventName, getPacket, toString
 
Methods inherited from class org.jmythapi.protocol.response.impl.AMythResponse
checkSize, getExpectedSize, getProperties, getProperty, getPropertyIndex
 
Methods inherited from class org.jmythapi.impl.AData
clone, equals, getPropertyClass, getPropertyCount, getPropertyMap, getPropertyValue, getPropertyValue, getPropertyValueObject, getPropertyValueObject, getPropertyValues, getVersionNr, hashCode, init, postProcessArguments, setPropertyValue, setPropertyValue, setPropertyValueObject
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jmythapi.protocol.events.IMythEvent
getEventName
 
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
 
Methods inherited from interface org.jmythapi.protocol.ISendable
getPacket
 

Constructor Detail

ShutdownCountdown

public ShutdownCountdown(IMythPacket packet)
Method Detail

getSecondsTillShutdown

public Integer getSecondsTillShutdown()
Description copied from interface: IShutdownCountdown
Gets the amount of seconds left till shutdown.

Specified by:
getSecondsTillShutdown in interface IShutdownCountdown
Returns:
the amount of seconds till shutdown.

getShutdownTime

public Date getShutdownTime()
Description copied from interface: IShutdownCountdown
Gets the scheduled shutdown time.

Specified by:
getShutdownTime in interface IShutdownCountdown
Returns:
the scheduled shutdown time.


Copyright © 2008-2013. All Rights Reserved.