net.sf.xbus.base.journal
Class FileJournal

java.lang.Object
  extended by net.sf.xbus.base.journal.FileJournal
All Implemented Interfaces:
JournalInterface

public class FileJournal
extends java.lang.Object
implements JournalInterface

FileJournal writes information about the activities of the middleware into a file.

Configuration:

Chapter Section Key Content
Journal FileJournal Filename Filename of the Journal. It is located under %XBUS_HOME%/log.


Constructor Summary
FileJournal()
           
 
Method Summary
 void commit()
          Committing files is not necessary.
 void log(char type, XBUSSystem system, Message message)
          Writes a middleware-activity into a file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileJournal

public FileJournal()
Method Detail

log

public void log(char type,
                XBUSSystem system,
                Message message)
         throws XException
Writes a middleware-activity into a file. An activity can be:

The Configuration stores, which activities are written. All other activities are ignored.

Specified by:
log in interface JournalInterface
Parameters:
type - R: message has been received, S: message has been send
system - 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.
Throws:
XException

commit

public void commit()
Committing files is not necessary.

Specified by:
commit in interface JournalInterface