Package com.netscape.cmscore.apps
Class CMSEngine
java.lang.Object
com.netscape.cmscore.apps.CMSEngine
-
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
createConfig
(ConfigStorage storage) void
void
void
Shuts down subsystems in backwards order exceptions are ignored.returns the main config storeint
getID()
Retrieves the instance root path of this server.getName()
getPendingListener
(String name) get listener from listener listint
getPID()
getRequestListener
(String name) Retrieves the request listener by name.Retrieves all request listeners.get request notifiergetSharedTokenClass
(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) register listener for pending requestsvoid
registerPendingListener
(String name, IRequestListener listener) register listener for pending requests with a name.void
registerRequestListener
(IRequestListener listener) Registers a request listener.void
registerRequestListener
(String name, IRequestListener listener) Registers a request listener.void
removeRequestListener
(IRequestListener listener) Removes a request listener.void
removeRequestListener
(String name) removes listener with a name.void
setCSState
(int mode) void
void
setListOfVerifiedCerts
(int size, long interval, long unknownStateInterval) void
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
-
getID
-
setID
-
getName
-
setName
-
getPluginRegistry
-
getLogSubsystem
-
getJSSSubsystem
-
getDBSubsystem
-
getRequestRepository
-
setRequestRepository
-
getRequestQueue
-
setRequestQueue
-
getUGSubsystem
-
getOIDLoaderSubsystem
-
getX500NameSubsystem
-
getRequestSubsystem
-
getAuthSubsystem
-
getAuthzSubsystem
-
getJobsScheduler
-
getRequestNotifier
get request notifier -
setRequestNotifier
-
getRequestListenerNames
Retrieves all request listeners.- Returns:
- name enumeration of all request listeners
-
getRequestListener
Retrieves the request listener by name.- Parameters:
name
- request listener name- Returns:
- the request listener
-
registerRequestListener
Registers a request listener. -
registerRequestListener
Registers a request listener.- Parameters:
name
- under request listener is going to be registeredlistener
- request listener to be registered
-
removeRequestListener
Removes a request listener.- Parameters:
listener
- request listener to be removed
-
removeRequestListener
removes listener with a name. -
getPendingNotifier
-
setPendingNotifier
-
getPendingListener
get listener from listener list -
registerPendingListener
register listener for pending requests -
registerPendingListener
register listener for pending requests with a name. -
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.
-
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()
-