Class DataIntegrityCookieValidation
- java.lang.Object
-
- org.apache.bookkeeper.bookie.datainteg.DataIntegrityCookieValidation
-
- All Implemented Interfaces:
CookieValidation
public class DataIntegrityCookieValidation extends java.lang.Object implements CookieValidation
An implementation of the CookieValidation interface that allows for auto-stamping cookies when configured and used in conjunction with the data integrity service. Because the data integrity service can heal a bookie with lost data due to a disk failure, a bookie can auto stamp new cookies as part of the healing process.
-
-
Constructor Summary
Constructors Constructor Description DataIntegrityCookieValidation(ServerConfiguration conf, RegistrationManager registrationManager, DataIntegrityCheck dataIntegCheck)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkCookies(java.util.List<java.io.File> directories)
-
-
-
Constructor Detail
-
DataIntegrityCookieValidation
public DataIntegrityCookieValidation(ServerConfiguration conf, RegistrationManager registrationManager, DataIntegrityCheck dataIntegCheck) throws java.net.UnknownHostException
- Throws:
java.net.UnknownHostException
-
-
Method Detail
-
checkCookies
public void checkCookies(java.util.List<java.io.File> directories) throws BookieException, java.lang.InterruptedException
- Specified by:
checkCookies
in interfaceCookieValidation
- Throws:
BookieException
java.lang.InterruptedException
-
-