org.jmythapi.protocol.events.impl
Class DownloadFileUpdate
java.lang.Object
org.jmythapi.impl.AData<E>
org.jmythapi.protocol.response.impl.AMythResponse<E>
org.jmythapi.protocol.events.impl.AMythEvent<IDownloadFileUpdate.Props>
org.jmythapi.protocol.events.impl.DownloadFileUpdate
- All Implemented Interfaces:
- Cloneable, IPropertyAware<IDownloadFileUpdate.Props>, IVersionable, IDownloadFile<IDownloadFileUpdate.Props>, IDownloadFileUpdate, IMythEvent<IDownloadFileUpdate.Props>, ISendable, IMythResponse<IDownloadFileUpdate.Props>
public class DownloadFileUpdate
- extends AMythEvent<IDownloadFileUpdate.Props>
- implements IDownloadFileUpdate
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 |
DownloadFileUpdate
public DownloadFileUpdate(ProtocolVersion protoVersion,
List<String> eventArguments)
getBytesReceived
public Long getBytesReceived()
- Description copied from interface:
IDownloadFileUpdate
- Gets the currently downloaded amount of bytes.
- Specified by:
getBytesReceived
in interface IDownloadFileUpdate
- Returns:
- the downloaded amount of bytes
- See Also:
IDownloadFileUpdate.Props.BYTES_RECEIVED
getBytesTotal
public Long getBytesTotal()
- Description copied from interface:
IDownloadFile
- Gets the total size of the file in bytes.
- Specified by:
getBytesTotal
in interface IDownloadFile<IDownloadFileUpdate.Props>
- Returns:
- the total size of the file in bytes
getReceivedPercent
public Float getReceivedPercent()
- Description copied from interface:
IDownloadFile
- Returns how many percent of the remote file were downloaded so far.
- Specified by:
getReceivedPercent
in interface IDownloadFile<IDownloadFileUpdate.Props>
- Returns:
- how many percent of the file were downloaded so far.
getLocalURI
public URI getLocalURI()
- Description copied from interface:
IDownloadFile
- Gets the URI to the local copy of the remote file, stored into a backend storage-group
- Specified by:
getLocalURI
in interface IDownloadFile<IDownloadFileUpdate.Props>
- Returns:
- the URI of the local file stored in a storage group
getRemoteURI
public URI getRemoteURI()
- Description copied from interface:
IDownloadFile
- Gets the URI to the remote file, which is downloaded by the backend.
- Specified by:
getRemoteURI
in interface IDownloadFile<IDownloadFileUpdate.Props>
- Returns:
- the URI of a remote file
Copyright © 2008-2013. All Rights Reserved.