org.jmythapi.protocol.response.impl
Class StorageGroupFileList
java.lang.Object
org.jmythapi.impl.AData<E>
org.jmythapi.protocol.response.impl.AMythResponse<StorageGroupFileList.Props>
org.jmythapi.protocol.response.impl.StorageGroupFileList
- All Implemented Interfaces:
- Cloneable, Iterable<IStorageGroupFile>, IPropertyAware<StorageGroupFileList.Props>, IVersionable, ISendable, IMythResponse<StorageGroupFileList.Props>, IStorageGroupFileList
public class StorageGroupFileList
- extends AMythResponse<StorageGroupFileList.Props>
- implements IStorageGroupFileList
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 |
StorageGroupFileList
public StorageGroupFileList(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<StorageGroupFileList.Props>
- Parameters:
responseArgs
- the response-argument-list
- Throws:
IllegalArgumentException
- if expected arguments are missing.
asList
public List<IStorageGroupFile> asList()
- Description copied from interface:
IStorageGroupFileList
- Gets a list of files stored in the storage group.
- Specified by:
asList
in interface IStorageGroupFileList
- Returns:
- a list of files
iterator
public Iterator<IStorageGroupFile> iterator()
- Specified by:
iterator
in interface Iterable<IStorageGroupFile>
size
public int size()
- Description copied from interface:
IStorageGroupFileList
- Gets the amount of files stored in the storage group.
- Specified by:
size
in interface IStorageGroupFileList
- Returns:
- the amount of files of the storage group
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 AData<StorageGroupFileList.Props>
Copyright © 2008-2013. All Rights Reserved.