Package com.netscape.cmscore.apps
Class CMSEngine
java.lang.Object
com.netscape.cmscore.apps.CMSEngine
- All Implemented Interfaces:
EventListener
,javax.servlet.ServletContextListener
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AuthSubsystem
protected AuthzSubsystem
protected EngineConfig
protected DBSubsystem
static String[]
protected JobsScheduler
protected JssSubsystem
static org.slf4j.Logger
protected LogSubsystem
protected EngineConfig
protected OidLoaderSubsystem
protected RequestNotifier
static final String
protected RequestNotifier
protected RequestQueue
protected RequestRepository
protected RequestSubsystem
protected ServerXml
final Map<String,
SubsystemInfo> final Map<String,
ISubsystem> protected UGSubsystem
protected X500NameSubsystem
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
void
void
autoShutdown
(boolean restart) void
sign some known data to determine if signing key is botched; if so, proceed to graceful shutdownvoid
void
void
void
void
contextDestroyed
(javax.servlet.ServletContextEvent event) void
contextInitialized
(javax.servlet.ServletContextEvent event) createConfig
(ConfigStorage storage) void
void
void
Shuts down subsystems in backwards order exceptions are ignored.returns the main config storeint
Retrieves the instance root path of this server.getPendingListener
(String name) int
getPID()
getRequestListener
(String name) getSharedTokenClass
(String configName) long
get time server started upgetSubsystem
(String name) void
init()
initialize all static, dynamic and final static subsystems.void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
initSubsystem
(ISubsystem subsystem, ConfigStore subsystemConfig) void
void
void
void
boolean
isExcludedLdapAttr
(String key) boolean
boolean
static boolean
isNT()
boolean
boolean
isReady()
boolean
isRevoked
(X509Certificate[] certificates) boolean
void
loadConfig
(String path) loadConfigStore
(String path) protected void
load subsystemsvoid
void
putPasswordCache
(String tag, String pw) void
registerPendingListener
(IRequestListener listener) void
registerPendingListener
(String name, IRequestListener listener) void
registerRequestListener
(IRequestListener listener) void
registerRequestListener
(String name, IRequestListener listener) void
removeRequestListener
(IRequestListener listener) void
removeRequestListener
(String name) void
setCSState
(int mode) void
setListOfVerifiedCerts
(int size, long interval, long unknownStateInterval) void
setPendingNotifier
(RequestNotifier pendingNotifier) void
setRequestNotifier
(RequestNotifier requestNotifier) void
setRequestQueue
(RequestQueue requestQueue) void
setRequestRepository
(RequestRepository requestRepository) void
setServerCertNickname
(String newName) void
setServerCertNickname
(String tokenName, String nickName) void
setSubsystemEnabled
(String id, boolean enabled) void
shutdown()
Shuts down subsystems in backwards order exceptions are ignored.void
void
void
void
void
void
void
void
void
void
protected void
void
void
void
void
start()
protected void
void
int
testLDAPConnection
(String name, LdapConnInfo info, String binddn, String pwd)
-
Field Details
-
logger
public static org.slf4j.Logger logger -
PROP_SIGNED_AUDIT_CERT_NICKNAME
- See Also:
-
id
-
name
-
instanceDir
-
config
-
mConfig
-
serverXml
-
logSubsystem
-
jssSubsystem
-
dbSubsystem
-
requestRepository
-
requestQueue
-
ugSubsystem
-
oidLoaderSubsystem
-
x500NameSubsystem
-
requestSubsystem
-
authSubsystem
-
authzSubsystem
-
jobsScheduler
-
subsystemInfos
-
subsystems
-
unsecurePort
-
securePort
-
requestNotifier
-
pendingNotifier
-
excludedLdapAttrsList
-
excludedLdapAttrs
-
mVCList
-
-
Constructor Details
-
CMSEngine
-
-
Method Details
-
getPluginRegistry
-
getLogSubsystem
-
getJSSSubsystem
-
getDBSubsystem
-
getRequestRepository
-
setRequestRepository
-
getRequestQueue
-
setRequestQueue
-
getUGSubsystem
-
getOIDLoaderSubsystem
-
getX500NameSubsystem
-
getRequestSubsystem
-
getAuthSubsystem
-
getAuthzSubsystem
-
getJobsScheduler
-
getRequestNotifier
-
setRequestNotifier
-
getRequestListenerNames
-
getRequestListener
-
registerRequestListener
-
registerRequestListener
-
removeRequestListener
-
removeRequestListener
-
getPendingNotifier
-
setPendingNotifier
-
getPendingListener
-
registerPendingListener
-
registerPendingListener
-
loadConfig
- Throws:
Exception
-
createConfig
- Throws:
Exception
-
getInstanceDir
Retrieves the instance root path of this server. -
getPasswordStore
- Throws:
EBaseException
-
initDebug
- Throws:
Exception
-
initSubsystemListeners
- Throws:
Exception
-
initPasswordStore
- Throws:
Exception
-
testLDAPConnection
-
initSecurityProvider
public void initSecurityProvider() -
initDatabase
- Throws:
Exception
-
initPluginRegistry
- Throws:
Exception
-
initLogSubsystem
- Throws:
Exception
-
initJssSubsystem
- Throws:
Exception
-
initDBSubsystem
- Throws:
Exception
-
initUGSubsystem
- Throws:
Exception
-
initOIDLoaderSubsystem
- Throws:
Exception
-
initX500NameSubsystem
- Throws:
Exception
-
initRequestSubsystem
- Throws:
Exception
-
initAuthSubsystem
- Throws:
Exception
-
initAuthzSubsystem
- Throws:
Exception
-
initJobsScheduler
- Throws:
Exception
-
configurePorts
- Throws:
Exception
-
initSecurityDomain
- Throws:
Exception
-
init
initialize all static, dynamic and final static subsystems.- Throws:
Exception
- if any error occur in subsystems during initialization.
-
createConfigurator
- Throws:
Exception
-
loadConfigStore
- Throws:
EBaseException
-
isPreOpMode
public boolean isPreOpMode() -
isRunningMode
public boolean isRunningMode() -
setCSState
public void setCSState(int mode) -
getCSState
public int getCSState() -
getSecurityDomainSessionTable
-
getEENonSSLPort
-
getEESSLPort
-
getEEClientAuthSSLPort
-
getAgentPort
-
getAdminPort
-
getSubsystems
-
getSubsystem
-
setSubsystemEnabled
-
loadSubsystems
load subsystems- Throws:
Exception
-
initSubsystem
- Throws:
Exception
-
initSubsystems
- Throws:
Exception
-
configureAutoShutdown
- Throws:
Exception
-
configureServerCertNickname
- Throws:
EBaseException
-
configureExcludedLdapAttrs
- Throws:
EBaseException
-
isExcludedLdapAttrsEnabled
public boolean isExcludedLdapAttrsEnabled() -
isExcludedLdapAttr
-
checkForAndAutoShutdown
public void checkForAndAutoShutdown()sign some known data to determine if signing key is botched; if so, proceed to graceful shutdown -
startupSubsystems
- Throws:
Exception
-
notifySubsystemStarted
public void notifySubsystemStarted() -
start
- Throws:
Exception
-
isInRunningState
public boolean isInRunningState() -
getServerCertNickname
-
setServerCertNickname
-
setServerCertNickname
-
getMailNotification
-
getPasswordChecker
-
disableRequests
public void disableRequests() -
areRequestsDisabled
public boolean areRequestsDisabled() -
terminateRequests
public void terminateRequests() -
isNT
public static boolean isNT() -
shutdownJobsScheduler
public void shutdownJobsScheduler() -
shutdownAuthzSubsystem
public void shutdownAuthzSubsystem() -
shutdownAuthSubsystem
public void shutdownAuthSubsystem() -
shutdownRequestSubsystem
public void shutdownRequestSubsystem() -
shutdownX500NameSubsystem
public void shutdownX500NameSubsystem() -
shutdownOIDLoaderSubsystem
public void shutdownOIDLoaderSubsystem() -
shutdownUGSubsystem
public void shutdownUGSubsystem() -
shutdownDBSubsystem
public void shutdownDBSubsystem() -
shutdownJSSSubsystem
public void shutdownJSSSubsystem() -
shutdownLogSubsystem
public void shutdownLogSubsystem() -
shutdownDatabase
public void shutdownDatabase() -
shutdownPluginRegistry
public void shutdownPluginRegistry() -
shutdown
public void shutdown()Shuts down subsystems in backwards order exceptions are ignored. process exists at end to force exit. -
forceShutdown
public void forceShutdown()Shuts down subsystems in backwards order exceptions are ignored. process exists at end to force exit. Added extra call to shutdown the web server. -
autoShutdown
public void autoShutdown() -
autoShutdown
public void autoShutdown(boolean restart) -
disableSubsystem
public void disableSubsystem() -
shutdownSubsystems
protected void shutdownSubsystems() -
getConfigStore
returns the main config store -
getConfig
-
getServerXml
-
getStartupTime
public long getStartupTime()get time server started up -
putPasswordCache
-
getPID
public int getPID() -
setListOfVerifiedCerts
public void setListOfVerifiedCerts(int size, long interval, long unknownStateInterval) -
isRevoked
-
isReady
public boolean isReady() -
sleepOneMinute
public void sleepOneMinute() -
contextInitialized
public void contextInitialized(javax.servlet.ServletContextEvent event) - Specified by:
contextInitialized
in interfacejavax.servlet.ServletContextListener
-
contextDestroyed
public void contextDestroyed(javax.servlet.ServletContextEvent event) - Specified by:
contextDestroyed
in interfacejavax.servlet.ServletContextListener
-