|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--dtw.webmail.admin.JwmaStatus
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 | |
static int[] |
DIRECTORY_TYPES
Prescription of the SHOULD STATE of directories. |
static int[] |
FILE_TYPES
Prescription of the SHOULD STATE of files. |
Method Summary | |
static JwmaStatus |
createJwmaStatus()
Creates the JwmaStatus singleton * instance. |
int |
getDirectoryCount()
Returns the number of observed directories as * int. |
java.lang.String |
getDirectoryPath(int directory)
Returns the full path of the directory as String. |
java.lang.String |
getDirResolveHint(int directory)
Returns the resolve hint, if the directory is not * in the prescribed state. |
int |
getFileCount()
Returns the number of observed files as * int. |
java.lang.String |
getFilePath(int file)
Returns the full path of the file as String. |
java.lang.String |
getFileResolveHint(int file)
Returns the resolve hint, if the file is not * in the prescribed state. |
int |
getKernelStatus()
Returns the status of the kernel as int. |
java.lang.String |
getMailTransportLimit()
Returns an String representing the maximum * size allowed for a message to be transported via jwma. |
java.lang.String |
getMTAHost()
Returns the site's MTA hostaddress * setting. |
java.lang.String |
getPostOfficeHost()
Returns the site's post office hostaddress * setting. |
static JwmaStatus |
getReference()
Returns the reference to the singleton instance. |
java.lang.String |
getSettingsDump()
Returns a dump of the loaded settings file. |
boolean |
isDirectoryOk(int directory)
Tests if the given directory is in the prescribed state. |
boolean |
isFileOk(int file)
Tests if the given file is in the prescribed state. |
boolean |
isKernelOk()
Tests if the kernel is up an running completely. |
boolean |
supportsMixedFolders()
Tests if the preset post office supports maildir style * mixture of messages and subfolders. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int[] DIRECTORY_TYPES
public static final int[] FILE_TYPES
Method Detail |
public int getDirectoryCount()
public boolean isDirectoryOk(int directory)
* The states are encoded within the * FileStatus class as constants, and prescribed * for the observed directories in the DIRECTORY_TYPES * constant. * * @param directory, the index of the directory as int. * * @return true if the given directory is in prescribed state, * false otherwise. * * @see #DIRECTORY_TYPES * @see dtw.webmail.admin.FileStatus#READABLE_DIRECTORY * @see dtw.webmail.admin.FileStatus#WRITEABLE_DIRECTORY
public java.lang.String getDirResolveHint(int directory)
* The method returns an empty string if the directory is * in the prescribed state. * * @param directory, the index of the directory as int. * * @return the resolve hint as String.
public java.lang.String getDirectoryPath(int directory)
public int getFileCount()
public boolean isFileOk(int file)
* The states are encoded within the * FileStatus class as constants, and prescribed * for the observed directories in the FILE_TYPES * constant. * * @param file, the index of the file as int. * * @return true if the given file is in prescribed state, * false otherwise. * * @see #FILE_TYPES * @see dtw.webmail.admin.FileStatus#READABLE_FILE * @see dtw.webmail.admin.FileStatus#WRITEABLE_FILE
public java.lang.String getFileResolveHint(int file)
* The method returns an empty string if the directory is * in the prescribed state. * * @param file, the index of the file as int. * * @return the resolve hint as String.
public java.lang.String getFilePath(int file)
public boolean isKernelOk()
public int getKernelStatus()
public java.lang.String getPostOfficeHost()
public java.lang.String getMTAHost()
public boolean supportsMixedFolders()
public java.lang.String getMailTransportLimit()
public java.lang.String getSettingsDump()
public static JwmaStatus createJwmaStatus() throws JwmaException
JwmaException
public static JwmaStatus getReference()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |