@InterfaceAudience.Private public interface PersistentIOEngine extends IOEngine
BucketCache
Modifier and Type | Method and Description |
---|---|
byte[] |
calculateChecksum(String algorithm)
Using an encryption algorithm to calculate a checksum, the default encryption algorithm is MD5
|
boolean |
verifyFileIntegrity(byte[] persistentChecksum,
String algorithm)
Verify cache files's integrity
|
byte[] calculateChecksum(String algorithm)
algorithm
- which algorithm to calculate checksumboolean verifyFileIntegrity(byte[] persistentChecksum, String algorithm)
persistentChecksum
- the persistent checksumalgorithm
- which algorithm to calculate checksumCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.