|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--rjw.dc.messages.Messages
Message queue. All classes can store a message in this class. The message will be queued and written to the logfile and logform when the program has time to do so. The writing and displaying of messages is done by the class MessageWriter.
Last in last out mechanism is used
Field Summary | |
static int |
_ERROR
Error message type |
static int |
_LEAVEDATELESS
Dateless message type |
static int |
_QUERY
Query |
static int |
_SIMPLE
Only the message text is displayed (indented) |
static int |
_STANDARD
Unspecief message type |
static int |
_TABLESS
Unindented message type |
static boolean |
isNew
|
Constructor Summary | |
Messages()
Starts the message writer thread |
Method Summary | |
static java.lang.String |
getNewMessages()
Gets a message from the pool. |
static void |
setMessage(java.lang.String message,
int type)
Adds a message to the message pool |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int _STANDARD
public static final int _LEAVEDATELESS
public static final int _SIMPLE
public static final int _QUERY
public static final int _TABLESS
public static final int _ERROR
public static boolean isNew
Constructor Detail |
public Messages()
MessagesWriter
Method Detail |
public static void setMessage(java.lang.String message, int type)
message
- message Stringtype
- message typepublic static java.lang.String getNewMessages()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |