diff options
author | Endi Sukma Dewata <edewata@redhat.com> | 2012-03-06 20:06:44 -0600 |
---|---|---|
committer | Endi Sukma Dewata <edewata@redhat.com> | 2012-03-12 09:39:35 -0500 |
commit | c0b210a15ef43873b52c1c9fbec73eba48155b4b (patch) | |
tree | d3db97853a7c00f3f255f726434e73009543ed69 /pki/base/common/src/com/netscape/certsrv/dbs/certdb/ICertificateRepository.java | |
parent | 34f141c1144dac37248cf404835248413218627e (diff) | |
download | pki-c0b210a15ef43873b52c1c9fbec73eba48155b4b.tar.gz pki-c0b210a15ef43873b52c1c9fbec73eba48155b4b.tar.xz pki-c0b210a15ef43873b52c1c9fbec73eba48155b4b.zip |
Replaced daemon threads with executor service.
The certificate status update and retrieving modifications tasks
have been modified to use the executor service. Unlike daemon
threads, the service will allow existing task to exit gracefully
before shutting down. An abandon operation is used terminate the
persistent search used for retrieving modifications. Some methods
have been moved to CertificateRepository class to simplify
synchronizations.
Ticket #73
Diffstat (limited to 'pki/base/common/src/com/netscape/certsrv/dbs/certdb/ICertificateRepository.java')
-rw-r--r-- | pki/base/common/src/com/netscape/certsrv/dbs/certdb/ICertificateRepository.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/pki/base/common/src/com/netscape/certsrv/dbs/certdb/ICertificateRepository.java b/pki/base/common/src/com/netscape/certsrv/dbs/certdb/ICertificateRepository.java index 2e9e00f60..a8505c2a2 100644 --- a/pki/base/common/src/com/netscape/certsrv/dbs/certdb/ICertificateRepository.java +++ b/pki/base/common/src/com/netscape/certsrv/dbs/certdb/ICertificateRepository.java @@ -28,6 +28,7 @@ import netscape.security.x509.X509CertImpl; import com.netscape.certsrv.base.EBaseException; import com.netscape.certsrv.base.MetaInfo; +import com.netscape.certsrv.dbs.IElementProcessor; import com.netscape.certsrv.dbs.ModificationSet; import com.netscape.certsrv.dbs.repository.IRepository; import com.netscape.cmscore.dbs.CertificateRepository.RenewableCertificateCollection; @@ -512,5 +513,16 @@ public interface ICertificateRepository extends IRepository { */ public void removeCertRecords(BigInteger beginS, BigInteger endS) throws EBaseException; + /** + * Builds a list of revoked certificates to put them into CRL. + * Calls certificate record processor to get necessary data + * from certificate records. + * This also regenerates CRL cache. + * + * @param cp certificate record processor + * @exception EBaseException if an error occurred in the database. + */ + public void processRevokedCerts(IElementProcessor cp, String filter, int pageSize) throws EBaseException; + public void shutdown(); } |