org.infoglue.deliver.applications.actions
Class ViewApplicationStateAction

java.lang.Object
  extended by org.infoglue.cms.applications.common.actions.WebworkAbstractAction
      extended by org.infoglue.cms.applications.common.actions.InfoGlueAbstractAction
          extended by org.infoglue.deliver.applications.actions.ViewApplicationStateAction
All Implemented Interfaces:
java.io.Serializable, webwork.action.Action, webwork.action.CommandDriven, 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

Field Summary
 
Fields inherited from class org.infoglue.cms.applications.common.actions.InfoGlueAbstractAction
colorScheme
 
Fields inherited from interface webwork.action.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
ViewApplicationStateAction()
          The constructor for this action - contains nothing right now.
 
Method Summary
 java.lang.String doClearCache()
          This action allows clearing of the given cache manually.
 java.lang.String doClearCaches()
          This action allows clearing of the caches manually.
 java.lang.String doExecute()
          This method is the application entry-point.
 java.lang.String doGC()
           
 java.lang.String doReCache()
          This action allows recaching of some parts of the caches manually.
 java.lang.String doSetLogError()
          This action allows setting of the loglevel on some basic classes.
 java.lang.String doSetLogInfo()
          This action allows setting of the loglevel on some basic classes.
 java.lang.String doSetLogLevel()
          This action allows setting of the loglevel on any class.
 java.lang.String doSetLogWarning()
          This action allows setting of the loglevel on some basic classes.
 java.util.Map getCaches()
           
 java.util.Map getEventListeners()
           
 boolean getIsApplicationSettingsOk()
           
 boolean getIsDatabaseConnectionOk()
           
 boolean getIsDiskPermissionOk()
           
 boolean getIsTestQueriesOk()
           
 java.lang.String getServerName()
           
 java.util.List getSessionInfoBeanList()
           
 java.util.List getStates()
           
 void setCacheName(java.lang.String cacheName)
           
 void setClassName(java.lang.String className)
           
 void setLogLevel(java.lang.String logLevel)
           
 
Methods inherited from class org.infoglue.cms.applications.common.actions.InfoGlueAbstractAction
beginTransaction, closeDatabase, closeTransaction, commitTransaction, encode, getAnonymousPrincipal, getCMSBaseUrl, getColorScheme, getComponentRendererAction, getComponentRendererUrl, getCurrentURL, getLanguageCode, getLocale, getLogger, getLogoutURL, getOriginalFullURL, getParameter, getPrincipalPropertyHashValues, getPrincipalPropertyValue, getPrincipalPropertyValue, getSessionTimeout, getSingleParameter, getThis, getToolId, getToolLocales, getURLBase, getUserName, hasAccessTo, hasAccessTo, rollbackTransaction, setColorScheme, setLanguageCode, setToolId
 
Methods inherited from class org.infoglue.cms.applications.common.actions.WebworkAbstractAction
doDefault, execute, getBrowserBean, getCurrentUrl, getError, getErrors, getHttpSession, getInfoGluePrincipal, getLocalizedString, getRequest, getResponse, getRoot, getSession, setCommand, setError, setServletRequest, setServletResponse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ViewApplicationStateAction

public ViewApplicationStateAction()
The constructor for this action - contains nothing right now.

Method Detail

doClearCache

public java.lang.String doClearCache()
                              throws java.lang.Exception
This action allows clearing of the given cache manually.

Throws:
java.lang.Exception

doSetLogLevel

public java.lang.String doSetLogLevel()
                               throws java.lang.Exception
This action allows setting of the loglevel on any class.

Throws:
java.lang.Exception

doSetLogInfo

public java.lang.String doSetLogInfo()
                              throws java.lang.Exception
This action allows setting of the loglevel on some basic classes.

Throws:
java.lang.Exception

doSetLogWarning

public java.lang.String doSetLogWarning()
                                 throws java.lang.Exception
This action allows setting of the loglevel on some basic classes.

Throws:
java.lang.Exception

doSetLogError

public java.lang.String doSetLogError()
                               throws java.lang.Exception
This action allows setting of the loglevel on some basic classes.

Throws:
java.lang.Exception

doClearCaches

public java.lang.String doClearCaches()
                               throws java.lang.Exception
This action allows clearing of the caches manually.

Throws:
java.lang.Exception

doReCache

public java.lang.String doReCache()
                           throws java.lang.Exception
This action allows recaching of some parts of the caches manually.

Throws:
java.lang.Exception

doGC

public java.lang.String doGC()
                      throws java.lang.Exception
Throws:
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.

Specified by:
doExecute in class WebworkAbstractAction
Throws:
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()

getEventListeners

public java.util.Map getEventListeners()

getStates

public java.util.List getStates()

setCacheName

public void setCacheName(java.lang.String cacheName)

getSessionInfoBeanList

public java.util.List getSessionInfoBeanList()

getServerName

public java.lang.String getServerName()

setClassName

public void setClassName(java.lang.String className)

setLogLevel

public void setLogLevel(java.lang.String logLevel)


Copyright © 2005 InfoGlue.org All Rights Reserved.