|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.xbus.base.deletedMessageStore.DeletedMessageStore
public class DeletedMessageStore
DeletedMessageStore manages the saving of messages before they
are deleted in case of an error.
It implements a Singleton pattern, where there is one instance per thread.
| Method Summary | |
|---|---|
static java.lang.String[] |
getDeletedMessageFilenames()
Reads the name of all files containing deleted messages. |
static java.lang.String |
getDirectory()
Reads the name of the directory of the deleted messages out of the configuration. |
static DeletedMessageStore |
getInstance()
Returns an instance of the DeletedMessageStore. |
static java.lang.String |
resendDeletedMessage(java.lang.String filename)
Reads a deleted message and makes a new attempt to send it to its destinations. |
void |
setMessage(java.lang.Object message)
Set the message that shall be saved. |
void |
setSystem(XBUSSystem system)
Sets the system that has received the message. |
boolean |
writeMessage()
Writes the name of the system, its additional addresses and the message into a XML file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static DeletedMessageStore getInstance()
DeletedMessageStore. A new
instance will be created if there is none existing for this thread.
DeletedMessageStorepublic void setMessage(java.lang.Object message)
String representation of this object.
message - the message to be savedpublic void setSystem(XBUSSystem system)
system - the receiving messagepublic boolean writeMessage()
system.getCompleteName().xml.timestamp.
public static java.lang.String[] getDeletedMessageFilenames()
throws XException
XException - if any error occurespublic static java.lang.String resendDeletedMessage(java.lang.String filename)
filename - the name of a file containing a deleted message
public static java.lang.String getDirectory()
throws XException
XException - if any error occures
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||