|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.xbus.base.journal.Journal
public class Journal
Journal writes information about the activities of the
middleware.
Configuration:
| Chapter | Section | Key | Content |
|---|---|---|---|
| Journal | Write | system.getName().Send | true, if sending data to this system shall be written. |
| Journal | Write | system.getName().Receive | true, if receiving data from this system shall be written. |
| Journal | Implementation | Class | Name of the Java-class that shall do the writing. |
| Journal | MessageLength | Bytes | Maximum number of bytes for request- and response-message. |
| Constructor Summary | |
|---|---|
Journal()
|
|
| Method Summary | |
|---|---|
void |
commit()
Commits the database. |
static java.lang.String |
formatDate(java.util.Date in)
The given Date is converted to a string. |
static java.lang.String |
formatText(Message message,
XBUSSystem system,
boolean request)
Shortens either the request-message or the response-message to a length specified in the Configuration. |
static void |
initialize()
|
void |
log(char type,
XBUSSystem system,
Message message)
Writes a middleware-activity. |
static java.lang.String |
removeLinefeeds(java.lang.String text)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Journal()
| Method Detail |
|---|
public void log(char type,
XBUSSystem system,
Message message)
throws XException
The Configuration stores, which
activities are written. All other activities are ignored.
type - R: message has been received, S: message has
been sendsystem - The name of the system, from which the message has been
received or where the message has been sent to.message - The Message-object that represents the data of
the message.
XException
public void commit()
throws XException
XExceptionpublic static java.lang.String formatDate(java.util.Date in)
Date is converted to a string. The format of the
string is specified in
Constants.DATE_FORMAT.
public static java.lang.String formatText(Message message,
XBUSSystem system,
boolean request)
throws XException
Configuration.
message - The Message-object that contains the data of the
message.system - The name of the system, from which the message has been
received or where the message has been sent to.request - true: the request-message will be shortened, false: the
response-message will be shortened.
XException
public static void initialize()
throws XException
XExceptionpublic static java.lang.String removeLinefeeds(java.lang.String text)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||