diff options
author | awnuk <awnuk@c9f7a03b-bd48-0410-a16d-cbbf54688b0b> | 2008-08-07 23:59:12 +0000 |
---|---|---|
committer | awnuk <awnuk@c9f7a03b-bd48-0410-a16d-cbbf54688b0b> | 2008-08-07 23:59:12 +0000 |
commit | f012c76fe860abd53b320ac79d3cbefa3be3129d (patch) | |
tree | 49d9cabc7e67cbc73e0689287d8f955004c482b0 /pki/base/ca/src/com/netscape/ca/CertificateAuthority.java | |
parent | 5b4f0392c224bc3fecae3e2899644d73f89ec9d1 (diff) | |
download | pki-f012c76fe860abd53b320ac79d3cbefa3be3129d.tar.gz pki-f012c76fe860abd53b320ac79d3cbefa3be3129d.tar.xz pki-f012c76fe860abd53b320ac79d3cbefa3be3129d.zip |
Fix for bug #453834.
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/pki/trunk@77 c9f7a03b-bd48-0410-a16d-cbbf54688b0b
Diffstat (limited to 'pki/base/ca/src/com/netscape/ca/CertificateAuthority.java')
-rw-r--r-- | pki/base/ca/src/com/netscape/ca/CertificateAuthority.java | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/pki/base/ca/src/com/netscape/ca/CertificateAuthority.java b/pki/base/ca/src/com/netscape/ca/CertificateAuthority.java index c08deaa3c..e78d2607a 100644 --- a/pki/base/ca/src/com/netscape/ca/CertificateAuthority.java +++ b/pki/base/ca/src/com/netscape/ca/CertificateAuthority.java @@ -364,6 +364,13 @@ public class CertificateAuthority implements ICertificateAuthority, ICertAuthori } /** + * get notifiers registered by CA + */ + public IRequestNotifier getRequestNotifier() { + return mNotify; + } + + /** * get listener from listener list */ public IRequestListener getPendingListener(String name) { @@ -1479,7 +1486,23 @@ public class CertificateAuthority implements ICertificateAuthority, ICertAuthori CMS.debug("CA policy inited"); mService = new CAService(this); CMS.debug("CA service inited"); - mNotify = new ARequestNotifier(); + + IConfigStore pubQueueConfig = mConfig.getSubStore(PROP_PUB_QUEUE_SUBSTORE); + boolean enablePublishingQueue = false; + // Publishing Queue Priority Levels: 2 - maximum, 1 - raised, 0 - normal + int publishingQueuePriorityLevel = 2; + if (pubQueueConfig != null) { + try { + enablePublishingQueue = pubQueueConfig.getBoolean("enable", false); + publishingQueuePriorityLevel = pubQueueConfig.getInteger("priorityLevel", 2); + } catch (EBaseException e) { + CMS.debug("Error reading publishing queue parameters: "+e); + enablePublishingQueue = false; + publishingQueuePriorityLevel = 2; + } + } + CMS.debug("CA Publishing Queue Enabled: "+enablePublishingQueue+" Priority Level: "+publishingQueuePriorityLevel); + mNotify = new ARequestNotifier(this, enablePublishingQueue, publishingQueuePriorityLevel); CMS.debug("CA notifier inited"); mPNotify = new ARequestNotifier(); CMS.debug("CA pending notifier inited"); |