public class ClientPutDir extends ClientPutBase
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 |
ClientPutDir() |
|
ClientPutDir(FCPConnectionHandler handler,
ClientPutDirMessage message,
java.util.HashMap<java.lang.String,java.lang.Object> manifestElements,
boolean wasDiskPut,
FCPServer server) |
|
ClientPutDir(PersistentRequestClient client,
FreenetURI uri,
java.lang.String identifier,
int verbosity,
short priorityClass,
ClientRequest.Persistence persistence,
java.lang.String clientToken,
boolean getCHKOnly,
boolean dontCompress,
int maxRetries,
java.io.File dir,
java.lang.String defaultName,
boolean allowUnreadableFiles,
boolean includeHiddenFiles,
boolean global,
boolean earlyEncode,
boolean canWriteClientCache,
boolean forkOnCacheable,
int extraInsertsSingleBlock,
int extraInsertsSplitfileHeaderBlock,
boolean realTimeFlag,
byte[] overrideSplitfileCryptoKey,
NodeClientCore core)
Fproxy
Puts a disk dir
|
|
ClientPutDir(PersistentRequestClient client,
FreenetURI uri,
java.lang.String identifier,
int verbosity,
short priorityClass,
ClientRequest.Persistence persistence,
java.lang.String clientToken,
boolean getCHKOnly,
boolean dontCompress,
int maxRetries,
java.util.HashMap<java.lang.String,java.lang.Object> elements,
java.lang.String defaultName,
boolean global,
boolean earlyEncode,
boolean canWriteClientCache,
boolean forkOnCacheable,
int extraInsertsSingleBlock,
int extraInsertsSplitfileHeaderBlock,
boolean realTimeFlag,
byte[] overrideSplitfileCryptoKey,
NodeClientCore core) |
| 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() |
FreenetURI |
getFinalURI() |
int |
getNumberOfFiles() |
long |
getTotalDataSize() |
protected java.lang.String |
getTypeName() |
boolean |
hasSucceeded() |
void |
innerResume(ClientContext context) |
void |
onFailure(FetchException e,
ClientGetter state) |
void |
onFailure(InsertException e,
BaseClientPutter state)
Called on failed/canceled insert.
|
void |
onLostConnection(ClientContext context)
Lost connection
|
protected void |
onStartCompressing() |
protected void |
onStopCompressing() |
void |
onSuccess(BaseClientPutter state)
Called on successful insert.
|
void |
onSuccess(FetchResult result,
ClientGetter state) |
protected FCPMessage |
persistentTagMessage() |
void |
requestWasRemoved(ClientContext context)
Called after a RemovePersistentRequest.
|
boolean |
restart(ClientContext context,
boolean disableFilterData) |
void |
start(ClientContext context)
Start the request, if it has not already been started.
|
getFailedBlocks, getFailureMessage, getFailureReason, getFatalyFailedBlocks, getFetchedBlocks, getGeneratedURI, getMinBlocks, getSuccessFraction, getTotalBlocks, isTotalFinalized, onFetchable, onGeneratedMetadata, onGeneratedURI, receive, sendPendingMessages, setVarsRestartcancel, 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 ClientPutDir(FCPConnectionHandler handler, ClientPutDirMessage message, java.util.HashMap<java.lang.String,java.lang.Object> manifestElements, boolean wasDiskPut, FCPServer server) throws IdentifierCollisionException, java.net.MalformedURLException, TooManyFilesInsertException
IdentifierCollisionExceptionjava.net.MalformedURLExceptionTooManyFilesInsertExceptionpublic ClientPutDir(PersistentRequestClient client, FreenetURI uri, java.lang.String identifier, int verbosity, short priorityClass, ClientRequest.Persistence persistence, java.lang.String clientToken, boolean getCHKOnly, boolean dontCompress, int maxRetries, java.io.File dir, java.lang.String defaultName, boolean allowUnreadableFiles, boolean includeHiddenFiles, boolean global, boolean earlyEncode, boolean canWriteClientCache, boolean forkOnCacheable, int extraInsertsSingleBlock, int extraInsertsSplitfileHeaderBlock, boolean realTimeFlag, byte[] overrideSplitfileCryptoKey, NodeClientCore core) throws java.io.FileNotFoundException, IdentifierCollisionException, java.net.MalformedURLException, TooManyFilesInsertException
TooManyFilesInsertExceptionInsertExceptionjava.io.FileNotFoundExceptionIdentifierCollisionExceptionjava.net.MalformedURLExceptionpublic ClientPutDir(PersistentRequestClient client, FreenetURI uri, java.lang.String identifier, int verbosity, short priorityClass, ClientRequest.Persistence persistence, java.lang.String clientToken, boolean getCHKOnly, boolean dontCompress, int maxRetries, java.util.HashMap<java.lang.String,java.lang.Object> elements, java.lang.String defaultName, boolean global, boolean earlyEncode, boolean canWriteClientCache, boolean forkOnCacheable, int extraInsertsSingleBlock, int extraInsertsSplitfileHeaderBlock, boolean realTimeFlag, byte[] overrideSplitfileCryptoKey, NodeClientCore core) throws IdentifierCollisionException, java.net.MalformedURLException, TooManyFilesInsertException
IdentifierCollisionExceptionjava.net.MalformedURLExceptionTooManyFilesInsertExceptionprotected ClientPutDir()
public void start(ClientContext context)
ClientRequeststart in class ClientRequestpublic void onLostConnection(ClientContext context)
ClientRequestonLostConnection in class ClientPutBaseprotected 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 int getNumberOfFiles()
public long getTotalDataSize()
public boolean canRestart()
canRestart in class ClientRequestpublic boolean restart(ClientContext context, boolean disableFilterData)
restart in class ClientRequestpublic void onFailure(FetchException e, ClientGetter state)
public void onSuccess(FetchResult result, ClientGetter state)
public void onSuccess(BaseClientPutter state)
ClientPutCallbackonSuccess in interface ClientPutCallbackonSuccess in class ClientPutBasestate - The original BaseClientPutter object which was returned by the .insert() method which
started this insert. Can be casted to the return type of that .insert() (to obtain the Bucket).public void onFailure(InsertException e, BaseClientPutter state)
ClientPutCallbackonFailure in interface ClientPutCallbackonFailure in class ClientPutBasestate - The original BaseClientPutter object which was returned by the .insert() method which
started this insert. Can be casted to the return type of that .insert() (to obtain the Bucket).public void requestWasRemoved(ClientContext context)
ClientRequestrequestWasRemoved in class ClientPutBaseprotected 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