|
SmartSync 1.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--li.netcat.smartsync.Task
Immutable class, that represents an operation. Each task is associated with a verb, a file name and a transfer size.
The Task
object is only intended for monitoring purposes.
Field Summary | |
static java.lang.String |
CREATE_VERB
This verb specifies a task that creates a new file in the work directory. |
static java.lang.String |
DELETE_VERB
This verb specifies a task that deletes a file from the work directory. |
static java.lang.String |
KEEP_VERB
This verb specifies a task that copies a file from the archive directory to the work directory. |
static java.lang.String |
RESUMECREATE_VERB
This verb specifies a task that resumes the creation of a new file in the work directory. |
static java.lang.String |
RESUMEKEEP_VERB
This verb specifies a task that resumes the copy of a file from the archive directory to the work directory. |
Method Summary | |
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getFullName()
Returns the full name of the associated file (with path). |
java.lang.String |
getName()
Returns the name of the associated file without the path. |
java.lang.String |
getPath()
Returns the path of the associated file. |
long |
getTransferLength()
Returns the number of bytes that must be transferred to complete the task. |
java.lang.String |
getVerb()
Returns the verb of the task, i.e. one of the constants *_VERB .
|
int |
hashCode()
|
boolean |
isTransferTask()
Returns true , if this task is a transfer task, i.e. data of the file content must be transferred to complete the operation. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String KEEP_VERB
public static final java.lang.String RESUMEKEEP_VERB
public static final java.lang.String CREATE_VERB
public static final java.lang.String RESUMECREATE_VERB
public static final java.lang.String DELETE_VERB
Method Detail |
public java.lang.String getVerb()
*_VERB
.
Be aware that further releases may extend the vocabulary.null
.public java.lang.String getPath()
public java.lang.String getName()
public java.lang.String getFullName()
public long getTransferLength()
public boolean isTransferTask()
true
, if this task is a transfer task, i.e. data of the file content must be transferred to complete the operation.public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
SmartSync 1.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |