public class ClientPutDir extends ClientPutBase
ClientPutBase.UploadFrom
ClientRequest.Persistence
FILE_HASH, generatedURI, progressMessage, publicURI, putFailedMessage, SALT, succeeded
client, 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, setVarsRestart
cancel, dropped, finish, getClient, getClientDetail, getIdentifier, getLastActivity, getPriority, getRequestClient, getRequestIdentifier, hasFinished, hashCode, isGlobalQueue, isPersistent, isPersistentForever, isStarted, modifyRequest, onResume, onShutdown, restartAsync, restartFrom
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getRequestClient, onResume
public 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
IdentifierCollisionException
java.net.MalformedURLException
TooManyFilesInsertException
public 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
TooManyFilesInsertException
InsertException
java.io.FileNotFoundException
IdentifierCollisionException
java.net.MalformedURLException
public 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
IdentifierCollisionException
java.net.MalformedURLException
TooManyFilesInsertException
protected ClientPutDir()
public void start(ClientContext context)
ClientRequest
start
in class ClientRequest
public void onLostConnection(ClientContext context)
ClientRequest
onLostConnection
in class ClientPutBase
protected void freeData()
ClientRequest
freeData
in class ClientRequest
protected ClientRequester getClientRequest()
getClientRequest
in class ClientRequest
protected FCPMessage persistentTagMessage()
persistentTagMessage
in class ClientPutBase
protected java.lang.String getTypeName()
getTypeName
in class ClientPutBase
public boolean hasSucceeded()
hasSucceeded
in class ClientRequest
public FreenetURI getFinalURI()
public int getNumberOfFiles()
public long getTotalDataSize()
public boolean canRestart()
canRestart
in class ClientRequest
public boolean restart(ClientContext context, boolean disableFilterData)
restart
in class ClientRequest
public void onFailure(FetchException e, ClientGetter state)
public void onSuccess(FetchResult result, ClientGetter state)
public void onSuccess(BaseClientPutter state)
ClientPutCallback
onSuccess
in interface ClientPutCallback
onSuccess
in class ClientPutBase
state
- 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)
ClientPutCallback
onFailure
in interface ClientPutCallback
onFailure
in class ClientPutBase
state
- 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)
ClientRequest
requestWasRemoved
in class ClientPutBase
protected void onStartCompressing()
onStartCompressing
in class ClientPutBase
protected void onStopCompressing()
onStopCompressing
in class ClientPutBase
public void innerResume(ClientContext context) throws ResumeFailedException
innerResume
in class ClientRequest
ResumeFailedException
public boolean fullyResumed()
ClientRequest
fullyResumed
in class ClientRequest