Package com.netscape.cmscore.dbs
Class ReplicaIDRepository
- java.lang.Object
-
- com.netscape.cmscore.dbs.Repository
-
- com.netscape.cmscore.dbs.ReplicaIDRepository
-
- All Implemented Interfaces:
IReplicaIDRepository
,IRepository
public class ReplicaIDRepository extends Repository implements IReplicaIDRepository
A class represents a replica repository. It creates unique managed replica IDs.- Version:
- $Revision$, $Date$
- Author:
- alee
-
-
Field Summary
Fields Modifier and Type Field Description static org.slf4j.Logger
logger
static java.lang.String
PROP_REPLICAID_DN
-
Fields inherited from class com.netscape.cmscore.dbs.Repository
mCounter, mEnableRandomSerialNumbers, mMaxSerialNo, mMinSerialNo, PROP_BASE_DN
-
-
Constructor Summary
Constructors Constructor Description ReplicaIDRepository(DBSubsystem dbSubsystem, int increment, java.lang.String baseDN)
Constructs a certificate repository.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDN()
Retrieves DN of this repository.java.math.BigInteger
getLastSerialNumberInRange(java.math.BigInteger serial_low_bound, java.math.BigInteger serial_upper_bound)
Returns last serial number in given range-
Methods inherited from class com.netscape.cmscore.dbs.Repository
checkRange, checkRanges, getMaxSerial, getMinSerial, getNextMaxSerial, getNextSerialNumber, getSerialNumber, initCacheIfNeeded, peekNextSerialNumber, resetSerialNumber, setEnableSerialMgmt, setLastSerialNo, setMaxSerial, setNextMaxSerial, setSerialNumber, setTheSerialNumber
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.netscape.certsrv.dbs.repository.IRepository
checkRanges, getNextSerialNumber, peekNextSerialNumber, resetSerialNumber, setEnableSerialMgmt, setMaxSerial, setNextMaxSerial
-
-
-
-
Field Detail
-
logger
public static org.slf4j.Logger logger
-
PROP_REPLICAID_DN
public static final java.lang.String PROP_REPLICAID_DN
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ReplicaIDRepository
public ReplicaIDRepository(DBSubsystem dbSubsystem, int increment, java.lang.String baseDN) throws EDBException
Constructs a certificate repository.- Throws:
EDBException
-
-
Method Detail
-
getLastSerialNumberInRange
public java.math.BigInteger getLastSerialNumberInRange(java.math.BigInteger serial_low_bound, java.math.BigInteger serial_upper_bound) throws EBaseException
Returns last serial number in given range- Specified by:
getLastSerialNumberInRange
in classRepository
- Throws:
EBaseException
-
getDN
public java.lang.String getDN()
Retrieves DN of this repository.
-
-