org.infoglue.deliver.applications.actions
Class ViewApplicationStateAction
java.lang.Object
|
+--org.infoglue.cms.applications.common.actions.WebworkAbstractAction
|
+--org.infoglue.cms.applications.common.actions.InfoGlueAbstractAction
|
+--org.infoglue.deliver.applications.actions.ViewApplicationStateAction
- All Implemented Interfaces:
- webwork.action.Action, webwork.action.CommandDriven, java.io.Serializable, webwork.action.ServletRequestAware, webwork.action.ServletResponseAware
- public class ViewApplicationStateAction
- extends InfoGlueAbstractAction
This is the action that shows the application state and also can be used to set up surveilence.
The idea is to have one command which allways returns a known resultpage if it's ok. Otherwise it prints
an error-statement. This action is then called every x minutes by the surveilence and an alarm is raised if something is wrong.
We also have a command which can list more status about the application.
- Author:
- Mattias Bogeblad
- See Also:
- Serialized Form
| Fields inherited from interface webwork.action.Action |
ERROR, INPUT, LOGIN, NONE, SUCCESS |
| Methods inherited from class org.infoglue.cms.applications.common.actions.InfoGlueAbstractAction |
beginTransaction, closeDatabase, closeTransaction, encode, getCMSBaseUrl, getColorScheme, getComponentRendererAction, getComponentRendererUrl, getCurrentURL, getLanguageCode, getLocale, getPrincipalPropertyHashValues, getPrincipalPropertyValue, getPrincipalPropertyValue, getSessionTimeout, getThis, getURLBase, getUserName, hasAccessTo, hasAccessTo, rollbackTransaction, setColorScheme |
| Methods inherited from class org.infoglue.cms.applications.common.actions.WebworkAbstractAction |
doDefault, execute, getBrowserBean, getCurrentUrl, getError, getErrors, getInfoGluePrincipal, getLocalizedString, getRoot, getSession, setCommand, setServletRequest, setServletResponse |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ViewApplicationStateAction
public ViewApplicationStateAction()
- The constructor for this action - contains nothing right now.
doClearCache
public java.lang.String doClearCache()
throws java.lang.Exception
- This action allows clearing of the given cache manually.
java.lang.Exception
doClearCaches
public java.lang.String doClearCaches()
throws java.lang.Exception
- This action allows clearing of the caches manually.
java.lang.Exception
doExecute
public java.lang.String doExecute()
throws java.lang.Exception
- This method is the application entry-point. The method does a lot of checks to see if infoglue
is installed correctly and if all resources needed are available.
- Overrides:
doExecute in class WebworkAbstractAction
java.lang.Exception
getIsApplicationSettingsOk
public boolean getIsApplicationSettingsOk()
getIsDatabaseConnectionOk
public boolean getIsDatabaseConnectionOk()
getIsDiskPermissionOk
public boolean getIsDiskPermissionOk()
getIsTestQueriesOk
public boolean getIsTestQueriesOk()
getCaches
public java.util.Map getCaches()
getStates
public java.util.List getStates()
setCacheName
public void setCacheName(java.lang.String cacheName)