Notification of datagram transfer progress.
Modifiers | Name | Description |
---|---|---|
protected int |
id |
|
protected boolean |
incoming |
|
protected int |
peer |
|
protected int |
total |
|
protected int |
transferred |
Type | Name and description |
---|---|
int |
iD |
boolean |
incoming |
int |
peer |
int |
total |
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 |
setPerformative, toString, getSender, setMessageID, getSentAt, setRecipient, getInReplyTo, setSentAt, setSender, getPerformative, getRecipient, getMessageID, setInReplyTo, wait, wait, wait, equals, 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-21, Acoustic Research Laboratory, National University of Singapore, and Subnero Pte Ltd