com.meiglobal.ebds.api.event
Class DownloadProgressEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.meiglobal.ebds.api.event.AcceptorEvent
          extended by com.meiglobal.ebds.api.event.DownloadProgressEvent
All Implemented Interfaces:
java.io.Serializable

public class DownloadProgressEvent
extends AcceptorEvent

Event generated when the device is downloading the firmware, the event contains the packet number sent.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.meiglobal.ebds.api.event.AcceptorEvent
description
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
DownloadProgressEvent(java.lang.Object source, int packetNumber)
          Constructor
 
Method Summary
 int getPacketNumber()
          Returns the current packet number that was received successfuly.
 
Methods inherited from class com.meiglobal.ebds.api.event.AcceptorEvent
getDescription
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DownloadProgressEvent

public DownloadProgressEvent(java.lang.Object source,
                             int packetNumber)
Constructor

Parameters:
source - Event source object.
packetNumber - The last successfully sent packet number.
Method Detail

getPacketNumber

public int getPacketNumber()
Returns the current packet number that was received successfuly.

Returns:
The last successful packet number.