public class InsertContext
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
InsertContext.CompatibilityMode
Compatibility mode.
|
Modifier and Type | Field and Description |
---|---|
boolean |
canWriteClientCache
Can this insert write to the client-cache? We don't store all requests in the client cache,
in particular big stuff usually isn't written to it, to maximise its effectiveness.
|
java.lang.String |
compressorDescriptor
a string that contains the codecs to use/try
if the string is null it defaults to COMPRESSOR_TYPES.Values(),
so old persistent inserts are not affected after update.
|
int |
consecutiveRNFsCountAsSuccess
On a very small network, any insert will RNF.
|
boolean |
dontCompress
If true, don't try to compress the data
|
boolean |
earlyEncode
If true, try to find the final URI as quickly as possible, and insert the upper layers as
soon as we can, rather than waiting for the lower layers.
|
ClientEventProducer |
eventProducer
Client events will be published to this, you can subscribe to them
|
int |
extraInsertsSingleBlock
Number of extra inserts for a single block inserted on its own.
|
int |
extraInsertsSplitfileHeaderBlock
Number of extra inserts for a block inserted above a splitfile.
|
boolean |
forkOnCacheable |
boolean |
getCHKOnly
If true, don't insert, just generate the CHK
|
boolean |
ignoreUSKDatehints
Don't insert USK DATEHINTs (and ignore them on polling for maximum edition).
|
boolean |
localRequestOnly |
int |
maxInsertRetries
Maximum number of retries (after the initial attempt) for each block
inserted.
|
int |
splitfileSegmentCheckBlocks
Maximum number of check blocks per segment for splitfiles.
|
int |
splitfileSegmentDataBlocks
Maximum number of data blocks per segment for splitfiles
|
Constructor and Description |
---|
InsertContext(InsertContext ctx,
SimpleEventProducer producer) |
InsertContext(int maxRetries,
int rnfsToSuccess,
int splitfileSegmentDataBlocks,
int splitfileSegmentCheckBlocks,
ClientEventProducer eventProducer,
boolean canWriteClientCache,
boolean forkOnCacheable,
boolean localRequestOnly,
java.lang.String compressorDescriptor,
int extraInsertsSingleBlock,
int extraInsertsSplitfileHeaderBlock,
InsertContext.CompatibilityMode compatibilityMode) |
Modifier and Type | Method and Description |
---|---|
InsertContext |
clone()
Make public, but just call parent for a field for field copy
|
boolean |
equals(java.lang.Object obj)
Are two InsertContext's equal? Ignores the EventProducer, compares only the actual config
values.
|
long |
getCompatibilityCode() |
InsertContext.CompatibilityMode |
getCompatibilityMode() |
Metadata.SplitfileAlgorithm |
getSplitfileAlgorithm() |
int |
hashCode() |
void |
onResume()
Deprecated.
|
void |
setCompatibilityMode(InsertContext.CompatibilityMode mode) |
public boolean dontCompress
public int maxInsertRetries
public int consecutiveRNFsCountAsSuccess
public int splitfileSegmentDataBlocks
public int splitfileSegmentCheckBlocks
public final ClientEventProducer eventProducer
public boolean canWriteClientCache
public java.lang.String compressorDescriptor
public boolean forkOnCacheable
public int extraInsertsSingleBlock
public int extraInsertsSplitfileHeaderBlock
public boolean localRequestOnly
public boolean ignoreUSKDatehints
public boolean getCHKOnly
public boolean earlyEncode
public InsertContext(int maxRetries, int rnfsToSuccess, int splitfileSegmentDataBlocks, int splitfileSegmentCheckBlocks, ClientEventProducer eventProducer, boolean canWriteClientCache, boolean forkOnCacheable, boolean localRequestOnly, java.lang.String compressorDescriptor, int extraInsertsSingleBlock, int extraInsertsSplitfileHeaderBlock, InsertContext.CompatibilityMode compatibilityMode)
public InsertContext(InsertContext ctx, SimpleEventProducer producer)
public InsertContext.CompatibilityMode getCompatibilityMode()
public long getCompatibilityCode()
public void setCompatibilityMode(InsertContext.CompatibilityMode mode)
public InsertContext clone()
clone
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public Metadata.SplitfileAlgorithm getSplitfileAlgorithm()
@Deprecated public void onResume()