public abstract class RequestStatus
extends java.lang.Object
implements java.lang.Cloneable
Modifier and Type | Method and Description |
---|---|
RequestStatus |
clone() |
abstract long |
getDataSize() |
int |
getFailedBlocks() |
abstract java.lang.String |
getFailureReason(boolean longDescription) |
int |
getFatalyFailedBlocks() |
int |
getFetchedBlocks() |
java.lang.String |
getIdentifier() |
long |
getLastActivity()
Deprecated.
Use
getLastSuccess() instead. |
java.util.Date |
getLastFailure() |
java.util.Date |
getLastSuccess() |
int |
getMinBlocks() |
abstract java.lang.String |
getPreferredFilename()
Get the preferred filename, from the URI, the filename, etc.
|
java.lang.String |
getPreferredFilenameSafe()
Get the preferred filename, from the URI or the filename etc.
|
short |
getPriority() |
int |
getTotalBlocks() |
abstract FreenetURI |
getURI()
Get the original URI for a fetch or the final URI for an insert.
|
boolean |
hasFinished() |
boolean |
hasSucceeded() |
boolean |
isPersistent() |
boolean |
isPersistentForever() |
boolean |
isStarted() |
boolean |
isTotalFinalized() |
void |
setPriority(short newPriority) |
void |
setStarted(boolean started) |
void |
updateStatus(SplitfileProgressEvent event) |
public boolean hasSucceeded()
public boolean hasFinished()
public short getPriority()
public java.lang.String getIdentifier()
public int getTotalBlocks()
public boolean isTotalFinalized()
public int getMinBlocks()
public int getFetchedBlocks()
@Deprecated public long getLastActivity()
getLastSuccess()
instead.public java.util.Date getLastSuccess()
public java.util.Date getLastFailure()
public abstract FreenetURI getURI()
public abstract long getDataSize()
public boolean isPersistentForever()
public boolean isPersistent()
public int getFatalyFailedBlocks()
public int getFailedBlocks()
public boolean isStarted()
public abstract java.lang.String getFailureReason(boolean longDescription)
public void updateStatus(SplitfileProgressEvent event)
public void setPriority(short newPriority)
public void setStarted(boolean started)
public abstract java.lang.String getPreferredFilename()
public java.lang.String getPreferredFilenameSafe()
public RequestStatus clone()
clone
in class java.lang.Object