|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.plumtree.uiinfrastructure.application.AppWarmUp
public class AppWarmUp
This class provides the common jumpable initialization code for both the servlet and .aspx code to call. The initialization can be split into a core section, and a load section. The core method should be run only once, while the load methods can be called multiple times, to support extensible features.
Field Summary | |
---|---|
static java.lang.String |
APP_KEY_NUM_CUSTOM_VARPACKS
This counter is used in the diagnostic page. |
static java.lang.String |
FILE_ACTIVITY_SPACES_XML
|
static java.lang.String |
FILE_CUSTOM_ACTIVITY_SPACES_XML
|
static java.lang.String |
FILE_CUSTOM_VAR_PACKS_XML
|
static java.lang.String |
FILE_PORTAL_CONFIG_XML
|
static java.lang.String |
FILE_SERVER_CONFIG_XML
|
static java.lang.String |
FILE_VAR_PACKS_XML
|
static java.lang.String |
FOLDER_COMMON
|
static java.lang.String |
FOLDER_DYNAMIC_LOADS
|
static java.lang.String |
FOLDER_I18N
|
static java.lang.String |
FOLDER_PORTAL
|
static java.lang.String |
FOLDER_SETTINGS
|
static java.lang.String |
KEY_APP_WARMUP_HELPER
|
static java.lang.String |
KEY_BASE_CONFIG_VARPACK
|
static java.lang.String |
KEY_CACHEMAN_CLASS_TYPE_MANAGER
|
static java.lang.String |
KEY_CACHEMAN_IMAGE_SERVER_HELPER
|
static java.lang.String |
KEY_CACHEMAN_JS_REGISTRY
|
static java.lang.String |
KEY_CACHEMAN_RESOURCE_MANAGER
|
static java.lang.String |
KEY_CACHEMAN_SECURE_JS_REGISTRY
|
static java.lang.String |
KEY_FILE_ACTIVITY_SPACES
|
static java.lang.String |
KEY_FILE_CUSTOM_ACTIVITY_SPACES
|
static java.lang.String |
KEY_FILE_CUSTOM_VAR_PACKS
|
static java.lang.String |
KEY_FILE_VAR_PACKS
|
static java.lang.String |
KEY_PATH_LIB_HOME
|
static java.lang.String |
KEY_PATH_PORTAL_CONFIG
|
static java.lang.String |
KEY_PATH_PORTAL_DYNAMIC_LOADS
|
static java.lang.String |
KEY_PATH_PORTAL_HOME
|
static java.lang.String |
KEY_PATH_PORTAL_I18N
|
static java.lang.String |
KEY_PATH_PORTAL_SETTINGS
|
static java.lang.String |
KEY_PATH_WEB_HOME
|
static java.lang.String |
KEY_STR_APPLICATION_NAME
|
static java.lang.String |
KEY_STR_DEV_KIT_VERSION
|
static java.lang.String |
KEY_STR_IMAGESERVER_BASE_URL
|
static java.lang.String |
KEY_STR_IMAGESERVER_CONNECTION_URL
|
static java.lang.String |
KEY_STR_PLATFORM
|
static java.lang.String |
KEY_STR_SECURE_IMAGESERVER_BASE_URL
|
static IOKContext |
m_configContext
|
static IOKComponent |
m_portalComponent
|
static java.lang.String |
PARAM_APPWARMUPHELPER_LIBFILE
|
static java.lang.String |
PARAM_APPWARMUPHELPER_NAME
|
static java.lang.String |
PARAM_PTHOME_ENVVAR_NAME
|
static java.lang.String |
PARAM_PTHOME_PRODUCT_NAME
|
static java.lang.String |
PATH_SEPARATOR
|
static XPHashtable |
s_htInitSettings
Hashtable that stores all of the settings gathered from initialization. |
static java.lang.String |
STR_SUPPORTED_DOTNET_SDK
|
static java.lang.String |
STR_SUPPORTED_JAVA_JDK_1
|
static java.lang.String |
STR_SUPPORTED_JAVA_JDK_2
|
static java.lang.String |
STR_SUPPORTED_JAVA_JDK_3
|
static java.lang.String |
STR_SUPPORTED_JAVA_JDK_6
|
static java.lang.String |
SUFFIX_WAR_FILE
|
static java.lang.String |
SUFFIX_XML_FILE
|
Constructor Summary | |
---|---|
AppWarmUp()
|
Method Summary | |
---|---|
static void |
GenerateFailureErrorReport(java.lang.Throwable e)
Handle exception in startup, and general failure messages. |
static IOKContext |
GetOKConfigContext()
Get the OpenConfig context for use by OpenKernel services. |
static java.lang.Object |
GetSettingValue(java.lang.String strKey)
Helper to return the setting value from the settings hashtable. |
static java.lang.String |
GetSettingValueAsString(java.lang.String strKey)
Helper to return the setting value from the settings hashtable. |
static EventLog[] |
getStartupNotificationErrorLogs()
Gets the error report from the startup noitication service, Identical to the information generated by the diagnostic tool. |
static java.lang.String[] |
getStartupNotificationErrorReport()
Gets the error report from the startup noitication service, Identical to the information generated by the diagnostic tool. |
static ReturnValue |
HelperDeterminePaths()
Helper that determines some of the more complex paths. |
static ReturnValue |
HelperLoadVarPacks(java.lang.String strVarPackFile,
java.lang.String strLibHomePath,
java.lang.String strConfigPath,
IApplication application,
boolean bOverWrite)
Helper that loads VarPacks from a config file. |
static ReturnValue |
HelperTestLanguages(java.lang.String _strPortalResourceFolder)
Helper that tests our language files. |
static void |
Init(java.lang.String _strApplicationName)
This is the main method used to initialize the Portal Application. |
static ReturnValue |
LoopStartupTasks(java.lang.String _strApplicationName,
boolean bPreflightForProgress)
Actual executor for the startup tasks; handles the concept of "preflight", which the progress indicator uses to estimate the number of tasks and task-steps to run for an accurate representation of true progress. |
static ReturnValue |
RunStartupTasks(java.lang.String _strApplicationName)
Execute the startup tasks defined in PTStartupTasks. |
static void |
setNotification(IStartupNotification notify)
This is the first method any tool should call that wants to know if startup is successful. |
static void |
setStartupNotificationErrorLogs(EventLog[] eventVector,
XPArrayList reportLog)
Gets the error report from the startup noitication service, Identical to the information generated by the diagnostic tool. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static XPHashtable s_htInitSettings
public static final java.lang.String SUFFIX_XML_FILE
public static final java.lang.String SUFFIX_WAR_FILE
public static final java.lang.String PATH_SEPARATOR
public static IOKContext m_configContext
public static IOKComponent m_portalComponent
public static final java.lang.String STR_SUPPORTED_DOTNET_SDK
public static final java.lang.String STR_SUPPORTED_JAVA_JDK_1
public static final java.lang.String STR_SUPPORTED_JAVA_JDK_2
public static final java.lang.String STR_SUPPORTED_JAVA_JDK_3
public static final java.lang.String STR_SUPPORTED_JAVA_JDK_6
public static final java.lang.String FOLDER_I18N
public static final java.lang.String FOLDER_PORTAL
public static final java.lang.String FOLDER_SETTINGS
public static final java.lang.String FOLDER_DYNAMIC_LOADS
public static final java.lang.String FOLDER_COMMON
public static final java.lang.String FILE_SERVER_CONFIG_XML
public static final java.lang.String FILE_PORTAL_CONFIG_XML
public static final java.lang.String FILE_VAR_PACKS_XML
public static final java.lang.String FILE_ACTIVITY_SPACES_XML
public static final java.lang.String FILE_CUSTOM_VAR_PACKS_XML
public static final java.lang.String FILE_CUSTOM_ACTIVITY_SPACES_XML
public static final java.lang.String PARAM_PTHOME_PRODUCT_NAME
public static final java.lang.String PARAM_PTHOME_ENVVAR_NAME
public static final java.lang.String PARAM_APPWARMUPHELPER_LIBFILE
public static final java.lang.String PARAM_APPWARMUPHELPER_NAME
public static final java.lang.String KEY_CACHEMAN_IMAGE_SERVER_HELPER
public static final java.lang.String KEY_CACHEMAN_RESOURCE_MANAGER
public static final java.lang.String KEY_CACHEMAN_JS_REGISTRY
public static final java.lang.String KEY_CACHEMAN_SECURE_JS_REGISTRY
public static final java.lang.String KEY_CACHEMAN_CLASS_TYPE_MANAGER
public static final java.lang.String KEY_APP_WARMUP_HELPER
public static final java.lang.String KEY_BASE_CONFIG_VARPACK
public static final java.lang.String KEY_FILE_VAR_PACKS
public static final java.lang.String KEY_FILE_ACTIVITY_SPACES
public static final java.lang.String KEY_FILE_CUSTOM_VAR_PACKS
public static final java.lang.String KEY_FILE_CUSTOM_ACTIVITY_SPACES
public static final java.lang.String KEY_PATH_PORTAL_HOME
public static final java.lang.String KEY_PATH_PORTAL_SETTINGS
public static final java.lang.String KEY_PATH_PORTAL_CONFIG
public static final java.lang.String KEY_PATH_PORTAL_I18N
public static final java.lang.String KEY_PATH_PORTAL_DYNAMIC_LOADS
public static final java.lang.String KEY_PATH_WEB_HOME
public static final java.lang.String KEY_PATH_LIB_HOME
public static final java.lang.String KEY_STR_APPLICATION_NAME
public static final java.lang.String KEY_STR_DEV_KIT_VERSION
public static final java.lang.String KEY_STR_PLATFORM
public static final java.lang.String KEY_STR_IMAGESERVER_BASE_URL
public static final java.lang.String KEY_STR_SECURE_IMAGESERVER_BASE_URL
public static final java.lang.String KEY_STR_IMAGESERVER_CONNECTION_URL
public static final java.lang.String APP_KEY_NUM_CUSTOM_VARPACKS
Constructor Detail |
---|
public AppWarmUp()
Method Detail |
---|
public static final void setNotification(IStartupNotification notify)
public static final void Init(java.lang.String _strApplicationName)
_strApplicationName
- Name to give to this Application.public static void GenerateFailureErrorReport(java.lang.Throwable e)
e
- public static IOKContext GetOKConfigContext()
public static java.lang.String[] getStartupNotificationErrorReport()
public static EventLog[] getStartupNotificationErrorLogs()
public static void setStartupNotificationErrorLogs(EventLog[] eventVector, XPArrayList reportLog)
public static final ReturnValue HelperLoadVarPacks(java.lang.String strVarPackFile, java.lang.String strLibHomePath, java.lang.String strConfigPath, IApplication application, boolean bOverWrite)
strVarPackFile
- strLibHomePath
- strConfigPath
- application
- bOverWrite
- true implies that the Custom Object Counter will be incremented for these classes.public static final ReturnValue HelperTestLanguages(java.lang.String _strPortalResourceFolder)
_strPortalResourceFolder
- public static ReturnValue HelperDeterminePaths()
public static java.lang.Object GetSettingValue(java.lang.String strKey)
strKey
- Key for the setting value to retrieve.
public static java.lang.String GetSettingValueAsString(java.lang.String strKey)
strKey
- Key for the setting value to retrieve.
public static ReturnValue RunStartupTasks(java.lang.String _strApplicationName)
public static ReturnValue LoopStartupTasks(java.lang.String _strApplicationName, boolean bPreflightForProgress)
bPreflightForProgress
-
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |