Notification of data transfer progress.
| Modifiers | Name | Description |
|---|---|---|
protected java.lang.String |
filename |
|
protected boolean |
incoming |
|
protected int |
peer |
|
protected long |
total |
|
protected long |
transferred |
| Type | Name and description |
|---|---|
java.lang.String |
filename |
boolean |
incoming |
int |
peer |
long |
total |
long |
transferred |
| Constructor and description |
|---|
ProgressNtf
() |
ProgressNtf
(org.arl.fjage.Message request)Create a progress notification for a specified request. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
java.lang.String |
getFilename()Gets the name of the file being transferred. |
|
int |
getPeer()Gets the peer node address. |
|
long |
getTotal()Gets the total number of bytes of data. |
|
long |
getTransferred()Gets the number of bytes transferred. |
|
boolean |
isIncoming()Checks if the data transfer is incoming. |
|
void |
setFilename(java.lang.String filename)Sets the name of the file being transferred. |
|
void |
setIncoming(boolean incoming)Sets the data transfer direction. |
|
void |
setPeer(int peer)Sets peer node address. |
|
void |
setTotal(long total)Sets total number of bytes of data. |
|
void |
setTransferred(long transferred)Sets number of bytes transferred. |
|
java.lang.String |
toString() |
| Methods inherited from class | Name |
|---|---|
class org.arl.fjage.Message |
org.arl.fjage.Message#toString(), org.arl.fjage.Message#setPerformative(org.arl.fjage.Performative), org.arl.fjage.Message#getPerformative(), org.arl.fjage.Message#setRecipient(org.arl.fjage.AgentID), org.arl.fjage.Message#getRecipient(), org.arl.fjage.Message#setSender(org.arl.fjage.AgentID), org.arl.fjage.Message#getSender(), org.arl.fjage.Message#setMessageID(java.lang.String), org.arl.fjage.Message#getMessageID(), org.arl.fjage.Message#setInReplyTo(java.lang.String), org.arl.fjage.Message#getInReplyTo(), org.arl.fjage.Message#setSentAt(long), org.arl.fjage.Message#getSentAt(), org.arl.fjage.Message#getJsonCache(), org.arl.fjage.Message#setJsonCache(java.lang.String), org.arl.fjage.Message#wait(long, int), org.arl.fjage.Message#wait(long), org.arl.fjage.Message#wait(), org.arl.fjage.Message#equals(java.lang.Object), org.arl.fjage.Message#hashCode(), org.arl.fjage.Message#getClass(), org.arl.fjage.Message#notify(), org.arl.fjage.Message#notifyAll() |
Create a progress notification for a specified request.
request - original requestGets the name of the file being transferred.
Gets the peer node address.
Gets the total number of bytes of data.
Gets the number of bytes transferred.
Checks if the data transfer is incoming.
Sets the name of the file being transferred.
filename - name of the fileSets the data transfer direction.
incoming - transfer direction (incoming = true, outgoing = false)Sets peer node address.
peer - node addressSets total number of bytes of data.
total - number of bytes of dataSets number of bytes transferred.
transferred - number of bytes transferredGroovy Documentation