@Private
public class ShortCircuitReplica
extends java.lang.Object
| Modifier and Type | Field | Description |
|---|---|---|
static org.slf4j.Logger |
LOG |
| Constructor | Description |
|---|---|
ShortCircuitReplica(ExtendedBlockId key,
java.io.FileInputStream dataStream,
java.io.FileInputStream metaStream,
ShortCircuitCache cache,
long creationTimeMs,
ShortCircuitShm.Slot slot) |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
addNoChecksumAnchor() |
Try to add a no-checksum anchor to our shared memory slot.
|
java.io.FileInputStream |
getDataStream() |
|
java.lang.Long |
getEvictableTimeNs() |
Get the evictable time in nanoseconds.
|
ExtendedBlockId |
getKey() |
|
BlockMetadataHeader |
getMetaHeader() |
|
java.io.FileInputStream |
getMetaStream() |
|
ClientMmap |
getOrCreateClientMmap(boolean anchor) |
|
ShortCircuitShm.Slot |
getSlot() |
|
boolean |
hasMmap() |
Check if the replica has an associated mmap that has been fully loaded.
|
void |
removeNoChecksumAnchor() |
Remove a no-checksum anchor for our shared memory slot.
|
java.lang.String |
toString() |
Convert the replica to a string for debugging purposes.
|
void |
unref() |
Decrement the reference count.
|
public ShortCircuitReplica(ExtendedBlockId key, java.io.FileInputStream dataStream, java.io.FileInputStream metaStream, ShortCircuitCache cache, long creationTimeMs, ShortCircuitShm.Slot slot) throws java.io.IOException
java.io.IOExceptionpublic void unref()
public boolean addNoChecksumAnchor()
public void removeNoChecksumAnchor()
@VisibleForTesting public boolean hasMmap()
public java.io.FileInputStream getDataStream()
public java.io.FileInputStream getMetaStream()
public BlockMetadataHeader getMetaHeader()
public ExtendedBlockId getKey()
public ClientMmap getOrCreateClientMmap(boolean anchor)
public java.lang.Long getEvictableTimeNs()
@VisibleForTesting public ShortCircuitShm.Slot getSlot()
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2008–2025 Apache Software Foundation. All rights reserved.