|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.tranche.add.AddFileToolEvent
public class AddFileToolEvent
| Field Summary | |
|---|---|
static short |
ACTION_FAILED
Code for a failure action. |
static short |
ACTION_FINISHED
Code for a finished action. |
static short |
ACTION_STARTED
Code for a started action. |
static short |
ACTION_STARTING
Code for a starting action. |
static short |
ACTION_TRYING
Code for a trying action. |
static short |
ACTION_UPLOADED
Code for a uploaded action. |
static int |
TYPE_DATA
Code for a data chunk object. |
static int |
TYPE_DIRECTORY
Code for a directory object. |
static int |
TYPE_FILE
Code for a file object. |
static int |
TYPE_METADATA
Code for a meta data chunk object. |
| Constructor Summary | |
|---|---|
AddFileToolEvent(short action,
int type,
java.io.File file,
java.lang.String fileName,
BigHash fileHash,
BigHash chunkHash,
java.lang.String serverHostName)
|
|
| Method Summary | |
|---|---|
short |
getAction()
The action that this event is reporting. |
java.lang.String |
getActionString()
The human-readable version of the action that this event is reporting. |
BigHash |
getChunkHash()
If this event references a data chunk, this returns that value. |
java.io.File |
getFile()
If this event references a file, this returns the file. |
BigHash |
getFileHash()
|
java.lang.String |
getFileName()
If this event references a file, this returns the name of that file. |
java.lang.String |
getServer()
|
long |
getTimestamp()
The UNIX timestamp of when this object was created. |
int |
getType()
The type of object that this event represents. |
java.lang.String |
getTypeString()
The human-readable version of the type of object that this event represents. |
static java.lang.String |
staticGetActionString(short action)
The human-readable version of the given action value.. |
static java.lang.String |
staticGetTypeString(int type)
The human-readable version of the type of object the given type value represents. |
java.lang.String |
toString()
Printout of this object's information. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int TYPE_METADATA
Code for a meta data chunk object.
public static final int TYPE_DATA
Code for a data chunk object.
public static final int TYPE_FILE
Code for a file object.
public static final int TYPE_DIRECTORY
Code for a directory object.
public static final short ACTION_STARTING
Code for a starting action.
public static final short ACTION_STARTED
Code for a started action.
public static final short ACTION_TRYING
Code for a trying action.
public static final short ACTION_UPLOADED
Code for a uploaded action.
public static final short ACTION_FINISHED
Code for a finished action.
public static final short ACTION_FAILED
Code for a failure action.
| Constructor Detail |
|---|
public AddFileToolEvent(short action,
int type,
java.io.File file,
java.lang.String fileName,
BigHash fileHash,
BigHash chunkHash,
java.lang.String serverHostName)
action - type - file - fileName - fileHash - chunkHash - serverHostName - | Method Detail |
|---|
public java.io.File getFile()
If this event references a file, this returns the file. Otherwise, null.
public java.lang.String getFileName()
If this event references a file, this returns the name of that file. Otherwise, null.
public BigHash getFileHash()
public BigHash getChunkHash()
If this event references a data chunk, this returns that value. Otherwise, null.
public java.lang.String getServer()
public int getType()
The type of object that this event represents.
public java.lang.String getTypeString()
The human-readable version of the type of object that this event represents.
public static java.lang.String staticGetTypeString(int type)
The human-readable version of the type of object the given type value represents.
type -
public short getAction()
The action that this event is reporting.
public java.lang.String getActionString()
The human-readable version of the action that this event is reporting.
public static java.lang.String staticGetActionString(short action)
The human-readable version of the given action value..
action -
public long getTimestamp()
The UNIX timestamp of when this object was created.
public java.lang.String toString()
Printout of this object's information.
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||