|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.tranche.servers.ServerEvent
org.tranche.servers.ServerMessageEvent
org.tranche.servers.ServerMessageUpEvent
public class ServerMessageUpEvent
Representation of a message being sent to a server.
| Field Summary | |
|---|---|
static int |
TYPE_COMPLETED
Represents a completed upload message |
static int |
TYPE_CREATED
Represents a created upload message. |
static int |
TYPE_FAILED
Represents a failed upload message. |
static int |
TYPE_STARTED
Represents a started upload message |
| Fields inherited from class org.tranche.servers.ServerEvent |
|---|
AUTO_BAN, AUTO_UNBAN, CALLBACK, CONNECT, MESSAGE, USER_BAN, USER_UNBAN |
| Constructor Summary | |
|---|---|
ServerMessageUpEvent(java.lang.String url,
long callbackId,
int type)
|
|
ServerMessageUpEvent(java.lang.String url,
long callbackId,
int type,
long bytesToUpload)
|
|
ServerMessageUpEvent(java.lang.String url,
long callbackId,
int type,
long bytesToUpload,
long bytesUploaded)
|
|
| Method Summary | |
|---|---|
long |
getBytesToUpload()
Returns the number of bytes expected to be uploaded. |
long |
getBytesUploaded()
Returns the number of bytes that have been uploaded. |
int |
getType()
Returns the type of action this event represents. |
java.lang.String |
getTypeString()
Returns the human-readable type of action this event represents. |
java.lang.String |
toString()
Gets a human-readable printout of what this event represents. |
| Methods inherited from class org.tranche.servers.ServerMessageEvent |
|---|
getCallbackId |
| Methods inherited from class org.tranche.servers.ServerEvent |
|---|
getTimestamp, getUrl |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int TYPE_CREATED
Represents a created upload message.
public static final int TYPE_STARTED
Represents a started upload message
public static final int TYPE_COMPLETED
Represents a completed upload message
public static final int TYPE_FAILED
Represents a failed upload message.
| Constructor Detail |
|---|
public ServerMessageUpEvent(java.lang.String url,
long callbackId,
int type)
url - callbackId - type -
public ServerMessageUpEvent(java.lang.String url,
long callbackId,
int type,
long bytesToUpload)
url - callbackId - type - bytesToUpload -
public ServerMessageUpEvent(java.lang.String url,
long callbackId,
int type,
long bytesToUpload,
long bytesUploaded)
url - callbackId - type - bytesToUpload - bytesUploaded - | Method Detail |
|---|
public int getType()
Returns the type of action this event represents.
getType in class ServerEventpublic java.lang.String getTypeString()
Returns the human-readable type of action this event represents.
getTypeString in class ServerEventpublic long getBytesToUpload()
Returns the number of bytes expected to be uploaded.
public long getBytesUploaded()
Returns the number of bytes that have been uploaded.
public java.lang.String toString()
Gets a human-readable printout of what this event represents.
toString in class ServerMessageEvent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||