Class CMSEngine

java.lang.Object
com.netscape.cmscore.apps.CMSEngine
All Implemented Interfaces:
EventListener, javax.servlet.ServletContextListener

public class CMSEngine extends Object implements javax.servlet.ServletContextListener
  • Field Details

  • Constructor Details

    • CMSEngine

      public CMSEngine(String name)
  • Method Details

    • getPluginRegistry

      public PluginRegistry getPluginRegistry()
    • getLogSubsystem

      public LogSubsystem getLogSubsystem()
    • getJSSSubsystem

      public JssSubsystem getJSSSubsystem()
    • getDBSubsystem

      public DBSubsystem getDBSubsystem()
    • getRequestRepository

      public RequestRepository getRequestRepository()
    • setRequestRepository

      public void setRequestRepository(RequestRepository requestRepository)
    • getRequestQueue

      public RequestQueue getRequestQueue()
    • setRequestQueue

      public void setRequestQueue(RequestQueue requestQueue)
    • getUGSubsystem

      public UGSubsystem getUGSubsystem()
    • getOIDLoaderSubsystem

      public OidLoaderSubsystem getOIDLoaderSubsystem()
    • getX500NameSubsystem

      public X500NameSubsystem getX500NameSubsystem()
    • getRequestSubsystem

      public RequestSubsystem getRequestSubsystem()
    • getAuthSubsystem

      public AuthSubsystem getAuthSubsystem()
    • getAuthzSubsystem

      public AuthzSubsystem getAuthzSubsystem()
    • getJobsScheduler

      public JobsScheduler getJobsScheduler()
    • getRequestNotifier

      public RequestNotifier getRequestNotifier()
    • setRequestNotifier

      public void setRequestNotifier(RequestNotifier requestNotifier)
    • getRequestListenerNames

      public Enumeration<String> getRequestListenerNames()
    • getRequestListener

      public IRequestListener getRequestListener(String name)
    • registerRequestListener

      public void registerRequestListener(IRequestListener listener)
    • registerRequestListener

      public void registerRequestListener(String name, IRequestListener listener)
    • removeRequestListener

      public void removeRequestListener(IRequestListener listener)
    • removeRequestListener

      public void removeRequestListener(String name)
    • getPendingNotifier

      public RequestNotifier getPendingNotifier()
    • setPendingNotifier

      public void setPendingNotifier(RequestNotifier pendingNotifier)
    • getPendingListener

      public IRequestListener getPendingListener(String name)
    • registerPendingListener

      public void registerPendingListener(IRequestListener listener)
    • registerPendingListener

      public void registerPendingListener(String name, IRequestListener listener)
    • loadConfig

      public void loadConfig(String path) throws Exception
      Throws:
      Exception
    • createConfig

      public EngineConfig createConfig(ConfigStorage storage) throws Exception
      Throws:
      Exception
    • getInstanceDir

      public String getInstanceDir()
      Retrieves the instance root path of this server.
    • getPasswordStore

      public IPasswordStore getPasswordStore() throws EBaseException
      Throws:
      EBaseException
    • initDebug

      public void initDebug() throws Exception
      Throws:
      Exception
    • initSubsystemListeners

      public void initSubsystemListeners() throws Exception
      Throws:
      Exception
    • initPasswordStore

      public void initPasswordStore() throws Exception
      Throws:
      Exception
    • testLDAPConnection

      public int testLDAPConnection(String name, LdapConnInfo info, String binddn, String pwd)
    • initSecurityProvider

      public void initSecurityProvider()
    • initDatabase

      public void initDatabase() throws Exception
      Throws:
      Exception
    • initPluginRegistry

      public void initPluginRegistry() throws Exception
      Throws:
      Exception
    • initLogSubsystem

      public void initLogSubsystem() throws Exception
      Throws:
      Exception
    • initJssSubsystem

      public void initJssSubsystem() throws Exception
      Throws:
      Exception
    • initDBSubsystem

      public void initDBSubsystem() throws Exception
      Throws:
      Exception
    • initUGSubsystem

      public void initUGSubsystem() throws Exception
      Throws:
      Exception
    • initOIDLoaderSubsystem

      public void initOIDLoaderSubsystem() throws Exception
      Throws:
      Exception
    • initX500NameSubsystem

      public void initX500NameSubsystem() throws Exception
      Throws:
      Exception
    • initRequestSubsystem

      public void initRequestSubsystem() throws Exception
      Throws:
      Exception
    • initAuthSubsystem

      public void initAuthSubsystem() throws Exception
      Throws:
      Exception
    • initAuthzSubsystem

      public void initAuthzSubsystem() throws Exception
      Throws:
      Exception
    • initJobsScheduler

      public void initJobsScheduler() throws Exception
      Throws:
      Exception
    • configurePorts

      public void configurePorts() throws Exception
      Throws:
      Exception
    • initSecurityDomain

      public void initSecurityDomain() throws Exception
      Throws:
      Exception
    • init

      public void init() throws Exception
      initialize all static, dynamic and final static subsystems.
      Throws:
      Exception - if any error occur in subsystems during initialization.
    • createConfigurator

      public Configurator createConfigurator() throws Exception
      Throws:
      Exception
    • loadConfigStore

      public ConfigStore loadConfigStore(String path) throws EBaseException
      Throws:
      EBaseException
    • isPreOpMode

      public boolean isPreOpMode()
    • isRunningMode

      public boolean isRunningMode()
    • setCSState

      public void setCSState(int mode)
    • getCSState

      public int getCSState()
    • getSecurityDomainSessionTable

      public ISecurityDomainSessionTable getSecurityDomainSessionTable()
    • getEENonSSLPort

      public String getEENonSSLPort()
    • getEESSLPort

      public String getEESSLPort()
    • getEEClientAuthSSLPort

      public String getEEClientAuthSSLPort()
    • getAgentPort

      public String getAgentPort()
    • getAdminPort

      public String getAdminPort()
    • getSubsystems

      public Collection<ISubsystem> getSubsystems()
    • getSubsystem

      public ISubsystem getSubsystem(String name)
    • setSubsystemEnabled

      public void setSubsystemEnabled(String id, boolean enabled)
    • loadSubsystems

      protected void loadSubsystems() throws Exception
      load subsystems
      Throws:
      Exception
    • initSubsystem

      public void initSubsystem(ISubsystem subsystem, ConfigStore subsystemConfig) throws Exception
      Throws:
      Exception
    • initSubsystems

      public void initSubsystems() throws Exception
      Throws:
      Exception
    • configureAutoShutdown

      public void configureAutoShutdown() throws Exception
      Throws:
      Exception
    • configureServerCertNickname

      public void configureServerCertNickname() throws EBaseException
      Throws:
      EBaseException
    • configureExcludedLdapAttrs

      public void configureExcludedLdapAttrs() throws EBaseException
      Throws:
      EBaseException
    • isExcludedLdapAttrsEnabled

      public boolean isExcludedLdapAttrsEnabled()
    • isExcludedLdapAttr

      public boolean isExcludedLdapAttr(String key)
    • checkForAndAutoShutdown

      public void checkForAndAutoShutdown()
      sign some known data to determine if signing key is botched; if so, proceed to graceful shutdown
    • startupSubsystems

      protected void startupSubsystems() throws Exception
      Throws:
      Exception
    • notifySubsystemStarted

      public void notifySubsystemStarted()
    • start

      public void start() throws Exception
      Throws:
      Exception
    • isInRunningState

      public boolean isInRunningState()
    • getServerCertNickname

      public String getServerCertNickname()
    • setServerCertNickname

      public void setServerCertNickname(String tokenName, String nickName)
    • setServerCertNickname

      public void setServerCertNickname(String newName)
    • getMailNotification

      public IMailNotification getMailNotification()
    • getPasswordChecker

      public IPasswordCheck getPasswordChecker()
    • getSharedTokenClass

      public ISharedToken getSharedTokenClass(String configName)
    • 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

      public ConfigStore getConfigStore()
      returns the main config store
    • getConfig

      public EngineConfig getConfig()
    • getServerXml

      public ServerXml getServerXml()
    • getStartupTime

      public long getStartupTime()
      get time server started up
    • putPasswordCache

      public void putPasswordCache(String tag, String pw)
    • getPID

      public int getPID()
    • setListOfVerifiedCerts

      public void setListOfVerifiedCerts(int size, long interval, long unknownStateInterval)
    • isRevoked

      public boolean isRevoked(X509Certificate[] certificates)
    • isReady

      public boolean isReady()
    • sleepOneMinute

      public void sleepOneMinute()
    • contextInitialized

      public void contextInitialized(javax.servlet.ServletContextEvent event)
      Specified by:
      contextInitialized in interface javax.servlet.ServletContextListener
    • contextDestroyed

      public void contextDestroyed(javax.servlet.ServletContextEvent event)
      Specified by:
      contextDestroyed in interface javax.servlet.ServletContextListener