summaryrefslogtreecommitdiffstats
path: root/base/server/test
diff options
context:
space:
mode:
authorChristina Fu <cfu@redhat.com>2015-09-30 13:55:05 +0200
committerMatthew Harmsen <mharmsen@redhat.com>2015-10-01 14:22:38 -0600
commited98129b58b5b13031331fb88eb14d7c33474a59 (patch)
tree7bf8646833eba4cf7be8293b449ca75b89b96909 /base/server/test
parentb67a17f29a5a5312847c1188607a7fa7b33e034f (diff)
downloadpki-ed98129b58b5b13031331fb88eb14d7c33474a59.tar.gz
pki-ed98129b58b5b13031331fb88eb14d7c33474a59.tar.xz
pki-ed98129b58b5b13031331fb88eb14d7c33474a59.zip
Ticket #1593 auto-shutdown - for HSM failover support
This is an interim solution for supporting HSM failover by automatically shutting down the server when signing key becomes inaccessible. At auto-shutdown, a crumb fiile will be left in the instance directory for an external daemon to detect and restart, if necessary. Due to limitation of the watch dog (nuxwdog) at present time, the restart option currently only works if started with watch dog (nuxwdog), and it will prompt for passwords on the terminals. The restart counter is to prevent the server from going into an infinite restart loop. Administrator will have to reset autoShutdown.restart.count to 0 when max is reached. (cherry picked from commit 5a9ecad9172f76ca1b94b40aedcdd49d009aceb1)
Diffstat (limited to 'base/server/test')
-rw-r--r--base/server/test/com/netscape/cmscore/app/CMSEngineDefaultStub.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/base/server/test/com/netscape/cmscore/app/CMSEngineDefaultStub.java b/base/server/test/com/netscape/cmscore/app/CMSEngineDefaultStub.java
index 404832c0d..36a263e92 100644
--- a/base/server/test/com/netscape/cmscore/app/CMSEngineDefaultStub.java
+++ b/base/server/test/com/netscape/cmscore/app/CMSEngineDefaultStub.java
@@ -545,6 +545,12 @@ public class CMSEngineDefaultStub implements ICMSEngine {
public void forceShutdown() {
}
+ public void autoShutdown() {
+ }
+
+ public void checkForAndAutoShutdown() {
+ }
+
public IPasswordStore getPasswordStore() {
return null;
}