org.jmythapi.protocol.events.impl
Class DownloadFileUpdate

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<IDownloadFileUpdate.Props>
              extended by 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


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jmythapi.protocol.events.IDownloadFileUpdate
IDownloadFileUpdate.Props
 
Field Summary
 
Fields inherited from class org.jmythapi.impl.AData
logger, propsClass, protoVersion, respArgs
 
Constructor Summary
DownloadFileUpdate(ProtocolVersion protoVersion, List<String> eventArguments)
           
 
Method Summary
 Long getBytesReceived()
          Gets the currently downloaded amount of bytes.
 Long getBytesTotal()
          Gets the total size of the file in bytes.
 URI getLocalURI()
          Gets the URI to the local copy of the remote file, stored into a backend storage-group
 Float getReceivedPercent()
          Returns how many percent of the remote file were downloaded so far.
 URI getRemoteURI()
          Gets the URI to the remote file, which is downloaded by the backend.
 
Methods inherited from class org.jmythapi.protocol.events.impl.AMythEvent
decodeProperty, encodeProperty, extractArgumentsList, extractEventName, getEventName, getPacket, toString
 
Methods inherited from class org.jmythapi.protocol.response.impl.AMythResponse
checkSize, 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

DownloadFileUpdate

public DownloadFileUpdate(ProtocolVersion protoVersion,
                          List<String> eventArguments)
Method Detail

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.