org.jmythapi.protocol.events.impl
Class SystemEvent
java.lang.Object
org.jmythapi.impl.AData<E>
org.jmythapi.protocol.response.impl.AMythResponse<E>
org.jmythapi.protocol.events.impl.AMythEvent<ISystemEvent.Props>
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
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 interface org.jmythapi.IPropertyAware |
getProperties, getProperty, getPropertyClass, getPropertyCount, getPropertyIndex, getPropertyMap, getPropertyValue, getPropertyValue, getPropertyValueObject, getPropertyValues, setPropertyValue, setPropertyValue, setPropertyValueObject |
SystemEvent
public SystemEvent(IMythPacket packet)
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.