@InterfaceAudience.Private public abstract class PersistentIOEngine extends Object implements IOEngine
BucketCache which use persistent IOEngine| Constructor and Description |
|---|
PersistentIOEngine(String... filePaths) |
| Modifier and Type | Method and Description |
|---|---|
protected byte[] |
calculateChecksum(String algorithm)
Using an encryption algorithm to calculate a checksum, the default encryption algorithm is MD5
|
protected void |
verifyFileIntegrity(byte[] persistentChecksum,
String algorithm)
Verify cache files's integrity
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisPersistent, read, shutdown, sync, usesSharedMemory, write, writeprotected final String[] filePaths
public PersistentIOEngine(String... filePaths)
protected void verifyFileIntegrity(byte[] persistentChecksum,
String algorithm)
throws IOException
algorithm - the backingMap persistence pathIOExceptionprotected byte[] calculateChecksum(String algorithm)
IOException - something happened like file not existsNoSuchAlgorithmException - no such algorithmCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.