org.jmythapi.protocol.response.impl
Class Load

java.lang.Object
  extended by org.jmythapi.impl.AData<E>
      extended by org.jmythapi.protocol.response.impl.AMythResponse<ILoad.Props>
          extended by org.jmythapi.protocol.response.impl.Load
All Implemented Interfaces:
Cloneable, IPropertyAware<ILoad.Props>, IVersionable, ISendable, ILoad, IMythResponse<ILoad.Props>

public class Load
extends AMythResponse<ILoad.Props>
implements ILoad


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jmythapi.protocol.response.ILoad
ILoad.Props
 
Field Summary
 
Fields inherited from class org.jmythapi.impl.AData
logger, propsClass, protoVersion, respArgs
 
Constructor Summary
Load(IMythPacket packet)
           
Load(ProtocolVersion protoVersion)
           
 
Method Summary
 double getCurrentLoad()
          Gets the current backend load.
 double getLast15MinsLoad()
          Gets the backend load average of the last 15 minutes.
 double getLast5MinsLoad()
          Get the backend load average of the last 5 minutes.
 
Methods inherited from class org.jmythapi.protocol.response.impl.AMythResponse
checkSize, decodeProperty, encodeProperty, getExpectedSize, getPacket, 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, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
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
 

Constructor Detail

Load

public Load(IMythPacket packet)

Load

public Load(ProtocolVersion protoVersion)
Method Detail

getCurrentLoad

public double getCurrentLoad()
Description copied from interface: ILoad
Gets the current backend load.

Specified by:
getCurrentLoad in interface ILoad
Returns:
the current backend load

getLast5MinsLoad

public double getLast5MinsLoad()
Description copied from interface: ILoad
Get the backend load average of the last 5 minutes.

Specified by:
getLast5MinsLoad in interface ILoad
Returns:
the load average of the last 5 minutes

getLast15MinsLoad

public double getLast15MinsLoad()
Description copied from interface: ILoad
Gets the backend load average of the last 15 minutes.

Specified by:
getLast15MinsLoad in interface ILoad
Returns:
the load average of the last 15 minutes


Copyright © 2008-2013. All Rights Reserved.