Java Doc for ApplicationState.java in  » GIS » GeoServer » org » vfny » geoserver » global » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » GIS » GeoServer » org.vfny.geoserver.global 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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 $


Field Summary
final public static  StringWEB_CONTAINER_KEY
    
 Configconfig
    
 Datadata
    
 GeoValidatorvalidator
    

Constructor Summary
public  ApplicationState()
    
public  ApplicationState(Data data, GeoValidator validator, Config config)
     Creates a new appliction state.

Method Summary
public  voidafterPropertiesSet()
    
public  voiddestroy()
     Clean up the Configuration State during application exit.
public  voidfireChange()
     signal to any listeners that config has changed.
public  DategetAppTimestamp()
     Access appTimestamp property.
public  DategetConfigTimestamp()
     Access configTimestamp property.
public  intgetDataBad()
    
public  intgetDataDisabled()
    
public  intgetDataGood()
    
public  ExceptiongetDataStoreError(String key)
    
public  ListgetDataStoreErrorKeys()
    
public  ListgetDataStoreErrorValues()
    
public  MapgetDataStoreErrors()
     DataStore Exceptions by dataStoreId:typeName

This only includes problems! If this map is null or isEmpty status is "ready".

public  intgetGeoserverBad()
    
public  intgetGeoserverDisabled()
    
public  intgetGeoserverGood()
    
public  ExceptiongetNameSpaceError(String key)
    
public  ListgetNameSpaceErrorKeys()
    
public  ListgetNameSpaceErrorValues()
    
public  MapgetNameSpaceErrors()
     Namespace Exceptions by prefix:typeName.
public  ExceptiongetValidationError(String key)
    
public  ListgetValidationErrorKeys()
    
public  ListgetValidationErrorValues()
    
public  MapgetValidationErrors()
     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".

public  ListgetWCSErrorKeys()
    
public  MapgetWCSErrors()
    
public  ExceptiongetWFSError(String key)
    
public  ListgetWFSErrorKeys()
    
public  MapgetWFSErrors()
    
public  ExceptiongetWMSError(String key)
    
public  ListgetWMSErrorKeys()
    
public  MapgetWMSErrors()
    
public  intgetWcsBad()
    
public  intgetWcsDisabled()
    
public  intgetWcsGood()
    
public  intgetWfsBad()
    
public  intgetWfsDisabled()
    
public  intgetWfsGood()
    
public  intgetWmsBad()
    
public  intgetWmsDisabled()
    
public  intgetWmsGood()
    
public  DategetXmlTimestamp()
     Access xmlTimestamp property.
public  voidinit(ActionServlet actionServlet, ModuleConfig moduleConfig)
     Set up the ApplicationState during Application start up.
public  booleanisAppChanged()
     True if the user has changed GeoServer and not yet saved the changes.
public  booleanisConfigChanged()
     True if the user has changed the Configuration and not yet applied them.
public  voidnotifiySaveXML()
     Notification that Global has been saved to XML config files.
public  voidnotifyConfigChanged()
    
public  voidnotifyLoadXML()
    
public  voidnotifyToGeoServer()
    

Field Detail
WEB_CONTAINER_KEY
final public static String WEB_CONTAINER_KEY(Code)
The key used to store this value in the Web Container



config
Config config(Code)
Configuration module



data
Data data(Code)
Data module



validator
GeoValidator validator(Code)
Validation module




Constructor Detail
ApplicationState
public ApplicationState()(Code)
ApplicationState.ApplicationState(Data,GeoValidator,Config)



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




Method Detail
afterPropertiesSet
public void afterPropertiesSet() throws Exception(Code)



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)



getDataStoreError
public Exception getDataStoreError(String key)(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)



getNameSpaceError
public Exception getNameSpaceError(String key)(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".




getValidationError
public Exception getValidationError(String key)(Code)



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)



getWCSErrors
public Map getWCSErrors()(Code)



getWFSError
public Exception getWFSError(String key)(Code)



getWFSErrorKeys
public List getWFSErrorKeys()(Code)



getWFSErrors
public Map getWFSErrors()(Code)



getWMSError
public Exception getWMSError(String key)(Code)



getWMSErrorKeys
public List getWMSErrorKeys()(Code)



getWMSErrors
public Map getWMSErrors()(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



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.