Notification of datagram transfer progress.
Modifiers | Name | Description |
---|---|---|
protected int |
id |
|
protected boolean |
incoming |
|
protected int |
peer |
|
protected int |
total |
|
protected int |
transferred |
Constructor and description |
---|
DatagramProgressNtf
() |
DatagramProgressNtf
(Message request) Create a progress notification for a specified datagram. |
Type Params | Return Type | Name and description |
---|---|---|
|
int |
getID() Gets the transfer ID. |
|
int |
getPeer() Gets the peer node address. |
|
int |
getTotal() Gets the total number of bytes in datagram. |
|
int |
getTransferred() Gets the number of bytes transferred. |
|
boolean |
isIncoming() Checks if the datagram transfer is incoming. |
|
void |
setID(int id) Sets transfer ID. |
|
void |
setIncoming(boolean incoming) Sets the datagram transfer direction. |
|
void |
setPeer(int peer) Sets peer node address. |
|
void |
setTotal(int total) Sets total number of bytes in datagram. |
|
void |
setTransferred(int transferred) Sets number of bytes transferred. |
|
String |
toString() |
Methods inherited from class | Name |
---|---|
class Message |
toString, setRecipient, setPerformative, getPerformative, getRecipient, setSender, getSender, setMessageID, getMessageID, setInReplyTo, getInReplyTo, wait, wait, wait, equals, hashCode, getClass, notify, notifyAll |
class Object |
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Create a progress notification for a specified datagram.
request
- original datagram requestGets the transfer ID.
Gets the peer node address.
Gets the total number of bytes in datagram.
Gets the number of bytes transferred.
Checks if the datagram transfer is incoming.
Sets transfer ID.
id
- transfer IDSets the datagram transfer direction.
incoming
- transfer direction (incoming = true, outgoing = false)Sets peer node address.
peer
- node addressSets total number of bytes in datagram.
total
- number of bytes in datagramSets number of bytes transferred.
transferred
- number of bytes transferredCopyright 2013-19, Acoustic Research Laboratory, National University of Singapore, and Subnero Pte Ltd