| |
|
| java.lang.Object org.vfny.geoserver.global.ApplicationState
ApplicationState | public class ApplicationState implements PlugIn,InitializingBean(Code) | | This class represents the state of the GeoServer appliaction.
ApplicationState used by the state.jsp tile as a single view on the state of
the GeoServer application. This class may be extended in the future to
provide runtime statistics.
This class is not a bean - content is updated based on methods. As an
example consider the following State diagram:
author: dzwiers, Refractions Research, Inc. version: $Id: ApplicationState.java 7579 2007-10-09 22:30:14Z jdeolive $ |
WEB_CONTAINER_KEY | final public static String WEB_CONTAINER_KEY(Code) | | The key used to store this value in the Web Container
|
ApplicationState | public ApplicationState(Data data, GeoValidator validator, Config config)(Code) | | Creates a new appliction state.
Parameters: data - The data modle. Parameters: validator - The validation module |
destroy | public void destroy()(Code) | | Clean up the Configuration State during application exit.
Since this class just holds data, no resources need to be released.
See Also: org.apache.struts.action.PlugIn.destroy |
fireChange | public void fireChange()(Code) | | signal to any listeners that config has changed.
|
getAppTimestamp | public Date getAppTimestamp()(Code) | | Access appTimestamp property.
Returns the appTimestamp. |
getConfigTimestamp | public Date getConfigTimestamp()(Code) | | Access configTimestamp property.
Returns the configTimestamp. |
getDataBad | public int getDataBad()(Code) | | |
getDataDisabled | public int getDataDisabled()(Code) | | |
getDataGood | public int getDataGood()(Code) | | |
getDataStoreErrorKeys | public List getDataStoreErrorKeys()(Code) | | Flattened for your JSP pleasure
|
getDataStoreErrorValues | public List getDataStoreErrorValues()(Code) | | Flattened for your JSP pleasure
|
getDataStoreErrors | public Map getDataStoreErrors()(Code) | | DataStore Exceptions by dataStoreId:typeName
This only includes problems! If this map is null or isEmpty
status is "ready".
|
getGeoserverBad | public int getGeoserverBad()(Code) | | |
getGeoserverDisabled | public int getGeoserverDisabled()(Code) | | |
getGeoserverGood | public int getGeoserverGood()(Code) | | |
getNameSpaceErrorKeys | public List getNameSpaceErrorKeys()(Code) | | Flattened for your JSP pleasure
|
getNameSpaceErrorValues | public List getNameSpaceErrorValues()(Code) | | Flattened for your JSP pleasure
|
getNameSpaceErrors | public Map getNameSpaceErrors()(Code) | | Namespace Exceptions by prefix:typeName.
This only includes problems! If this map is null or isEmpty
status is "ready".
|
getValidationErrorKeys | public List getValidationErrorKeys()(Code) | | Flattened for your JSP pleasure
|
getValidationErrorValues | public List getValidationErrorValues()(Code) | | Flattened for your JSP pleasure
|
getValidationErrors | public Map getValidationErrors()(Code) | | Validation Exceptions by obejct type : name where object type is one of TestSuite, Test, PlugIn
This only includes problems! If this map is null or isEmpty
status is "ready".
|
getWCSErrorKeys | public List getWCSErrorKeys()(Code) | | |
getWFSErrorKeys | public List getWFSErrorKeys()(Code) | | |
getWMSErrorKeys | public List getWMSErrorKeys()(Code) | | |
getWcsBad | public int getWcsBad()(Code) | | q: What foul manner of magic is this?
|
getWcsDisabled | public int getWcsDisabled()(Code) | | q: This does not make a lot of sense - did you want to consult both ConfigChanged and GeoServer changed?
|
getWcsGood | public int getWcsGood()(Code) | | Q: what is this supposed to do?
|
getWfsBad | public int getWfsBad()(Code) | | q: What foul manner of magic is this?
|
getWfsDisabled | public int getWfsDisabled()(Code) | | q: This does not make a lot of sense - did you want to consult both ConfigChanged and GeoServer changed?
|
getWfsGood | public int getWfsGood()(Code) | | Q: what is this supposed to do?
|
getWmsBad | public int getWmsBad()(Code) | | Q: scary magic
|
getWmsDisabled | public int getWmsDisabled()(Code) | | Q: scary magic
|
getWmsGood | public int getWmsGood()(Code) | | Q: scary magic
|
getXmlTimestamp | public Date getXmlTimestamp()(Code) | | Access xmlTimestamp property.
Returns the xmlTimestamp. |
init | public void init(ActionServlet actionServlet, ModuleConfig moduleConfig) throws ServletException(Code) | | Set up the ApplicationState during Application start up.
ApplicationState simply registers itself with the WEB_CONTAINER_KEY
("GeoServer.ApplicationState") during start up.
Parameters: actionServlet - ActionServlet representing the Application Parameters: moduleConfig - Configuration used to set up this plug in throws: ServletException - See Also: org.apache.struts.action.PlugIn.init(org.apache.struts.action.ActionServletorg.apache.struts.config.ModuleConfig)ApplicationState.afterPropertiesSet() |
isAppChanged | public boolean isAppChanged()(Code) | | True if the user has changed GeoServer and not yet saved the changes.
true if GeoServer has been changed (but not saved) |
isConfigChanged | public boolean isConfigChanged()(Code) | | True if the user has changed the Configuration and not yet applied them.
true if Configuration needs changing. |
notifiySaveXML | public void notifiySaveXML()(Code) | | Notification that Global has been saved to XML config files.
|
notifyConfigChanged | public void notifyConfigChanged()(Code) | | Notification that the User has changed the Configuration
|
notifyLoadXML | public void notifyLoadXML()(Code) | | Notification that Config has been updated from XML config files
|
notifyToGeoServer | public void notifyToGeoServer()(Code) | | Notification that Global has been updated from Configuration
|
|
|
|