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


Nested Class Summary
 
Nested classes/interfaces inherited from class railo.runtime.config.ConfigImpl
ConfigImpl.ComponentMetaData
 
Field Summary
 
Fields inherited from class railo.runtime.config.ConfigImpl
AMF_CONFIG_TYPE_MANUAL, AMF_CONFIG_TYPE_XML, CFML_WRITER_REFULAR, CFML_WRITER_WS, CFML_WRITER_WS_PREF, CLIENT_BOOLEAN_FALSE, CLIENT_BOOLEAN_TRUE, DEBUG_DATABASE, DEBUG_EXCEPTION, DEBUG_IMPLICIT_ACCESS, DEBUG_QUERY_USAGE, DEBUG_TIMER, DEBUG_TRACING, INSPECT_UNDEFINED, MODE_CUSTOM, MODE_STRICT, RAILO_EXTENSION_PROVIDERS, SERVER_BOOLEAN_FALSE, SERVER_BOOLEAN_TRUE
 
Fields inherited from interface railo.runtime.config.Config
CACHE_DEFAULT_FUNCTION, CACHE_DEFAULT_NONE, CACHE_DEFAULT_OBJECT, CACHE_DEFAULT_QUERY, CACHE_DEFAULT_RESOURCE, CACHE_DEFAULT_TEMPLATE, CLIENT_SCOPE_TYPE_COOKIE, CLIENT_SCOPE_TYPE_DB, CLIENT_SCOPE_TYPE_FILE, INSPECT_ALWAYS, INSPECT_NEVER, INSPECT_ONCE, RECOMPILE_AFTER_STARTUP, RECOMPILE_ALWAYS, RECOMPILE_NEVER, SCOPE_SMALL, SCOPE_STANDARD, SCOPE_STRICT, SESSION_TYPE_CFML, SESSION_TYPE_J2EE
 
Method Summary
 boolean allowRequestTimeout()
           
 void checkPermGenSpace(boolean check)
          if free permspace gen is lower than 10000000 bytes, railo shrinks all classloaders
 long countLoadedPages()
           
 Cluster createClusterScope()
           
 Object getActionMonitor(String name)
           
 ActionMonitorCollector getActionMonitorCollector()
           
 CFMLEngine getCFMLEngine()
           
 ConfigListener getConfigListener()
           
 ConfigServer getConfigServer(String password)
           
 ConfigWeb getConfigWeb(String realpath)
           
 ConfigWebImpl getConfigWebById(String id)
           
 ConfigWeb[] getConfigWebs()
           
 SecurityManager getDefaultSecurityManager()
           
 boolean getFullNullSupport()
           
 String[] getInstalledPatches()
           
static ConfigServerImpl getInstance()
           
 IntervallMonitor getIntervallMonitor(String name)
           
 IntervallMonitor[] getIntervallMonitors()
           
 CFMLFactoryImpl[] getJSPFactories()
           
 Map<String,CFMLFactory> getJSPFactoriesAsMap()
           
 Map<String,String> getLabels()
           
 boolean getLoginCaptcha()
           
 int getLoginDelay()
           
 RequestMonitor getRequestMonitor(String name)
           
 RequestMonitor[] getRequestMonitors()
           
 Resource getRootDirectory()
           
 Resource getSecurityDirectory()
           
 SecurityManager getSecurityManager()
           
 SecurityManager getSecurityManager(String id)
           
 ThreadQueueImpl getThreadQueue()
           
 URL getUpdateLocation()
           
 String getUpdateType()
           
 boolean hasIndividualSecurityManager(String id)
          is there a individual security manager for given id
 boolean hasServerPassword()
           
 boolean isMonitoringEnabled()
           
 void reset()
          reset config
 void setActionMonitorCollector(ActionMonitorCollector actionMonitorCollector)
           
 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, checkForChangesInConfigFile, clearComponentCache, clearComponentMetadata, clearCTCache, clearFunctionCache, clearResourceProviders, closeConnection, contentLength, createCustomTagAppMappings, createFunction, createTag, debug, debugLogOutput, doComponentDeepSearch, doCustomTagDeepSearch, doLocalCustomTag, flushComponentPathCache, flushCTPathCache, getAdminSync, getAdminSyncClass, getAllMappings, getAllMappings, getAMFCaster, getAMFCasterArguments, getAMFCasterClass, getAMFConfigType, getApplicationListener, getApplicationLogger, getApplicationTimeout, getBaseComponentPageSource, getBaseComponentPageSource, getBaseComponentTemplate, getBufferOutput, getCacheConnections, getCacheDefaultConnection, getCacheDefaultConnectionName, getCacheDir, getCacheDirSize, getCachedPage, getCacheMD5, getCFCExtension, getCFMLExtensions, getCFMLWriterType, getCFXTagPool, getClassLoader, getClassLoader, getClientCluster, getClientScopeDir, getClientScopeDirSize, getClientTimeout, getClientType, getClusterClass, getCombinedFLDs, getCompileType, getComponentDataMemberDefaultAccess, getComponentDefaultImport, getComponentDumpTemplate, getComponentLocalSearch, getComponentMappings, getComponentMetadata, getComponentRootSearch, getCompressInstance, getConfigDir, getConfigFile, getConstants, getCoreTagLib, getCTInitFile, getCustomTagExtensions, getCustomTagMappings, getDataSource, getDataSource, getDatasourceConnectionPool, getDataSources, getDataSourcesAsMap, getDebugEntries, getDebugEntry, getDebugMaxRecordsLogged, getDebugOptions, getDebugTemplate, getDefaultDataSource, getDefaultDumpWriter, getDefaultEncoding, getDefaultResourceProvider, getDeployDirectory, getDeployLogger, getDotNotationUpperCase, getDumpWriter, getDumpWriter, getDumpWritersEntries, getErrorStatusCode, getErrorTemplate, getErrWriter, getExceptionLogger, getExecutionLogEnabled, getExecutionLogFactory, getExtensionDirectory, getExtensionProviders, getExtensions, getFactory, getFldFile, getFLDs, getFromFunctionCache, getFunctionMapping, getId, getId, getInspectTemplate, getLoadTime, getLocale, getLocalMode, getMailDefaultEncoding, getMailLogger, getMailServers, getMailSpoolInterval, getMailTimeout, getMappingLogger, getMappings, getMode, getORMConfig, getORMEngine, getORMEngineClass, getORMLogger, getOutWriter, getPageSource, getPageSourceExisting, getPageSources, getPhysical, getPhysicalResourceExisting, getPhysicalResources, getProxyData, getPSQL, getRemoteClientDirectory, getRemoteClientLog, getRemoteClients, getRemoteClientUsage, getRequestTimeout, getRequestTimeoutLogger, getResource, getResourceCharset, getResourceClassLoader, getResourceProviders, getRestList, getRestLogger, getRestMappings, getRestSetting, getRPCClassLoader, getScheduleLogger, getScheduler, getScopeCascadingType, getScopeLogger, getScriptProtect, getSearchEngine, getSecurityKey, getSecurityToken, getSerialNumber, getSessionCluster, getSessionScopeDir, getSessionScopeDirSize, getSessionTimeout, getSessionType, getSpoolerEngine, getSupressWSBeforeArg, getTagDirectory, getTagMapping, getTempDirectory, getTemplateCharset, getThreadLogger, getTimeServer, getTimeServerOffset, getTimeZone, getTldFile, getTLDs, getTraceLogger, getTriggerComponentDataMember, getUseTimeServer, getVersion, getVideoDirectory, getVideoExecuterClass, getWebCharset, hasDebugOptions, hasPassword, intDebug, intDebugLogOutput, isAllowURLRequestTimeout, isClientCookies, isClientManagement, isDomainCookies, isExtensionEnabled, isMailSpoolEnable, isProxyEnableFor, isSessionManagement, isShowVersion, isSuppressContent, isSuppressWhitespace, lastModified, listComponentCache, listCTCache, mergeFormAndURL, passwordEqual, putCachedPageSource, putComponentMetadata, putCTInitFile, putToFunctionCache, reloadTimeServerOffset, resetORMEngine, resetRPCClassLoader, setAllowURLRequestTimeout, setAMFCaster, setAMFCaster, setAMFConfigType, setAMFConfigType, 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, getCacheConnections, getCacheDefaultConnection, getCacheDefaultConnectionName, getCacheDir, getCacheDirSize, getCFCExtension, getCFMLExtensions, getCFXTagPool, getClassLoader, getClassLoader, getClientCluster, getClientScopeDir, getClientScopeDirSize, getClientTimeout, getClientType, getClusterClass, getCompileType, getComponentDataMemberDefaultAccess, getComponentDumpTemplate, getComponentMappings, getConfigDir, getConfigFile, getConstants, getCustomTagExtensions, getCustomTagMappings, getDataSource, getDataSource, getDataSources, getDataSourcesAsMap, getDebugTemplate, getDefaultDataSource, getDefaultDumpWriter, getDefaultEncoding, getDefaultResourceProvider, getDeployDirectory, getDumpWriter, getDumpWriter, getErrorStatusCode, getErrorTemplate, getErrWriter, getExceptionLogger, getExtensionDirectory, getExtensionProviders, getExtensions, getFactory, getFldFile, getId, getInspectTemplate, getLoadTime, getLocale, getLocalMode, getMailDefaultEncoding, getMailLogger, getMailServers, getMailSpoolInterval, getMailTimeout, getMappings, getOutWriter, getPageSource, getPageSourceExisting, getPageSources, getPhysical, getPhysicalResourceExisting, getPhysicalResources, getProxyData, getPSQL, getRemoteClientDirectory, getRemoteClientLog, getRemoteClientUsage, getRequestTimeout, getRequestTimeoutLogger, getResource, getResourceCharset, getResourceProviders, getRestSetting, getRPCClassLoader, getScheduleLogger, getScheduler, getScopeCascadingType, getScriptProtect, getSearchEngine, getSessionCluster, getSessionTimeout, getSessionType, getSpoolerEngine, getTempDirectory, getTemplateCharset, getTimeServer, getTimeServerOffset, getTimeZone, getTldFile, getTraceLogger, getTriggerComponentDataMember, getVersion, getVideoDirectory, getVideoExecuterClass, getWebCharset, hasPassword, isClientCookies, isClientManagement, isDomainCookies, isExtensionEnabled, isMailSpoolEnable, isProxyEnableFor, isSessionManagement, isShowVersion, isSuppressWhitespace, mergeFormAndURL, passwordEqual, reloadTimeServerOffset, 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

getConfigWebs

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

getConfigWeb

public ConfigWeb getConfigWeb(String realpath)
Specified by:
getConfigWeb in interface ConfigServer
Returns:
returns config web matching given realpath

getConfigWebById

public ConfigWebImpl getConfigWebById(String id)

getJSPFactories

public CFMLFactoryImpl[] getJSPFactories()
Returns:
JspFactoryImpl array

getJSPFactoriesAsMap

public Map<String,CFMLFactory> getJSPFactoriesAsMap()
Specified by:
getJSPFactoriesAsMap in interface ConfigServer
Returns:
Returns the contextes.

getSecurityManager

public SecurityManager getSecurityManager(String id)
Specified by:
getSecurityManager in interface ConfigServer
Returns:
returns SecurityManager matching config

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

getDefaultSecurityManager

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

getCFMLEngine

public CFMLEngine getCFMLEngine()
Specified by:
getCFMLEngine in interface ConfigServer

getRootDirectory

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

getUpdateType

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

setUpdateType

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

getUpdateLocation

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

setUpdateLocation

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

setUpdateLocation

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

setUpdateLocation

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

getSecurityManager

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

getInstance

public static ConfigServerImpl getInstance()
Returns:
the instance

setLabels

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

getLabels

public Map<String,String> getLabels()

getThreadQueue

public ThreadQueueImpl getThreadQueue()
Specified by:
getThreadQueue in interface Config

getRequestMonitors

public RequestMonitor[] getRequestMonitors()
Specified by:
getRequestMonitors in interface Config

getRequestMonitor

public RequestMonitor getRequestMonitor(String name)
                                 throws ApplicationException
Specified by:
getRequestMonitor in interface Config
Throws:
ApplicationException

getIntervallMonitors

public IntervallMonitor[] getIntervallMonitors()
Specified by:
getIntervallMonitors in interface Config

getIntervallMonitor

public IntervallMonitor getIntervallMonitor(String name)
                                     throws ApplicationException
Specified by:
getIntervallMonitor in interface Config
Throws:
ApplicationException

setActionMonitorCollector

public void setActionMonitorCollector(ActionMonitorCollector actionMonitorCollector)

getActionMonitorCollector

public ActionMonitorCollector getActionMonitorCollector()

getActionMonitor

public Object getActionMonitor(String name)

isMonitoringEnabled

public boolean isMonitoringEnabled()
Specified by:
isMonitoringEnabled in interface Config

getLoginDelay

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

getLoginCaptcha

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

reset

public void reset()
Description copied from interface: Config
reset config

Specified by:
reset in interface Config
Overrides:
reset in class ConfigImpl

getSecurityDirectory

public Resource getSecurityDirectory()
Specified by:
getSecurityDirectory in interface Config

checkPermGenSpace

public void checkPermGenSpace(boolean check)
Description copied from interface: Config
if free permspace gen is lower than 10000000 bytes, railo shrinks all classloaders

Specified by:
checkPermGenSpace in interface Config

countLoadedPages

public long countLoadedPages()

createClusterScope

public Cluster createClusterScope()
                           throws PageException
Specified by:
createClusterScope in class ConfigImpl
Throws:
PageException

hasServerPassword

public boolean hasServerPassword()
Specified by:
hasServerPassword in interface Config
Returns:
return if a password is set

getInstalledPatches

public String[] getInstalledPatches()
                             throws PageException
Throws:
PageException

allowRequestTimeout

public boolean allowRequestTimeout()
Specified by:
allowRequestTimeout in interface Config

getFullNullSupport

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


Copyright © 2012 Railo