org.jmythapi.protocol.events.impl
Class SystemEvent

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<ISystemEvent.Props>
              extended by org.jmythapi.protocol.events.impl.SystemEvent
All Implemented Interfaces:
Cloneable, IPropertyAware<ISystemEvent.Props>, IVersionable, IMythEvent<ISystemEvent.Props>, ISystemEvent, ISendable, IMythResponse<ISystemEvent.Props>

public class SystemEvent
extends AMythEvent<ISystemEvent.Props>
implements ISystemEvent


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jmythapi.protocol.events.ISystemEvent
ISystemEvent.Props
 
Field Summary
 
Fields inherited from class org.jmythapi.impl.AData
logger, propsClass, protoVersion, respArgs
 
Constructor Summary
SystemEvent(IMythPacket packet)
           
 
Method Summary
protected  void checkSize(List<String> responseArgs)
          A function to check if the given response-argument-liste contains all expected arguments.
 String getEventType()
           
 Map<String,String> getSystemProperties()
           
 String toString()
          Returns the content of this data object as a formatted string.
 
Methods inherited from class org.jmythapi.protocol.events.impl.AMythEvent
decodeProperty, encodeProperty, extractArgumentsList, extractEventName, getEventName, getPacket
 
Methods inherited from class org.jmythapi.protocol.response.impl.AMythResponse
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

SystemEvent

public SystemEvent(IMythPacket packet)
Method Detail

checkSize

protected void checkSize(List<String> responseArgs)
                  throws IllegalArgumentException
Description copied from class: AMythResponse

A function to check if the given response-argument-liste contains all expected arguments.

The expected argument-list-size is calculated using #getExpectedSize(ArrayList).

Overrides:
checkSize in class AMythResponse<ISystemEvent.Props>
Parameters:
responseArgs - the response-argument-list
Throws:
IllegalArgumentException - if expected arguments are missing.

getEventType

public String getEventType()
Specified by:
getEventType in interface ISystemEvent

getSystemProperties

public Map<String,String> getSystemProperties()
Specified by:
getSystemProperties in interface ISystemEvent

toString

public String toString()
Description copied from class: AData

Returns the content of this data object as a formatted string.

E.g.
 <0>TOTAL_RAM_MB: 1002 | <1>FREE_RAM_MB: 474 | <2>TOTAL_VM_MB: 853 | <3>FREE_VM_MB: 853
 

Overrides:
toString in class AMythEvent<ISystemEvent.Props>


Copyright © 2008-2013. All Rights Reserved.