/** * Set digest type used in bookkeeper admin. * * <p>Digest Type and Passwd used to open ledgers for admin tool * For now, assume that all ledgers were created with the same DigestType * and password. In the future, this admin tool will need to know for each * ledger, what was the DigestType and password used to create it before it * can open it. These values will come from System properties, though fixed * defaults are defined here. * * @param digestType * Digest Type * @return client configuration */ public ClientConfiguration setBookieRecoveryDigestType(DigestType digestType) { this.setProperty(DIGEST_TYPE, digestType.toString()); return this; }
/** * Get digest type used in bookkeeper admin. * * @return digest type * @see #setBookieRecoveryDigestType */ public DigestType getBookieRecoveryDigestType() { return DigestType.valueOf(this.getString(DIGEST_TYPE, DigestType.CRC32.toString())); }