public class ClientPut extends ClientPutBase
| Modifier and Type | Class and Description |
|---|---|
static class |
ClientPut.COMPRESS_STATE |
ClientPutBase.UploadFromClientRequest.PersistenceFILE_HASH, generatedURI, progressMessage, publicURI, putFailedMessage, SALT, succeededclient, clientName, clientToken, completionTime, finished, global, identifier, lowLevelClient, origHandler, persistence, priorityClass, realTime, started, startupTime, uri, verbosity| Modifier | Constructor and Description |
|---|---|
protected |
ClientPut() |
|
ClientPut(FCPConnectionHandler handler,
ClientPutMessage message,
FCPServer server) |
|
ClientPut(PersistentRequestClient globalClient,
FreenetURI uri,
java.lang.String identifier,
int verbosity,
java.lang.String charset,
short priorityClass,
ClientRequest.Persistence persistence,
java.lang.String clientToken,
boolean getCHKOnly,
boolean dontCompress,
int maxRetries,
ClientPutBase.UploadFrom uploadFromType,
java.io.File origFilename,
java.lang.String contentType,
RandomAccessBucket data,
FreenetURI redirectTarget,
java.lang.String targetFilename,
boolean earlyEncode,
boolean canWriteClientCache,
boolean forkOnCacheable,
int extraInsertsSingleBlock,
int extraInsertsSplitfileHeaderBlock,
boolean realTimeFlag,
InsertContext.CompatibilityMode compatMode,
byte[] overrideSplitfileKey,
boolean binaryBlob,
NodeClientCore core)
Fproxy
Creates a new persistent insert.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canRestart() |
protected void |
freeData()
Free cached data bucket(s)
|
boolean |
fullyResumed()
Return true if we resumed the original fetch from stored data (usually a file for a
splitfile download), rather than having to restart it (which happens in most other cases
when we resume).
|
protected ClientRequester |
getClientRequest() |
long |
getDataSize() |
FreenetURI |
getFinalURI() |
java.lang.String |
getMIMEType() |
java.io.File |
getOrigFilename() |
protected java.lang.String |
getTypeName() |
boolean |
hasSucceeded() |
void |
innerResume(ClientContext context) |
ClientPut.COMPRESS_STATE |
isCompressing()
Probably not meaningful for ClientPutDir's
|
boolean |
isDirect() |
protected void |
onStartCompressing() |
protected void |
onStopCompressing() |
protected FCPMessage |
persistentTagMessage() |
void |
requestWasRemoved(ClientContext context)
Called after a RemovePersistentRequest.
|
boolean |
restart(ClientContext context,
boolean disableFilterData) |
void |
setVarsRestart() |
void |
start(ClientContext context)
Start the request, if it has not already been started.
|
getFailedBlocks, getFailureMessage, getFailureReason, getFatalyFailedBlocks, getFetchedBlocks, getGeneratedURI, getMinBlocks, getSuccessFraction, getTotalBlocks, isTotalFinalized, onFailure, onFetchable, onGeneratedMetadata, onGeneratedURI, onLostConnection, onSuccess, receive, sendPendingMessagescancel, dropped, finish, getClient, getClientDetail, getIdentifier, getLastActivity, getPriority, getRequestClient, getRequestIdentifier, hasFinished, hashCode, isGlobalQueue, isPersistent, isPersistentForever, isStarted, modifyRequest, onResume, onShutdown, restartAsync, restartFromclone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetRequestClient, onResumepublic ClientPut(PersistentRequestClient globalClient, FreenetURI uri, java.lang.String identifier, int verbosity, java.lang.String charset, short priorityClass, ClientRequest.Persistence persistence, java.lang.String clientToken, boolean getCHKOnly, boolean dontCompress, int maxRetries, ClientPutBase.UploadFrom uploadFromType, java.io.File origFilename, java.lang.String contentType, RandomAccessBucket data, FreenetURI redirectTarget, java.lang.String targetFilename, boolean earlyEncode, boolean canWriteClientCache, boolean forkOnCacheable, int extraInsertsSingleBlock, int extraInsertsSplitfileHeaderBlock, boolean realTimeFlag, InsertContext.CompatibilityMode compatMode, byte[] overrideSplitfileKey, boolean binaryBlob, NodeClientCore core) throws IdentifierCollisionException, NotAllowedException, MetadataUnresolvedException, java.io.IOException
uri - The URI to insert data toidentifier - The identifier of the insertverbosity - The verbosity bitmaskcharset - TODOpriorityClass - The priority for this insertpersistence - The persistence type of this insertclientToken - The client token of this insertgetCHKOnly - Whether only the resulting CHK is requesteddontCompress - Whether the file should not be compressedmaxRetries - The maximum number of retriesuploadFromType - Where the file is uploaded fromorigFilename - The original filenamecontentType - The content type of the datadata - The data (may be null if
uploadFromType is UPLOAD_FROM_REDIRECT)redirectTarget - The URI to redirect to (if uploadFromType is
UPLOAD_FROM_REDIRECT)handler - The FCP connection handlerglobal - Whether this insert appears on the global queueIdentifierCollisionExceptionNotAllowedExceptionMetadataUnresolvedExceptionjava.io.IOExceptionInsertExceptionpublic ClientPut(FCPConnectionHandler handler, ClientPutMessage message, FCPServer server) throws IdentifierCollisionException, MessageInvalidException, java.io.IOException
IdentifierCollisionExceptionMessageInvalidExceptionjava.io.IOExceptionprotected ClientPut()
public void start(ClientContext context)
ClientRequeststart in class ClientRequestprotected void freeData()
ClientRequestfreeData in class ClientRequestprotected ClientRequester getClientRequest()
getClientRequest in class ClientRequestprotected FCPMessage persistentTagMessage()
persistentTagMessage in class ClientPutBaseprotected java.lang.String getTypeName()
getTypeName in class ClientPutBasepublic boolean hasSucceeded()
hasSucceeded in class ClientRequestpublic FreenetURI getFinalURI()
public boolean isDirect()
public java.io.File getOrigFilename()
public long getDataSize()
public java.lang.String getMIMEType()
public boolean canRestart()
canRestart in class ClientRequestpublic boolean restart(ClientContext context, boolean disableFilterData)
restart in class ClientRequestpublic void setVarsRestart()
setVarsRestart in class ClientPutBasepublic void requestWasRemoved(ClientContext context)
ClientRequestrequestWasRemoved in class ClientPutBasepublic ClientPut.COMPRESS_STATE isCompressing()
protected void onStartCompressing()
onStartCompressing in class ClientPutBaseprotected void onStopCompressing()
onStopCompressing in class ClientPutBasepublic void innerResume(ClientContext context) throws ResumeFailedException
innerResume in class ClientRequestResumeFailedExceptionpublic boolean fullyResumed()
ClientRequestfullyResumed in class ClientRequest