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.IOException
javax.jms.JMSException
public void download(XQueue xq) throws java.io.IOException, javax.jms.JMSException
java.io.IOException
javax.jms.JMSException
public void append(XQueue xq) throws java.io.IOException, javax.jms.JMSException
java.io.IOException
javax.jms.JMSException
public void rollback() throws javax.jms.JMSException
javax.jms.JMSException
public void commit() throws javax.jms.JMSException
javax.jms.JMSException
public void acknowledge(long[] state) throws javax.jms.JMSException
javax.jms.JMSException
public java.lang.String getOperation()