public class MessageLogger
extends java.lang.Object
| Constructor and Description |
|---|
MessageLogger(java.util.Map props) |
| Modifier and Type | Method and Description |
|---|---|
void |
acknowledge(long[] state) |
void |
append(XQueue xq)
It gets a JMS Message from an XQueue and append the formatted content
to the logfile continuously, or store the content to a file.
|
void |
commit() |
void |
download(XQueue xq)
It gets a JMS message from xq that contains a filename to be downloaded
and downloads the local file.
|
void |
fetch(XQueue xq)
It fetches new log entries from the logfile and packages them
into JMS Messages and add the messages to an XQueue.
|
java.lang.String |
getOperation() |
void |
rollback() |
public void fetch(XQueue xq) throws java.io.IOException, javax.jms.JMSException
java.io.IOExceptionjavax.jms.JMSExceptionpublic void download(XQueue xq) throws java.io.IOException, javax.jms.JMSException
java.io.IOExceptionjavax.jms.JMSExceptionpublic void append(XQueue xq) throws java.io.IOException, javax.jms.JMSException
java.io.IOExceptionjavax.jms.JMSExceptionpublic void rollback()
throws javax.jms.JMSException
javax.jms.JMSExceptionpublic void commit()
throws javax.jms.JMSException
javax.jms.JMSExceptionpublic void acknowledge(long[] state)
throws javax.jms.JMSException
javax.jms.JMSExceptionpublic java.lang.String getOperation()