railo.runtime.config
Class ConfigServerImpl

java.lang.Object
  extended by railo.runtime.config.ConfigImpl
      extended by railo.runtime.config.ConfigServerImpl
All Implemented Interfaces:
Config, ConfigServer

public final class ConfigServerImpl
extends ConfigImpl
implements ConfigServer

config server impl


Field Summary
 
Fields inherited from class railo.runtime.config.ConfigImpl
AMF_CONFIG_TYPE_MANUAL, AMF_CONFIG_TYPE_XML, CACHE_DEFAULT_NONE, CACHE_DEFAULT_OBJECT, CACHE_DEFAULT_QUERY, CACHE_DEFAULT_RESOURCE, CACHE_DEFAULT_TEMPLATE, CLIENT_BOOLEAN_FALSE, CLIENT_BOOLEAN_TRUE, INSPECT_ALWAYS, INSPECT_NEVER, INSPECT_ONCE, RAILO_EXTENSION_PROVIDERS, SERVER_BOOLEAN_FALSE, SERVER_BOOLEAN_TRUE
 
Fields inherited from interface railo.runtime.config.Config
CLIENT_SCOPE_TYPE_COOKIE, CLIENT_SCOPE_TYPE_DB, CLIENT_SCOPE_TYPE_FILE, RECOMPILE_AFTER_STARTUP, RECOMPILE_ALWAYS, RECOMPILE_NEVER, SCOPE_SMALL, SCOPE_STANDARD, SCOPE_STRICT, SESSION_TYPE_CFML, SESSION_TYPE_J2EE
 
Method Summary
static void checkPermGenSpace(Config config, boolean check)
          if free permspace gen is lower than 10000000 bytes, railo shrinks all classloaders
static long countLoadedPages(ConfigServer cs)
           
static Cluster createClusterScope(Config config)
           
 CFMLEngine getCFMLEngine()
           
 CFMLEngineImpl getCFMLEngineImpl()
           
 ConfigListener getConfigListener()
           
 ConfigServer getConfigServer()
           
 ConfigServer getConfigServer(String password)
           
 Resource getConfigServerDir()
           
 ConfigWeb getConfigWeb(String realpath)
           
 ConfigWebImpl getConfigWebById(String id)
           
 ConfigWeb[] getConfigWebs()
           
 SecurityManager getDefaultSecurityManager()
           
static ConfigServerImpl getInstance()
           
 IntervallMonitor getIntervallMonitor(String name)
           
 IntervallMonitor[] getIntervallMonitors()
           
 CFMLFactoryImpl[] getJSPFactories()
           
 Map getJSPFactoriesAsMap()
           
 Map<String,String> getLabels()
           
 boolean getLoginCaptcha()
           
 int getLoginDelay()
           
 RequestMonitor getRequestMonitor(String name)
           
 RequestMonitor[] getRequestMonitors()
           
 Resource getRootDirectory()
           
 SecurityManager getSecurityManager()
           
 SecurityManager getSecurityManager(String id)
           
 URL getUpdateLocation()
           
 String getUpdateType()
           
 boolean hasIndividualSecurityManager(String id)
          is there a individual security manager for given id
 boolean isMonitoringEnabled()
           
 void setConfigListener(ConfigListener configListener)
           
 void setLabels(Map<String,String> labels)
           
 void setUpdateLocation(String strUpdateLocation)
           
 void setUpdateLocation(String strUpdateLocation, URL defaultValue)
           
 void setUpdateLocation(URL updateLocation)
           
 void setUpdateType(String updateType)
           
 
Methods inherited from class railo.runtime.config.ConfigImpl
allowCompression, allowImplicidQueryCall, allowRealPath, clearComponentCache, clearCTCache, clearFunctionCache, clearResourceProviders, closeConnection, contentLength, createCustomTagAppMappings, createFunction, createTag, debug, doComponentDeepSearch, doCustomTagDeepSearch, doLocalCustomTag, flushComponentPathCache, flushCTPathCache, getAdminSync, getAdminSyncClass, getAMFCaster, getAMFCasterArguments, getAMFCasterClass, getAMFConfigType, getApplicationListener, getApplicationLogger, getApplicationTimeout, getBaseComponentPageSource, getBaseComponentPageSource, getBaseComponentTemplate, getCacheConnections, getCacheDefaultConnection, getCacheDefaultConnectionName, getCacheDir, getCacheDirSize, getCachedPage, getCacheMD5, getCFCExtension, getCFMLExtensions, getCFXTagPool, getClassLoader, getClassLoader, getClientCluster, getClientScopeDir, getClientScopeDirSize, getClientTimeout, getClientType, getClusterClass, getCombinedFLDs, getCompileType, getComponentDataMemberDefaultAccess, getComponentDefaultImport, getComponentDumpTemplate, getComponentLocalSearch, getComponentMapping, getComponentMappings, getComponentRootSearch, getCompressInstance, getConfigDir, getConfigFile, getConstants, getCoreTagLib, getCTInitFile, getCustomTagExtensions, getCustomTagMappings, getDataSource, getDataSource, getDatasourceConnectionPool, getDataSources, getDataSourcesAsMap, getDebugShowQueryUsage, getDebugTemplate, getDefaultDataSource, getDefaultDumpWriter, getDefaultDumpWriter, getDefaultEncoding, getDefaultResourceProvider, getDeployDirectory, getDumpWriter, getDumpWriter, getDumpWritersEntries, getErrorStatusCode, getErrorTemplate, getErrorTemplate, getErrWriter, getExceptionLogger, getExecutionLogEnabled, getExecutionLogFactory, getExtensionDirectory, getExtensionProviders, getExtensions, getFactory, getFldFile, getFLDs, getFromFunctionCache, getFunctionMapping, getId, getId, getInspectTemplate, getInstalledPatches, getLoadTime, getLocale, getLocalMode, getMailDefaultEncoding, getMailLogger, getMailServers, getMailSpoolInterval, getMailTimeout, getMappingLogger, getMappings, getORMConfig, getORMEngine, getORMEngineClass, getORMLogger, getOutWriter, getPageSource, getPageSourceExisting, getPageSources, getPhysical, getPhysicalResourceExisting, getPhysicalResources, getProxyPassword, getProxyPort, getProxyServer, getProxyUsername, getPSQL, getRemoteClientDirectory, getRemoteClientLog, getRemoteClients, getRemoteClientUsage, getRequestTimeout, getRequestTimeoutLogger, getResource, getResourceCharset, getResourceProviders, getRPCClassLoader, getScheduleLogger, getScheduler, getScopeCascadingType, getScopeLogger, getScriptProtect, getSearchEngine, getSecurityKey, getSecurityToken, getSerialNumber, getSessionCluster, getSessionScopeDir, getSessionScopeDirSize, getSessionTimeout, getSessionType, getSpoolerEngine, getTagDirectory, getTagMapping, getTempDirectory, getTemplateCharset, getThreadLogger, getTimeServer, getTimeServerOffset, getTimeZone, getTldFile, getTLDs, getTraceLogger, getTriggerComponentDataMember, getUseTimeServer, getVersion, getVideoDirectory, getVideoExecuterClass, getWebCharset, hasPassword, hasServerPassword, intDebug, isAllowURLRequestTimeout, isClientCookies, isClientManagement, isDomainCookies, isExtensionEnabled, isMailSpoolEnable, isProxyEnableFor, isSessionManagement, isShowVersion, isSuppressContent, isSuppressWhitespace, listComponentCache, listCTCache, mergeFormAndURL, passwordEqual, putCachedPageSource, putCTInitFile, putToFunctionCache, reloadTimeServerOffset, reset, resetORMEngine, resetRPCClassLoader, setAllowURLRequestTimeout, setAMFCaster, setAMFCaster, setAMFConfigType, setAMFConfigType, setCacheDefaultConnectionName, setCacheMD5, setThreadLogger, toPageSource, useComponentPathCache, useComponentShadow, useCTPathCache
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface railo.runtime.config.ConfigServer
getRemoteClients
 
Methods inherited from interface railo.runtime.config.Config
allowImplicidQueryCall, allowRealPath, debug, doCustomTagDeepSearch, doLocalCustomTag, getAdminSyncClass, getApplicationListener, getApplicationLogger, getApplicationTimeout, getBaseComponentPageSource, getBaseComponentTemplate, getCacheDir, getCacheDirSize, getCFCExtension, getCFMLExtensions, getCFXTagPool, getClassLoader, getClientScopeDir, getClientScopeDirSize, getClientType, getClusterClass, getCompileType, getComponentDataMemberDefaultAccess, getComponentDumpTemplate, getComponentMapping, getConfigDir, getConfigFile, getConstants, getCustomTagExtensions, getCustomTagMappings, getDataSource, getDataSources, getDataSourcesAsMap, getDebugTemplate, getDefaultDumpWriter, getDefaultDumpWriter, getDefaultEncoding, getDefaultResourceProvider, getDeployDirectory, getDumpWriter, getDumpWriter, getErrorStatusCode, getErrorTemplate, getErrorTemplate, getErrWriter, getExceptionLogger, getExtensionDirectory, getExtensionProviders, getExtensions, getFactory, getFldFile, getId, getLoadTime, getLocale, getLocalMode, getMailDefaultEncoding, getMailLogger, getMailServers, getMailSpoolInterval, getMailTimeout, getMappings, getOutWriter, getPageSource, getPhysical, getProxyPassword, getProxyPort, getProxyServer, getProxyUsername, getPSQL, getRemoteClientDirectory, getRemoteClientLog, getRemoteClientUsage, getRequestTimeout, getRequestTimeoutLogger, getResource, getResourceCharset, getResourceProviders, getRPCClassLoader, getScheduleLogger, getScheduler, getScopeCascadingType, getScriptProtect, getSearchEngine, getSessionTimeout, getSessionType, getSpoolerEngine, getTempDirectory, getTemplateCharset, getTimeServer, getTimeServerOffset, getTimeZone, getTldFile, getTraceLogger, getTriggerComponentDataMember, getVersion, getVideoDirectory, getVideoExecuterClass, getWebCharset, hasPassword, hasServerPassword, isClientCookies, isClientManagement, isDomainCookies, isExtensionEnabled, isMailSpoolEnable, isProxyEnableFor, isSessionManagement, isShowVersion, isSuppressWhitespace, mergeFormAndURL, passwordEqual, reloadTimeServerOffset, reset, useComponentShadow
 

Method Detail

getConfigListener

public ConfigListener getConfigListener()
Specified by:
getConfigListener in interface ConfigServer
Returns:
the configListener

setConfigListener

public void setConfigListener(ConfigListener configListener)
Specified by:
setConfigListener in interface ConfigServer
Parameters:
configListener - the configListener to set

getConfigServer

public ConfigServer getConfigServer(String password)
Specified by:
getConfigServer in interface Config
Returns:
ConfigServer
See Also:
Config.getConfigServer(java.lang.String)

getConfigServer

public ConfigServer getConfigServer()
Specified by:
getConfigServer in interface Config
Returns:

getConfigWebs

public ConfigWeb[] getConfigWebs()
Specified by:
getConfigWebs in interface ConfigServer
Returns:
returns all config webs
See Also:
ConfigServer.getConfigWebs()

getConfigWeb

public ConfigWeb getConfigWeb(String realpath)
Specified by:
getConfigWeb in interface ConfigServer
Returns:
returns config web matching given realpath
See Also:
ConfigServer.getConfigWeb(java.lang.String)

getConfigWebById

public ConfigWebImpl getConfigWebById(String id)

getJSPFactories

public CFMLFactoryImpl[] getJSPFactories()
Returns:
JspFactoryImpl array

getJSPFactoriesAsMap

public Map getJSPFactoriesAsMap()
Specified by:
getJSPFactoriesAsMap in interface ConfigServer
Returns:
Returns the contextes.
See Also:
ConfigServer.getJSPFactoriesAsMap()

getSecurityManager

public SecurityManager getSecurityManager(String id)
Specified by:
getSecurityManager in interface ConfigServer
Returns:
returns SecurityManager matching config
See Also:
ConfigServer.getSecurityManager(java.lang.String)

hasIndividualSecurityManager

public boolean hasIndividualSecurityManager(String id)
Description copied from interface: ConfigServer
is there a individual security manager for given id

Specified by:
hasIndividualSecurityManager in interface ConfigServer
Parameters:
id - for the security manager
Returns:
returns SecurityManager matching config
See Also:
ConfigServer.hasIndividualSecurityManager(java.lang.String)

getDefaultSecurityManager

public SecurityManager getDefaultSecurityManager()
Specified by:
getDefaultSecurityManager in interface ConfigServer
Returns:
Returns the securityManager.
See Also:
ConfigServer.getDefaultSecurityManager()

getCFMLEngine

public CFMLEngine getCFMLEngine()
Specified by:
getCFMLEngine in interface ConfigServer
Returns:
Returns the engine.
See Also:
ConfigServer.getCFMLEngine()

getCFMLEngineImpl

public CFMLEngineImpl getCFMLEngineImpl()

getRootDirectory

public Resource getRootDirectory()
Specified by:
getRootDirectory in interface Config
Specified by:
getRootDirectory in class ConfigImpl
Returns:
Returns the rootDir.
See Also:
Config.getRootDirectory()

getUpdateType

public String getUpdateType()
Specified by:
getUpdateType in interface Config
Specified by:
getUpdateType in class ConfigImpl
Returns:
returns update type (auto or manual)
See Also:
Config.getUpdateType()

setUpdateType

public void setUpdateType(String updateType)
Specified by:
setUpdateType in interface ConfigServer
Parameters:
updateType - The updateType to set.
See Also:
ConfigServer.setUpdateType(java.lang.String)

getUpdateLocation

public URL getUpdateLocation()
Specified by:
getUpdateLocation in interface Config
Specified by:
getUpdateLocation in class ConfigImpl
Returns:
returns URL for update
See Also:
Config.getUpdateLocation()

setUpdateLocation

public void setUpdateLocation(URL updateLocation)
Specified by:
setUpdateLocation in interface ConfigServer
Parameters:
updateLocation - The updateLocation to set.
See Also:
ConfigServer.setUpdateLocation(java.net.URL)

setUpdateLocation

public void setUpdateLocation(String strUpdateLocation)
                       throws MalformedURLException
Specified by:
setUpdateLocation in interface ConfigServer
Parameters:
strUpdateLocation - The updateLocation to set.
Throws:
MalformedURLException
See Also:
ConfigServer.setUpdateLocation(java.lang.String)

setUpdateLocation

public void setUpdateLocation(String strUpdateLocation,
                              URL defaultValue)
Specified by:
setUpdateLocation in interface ConfigServer
Parameters:
strUpdateLocation - The updateLocation to set.
See Also:
ConfigServer.setUpdateLocation(java.lang.String, java.net.URL)

getSecurityManager

public SecurityManager getSecurityManager()
Specified by:
getSecurityManager in interface Config
Overrides:
getSecurityManager in class ConfigImpl
Returns:
Returns the accessor.
See Also:
Config.getSecurityManager()

getInstance

public static ConfigServerImpl getInstance()
Returns:
the instance

setLabels

public void setLabels(Map<String,String> labels)

getLabels

public Map<String,String> getLabels()

getRequestMonitors

public RequestMonitor[] getRequestMonitors()
Specified by:
getRequestMonitors in class ConfigImpl

getRequestMonitor

public RequestMonitor getRequestMonitor(String name)
                                 throws ApplicationException
Throws:
ApplicationException

getIntervallMonitors

public IntervallMonitor[] getIntervallMonitors()

getIntervallMonitor

public IntervallMonitor getIntervallMonitor(String name)
                                     throws ApplicationException
Throws:
ApplicationException

isMonitoringEnabled

public boolean isMonitoringEnabled()
Specified by:
isMonitoringEnabled in class ConfigImpl

getLoginDelay

public int getLoginDelay()
Specified by:
getLoginDelay in class ConfigImpl

getLoginCaptcha

public boolean getLoginCaptcha()
Specified by:
getLoginCaptcha in class ConfigImpl

getConfigServerDir

public Resource getConfigServerDir()
Specified by:
getConfigServerDir in class ConfigImpl

createClusterScope

public static Cluster createClusterScope(Config config)
                                  throws PageException
Throws:
PageException

checkPermGenSpace

public static void checkPermGenSpace(Config config,
                                     boolean check)
if free permspace gen is lower than 10000000 bytes, railo shrinks all classloaders

Parameters:
cs -

countLoadedPages

public static long countLoadedPages(ConfigServer cs)


Copyright © 2012 Railo