Java Doc for JwmaStatus.java in  » Web-Mail » Jwma » dtw » webmail » admin » 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 » Web Mail » Jwma » dtw.webmail.admin 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   dtw.webmail.admin.JwmaStatus

JwmaStatus
public class JwmaStatus (Code)
Class that implements a wrapper for and a proxy to available status information.


author:
   Dieter Wimberger
version:
   0.9.7 07/02/2003



Field Summary
final public static  int[]DIRECTORY_TYPES
     Prescription of the SHOULD STATE of directories.
final public static  int[]FILE_TYPES
     Prescription of the SHOULD STATE of files.


Method Summary
public static  JwmaStatuscreateJwmaStatus()
     Creates the JwmaStatus singleton instance.
public  StringgetDirResolveHint(int directory)
     Returns the resolve hint, if the directory is not in the prescribed state.

The method returns an empty string if the directory is in the prescribed state. directory, the index of the directory as int.

public  intgetDirectoryCount()
     Returns the number of observed directories as int.
public  StringgetDirectoryPath(int directory)
     Returns the full path of the directory as String. directory, the index of the directory as int.
public  intgetFileCount()
     Returns the number of observed files as int.
public  StringgetFilePath(int file)
     Returns the full path of the file as String. file, the index of the file as int.
public  StringgetFileResolveHint(int file)
     Returns the resolve hint, if the file is not in the prescribed state.

The method returns an empty string if the directory is in the prescribed state. file, the index of the file as int.

public  intgetKernelStatus()
     Returns the status of the kernel as int.
public  StringgetMTAHost()
     Returns the site's MTA hostaddress setting.
public  StringgetMailTransportLimit()
     Returns an String representing the maximum size allowed for a message to be transported via jwma.
public  StringgetPostOfficeHost()
     Returns the site's post office hostaddress setting.
public static  JwmaStatusgetReference()
     Returns the reference to the singleton instance.
public  StringgetSettingsDump()
     Returns a dump of the loaded settings file.
public  booleanisDirectoryOk(int directory)
     Tests if the given directory is in the prescribed state.

The states are encoded within the FileStatus class as constants, and prescribed for the observed directories in the DIRECTORY_TYPES constant. directory, the index of the directory as int.

public  booleanisFileOk(int file)
     Tests if the given file is in the prescribed state.

The states are encoded within the FileStatus class as constants, and prescribed for the observed directories in the FILE_TYPES constant. file, the index of the file as int.

public  booleanisKernelOk()
     Tests if the kernel is up an running completely.
public  booleansupportsMixedFolders()
     Tests if the preset post office supports maildir style mixture of messages and subfolders.

Field Detail
DIRECTORY_TYPES
final public static int[] DIRECTORY_TYPES(Code)
Prescription of the SHOULD STATE of directories.



FILE_TYPES
final public static int[] FILE_TYPES(Code)
Prescription of the SHOULD STATE of files.





Method Detail
createJwmaStatus
public static JwmaStatus createJwmaStatus() throws JwmaException(Code)
Creates the JwmaStatus singleton instance. the newly created singleton instance.
throws:
  JwmaException - if the status can not be prepared.



getDirResolveHint
public String getDirResolveHint(int directory)(Code)
Returns the resolve hint, if the directory is not in the prescribed state.

The method returns an empty string if the directory is in the prescribed state. directory, the index of the directory as int. the resolve hint as String.




getDirectoryCount
public int getDirectoryCount()(Code)
Returns the number of observed directories as int. the number of observed directories as int.



getDirectoryPath
public String getDirectoryPath(int directory)(Code)
Returns the full path of the directory as String. directory, the index of the directory as int. the full path as String.



getFileCount
public int getFileCount()(Code)
Returns the number of observed files as int. the number of observed files as int.



getFilePath
public String getFilePath(int file)(Code)
Returns the full path of the file as String. file, the index of the file as int. the full path as String.



getFileResolveHint
public String getFileResolveHint(int file)(Code)
Returns the resolve hint, if the file is not in the prescribed state.

The method returns an empty string if the directory is in the prescribed state. file, the index of the file as int. the resolve hint as String.




getKernelStatus
public int getKernelStatus()(Code)
Returns the status of the kernel as int. The information content of this number can be obtained from the documentation (Deployment-> Boot Process) or online. an int describing the state of the kernel.



getMTAHost
public String getMTAHost()(Code)
Returns the site's MTA hostaddress setting. local site's post MTA hostaddressas String.



getMailTransportLimit
public String getMailTransportLimit()(Code)
Returns an String representing the maximum size allowed for a message to be transported via jwma. maximum size of a message to be transported asString.



getPostOfficeHost
public String getPostOfficeHost()(Code)
Returns the site's post office hostaddress setting. local site's post office hostaddressas String.



getReference
public static JwmaStatus getReference()(Code)
Returns the reference to the singleton instance.



getSettingsDump
public String getSettingsDump()(Code)
Returns a dump of the loaded settings file. the dump of the loaded settings file as String.



isDirectoryOk
public boolean isDirectoryOk(int directory)(Code)
Tests if the given directory is in the prescribed state.

The states are encoded within the FileStatus class as constants, and prescribed for the observed directories in the DIRECTORY_TYPES constant. directory, the index of the directory as int. true if the given directory is in prescribed state,false otherwise.
See Also:   JwmaStatus.DIRECTORY_TYPES
See Also:   dtw.webmail.admin.FileStatus.READABLE_DIRECTORY
See Also:   dtw.webmail.admin.FileStatus.WRITEABLE_DIRECTORY




isFileOk
public boolean isFileOk(int file)(Code)
Tests if the given file is in the prescribed state.

The states are encoded within the FileStatus class as constants, and prescribed for the observed directories in the FILE_TYPES constant. file, the index of the file as int. true if the given file is in prescribed state,false otherwise.
See Also:   JwmaStatus.FILE_TYPES
See Also:   dtw.webmail.admin.FileStatus.READABLE_FILE
See Also:   dtw.webmail.admin.FileStatus.WRITEABLE_FILE




isKernelOk
public boolean isKernelOk()(Code)
Tests if the kernel is up an running completely. If this test returns false, the getKernelStatus() method can be used to obtain status information. true if the kernel is up and running error free,false otherwise.
See Also:   JwmaStatus.getKernelStatus()



supportsMixedFolders
public boolean supportsMixedFolders()(Code)
Tests if the preset post office supports maildir style mixture of messages and subfolders. true if mixed mode store, false otherwise.



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.