|
xmlBlaster 1.6.4 API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.xmlBlaster.util.error.MsgErrorInfo
Encapsulates all necessary information to allow error handling of a lost message.
Instances of this class are immutable.
| Field Summary | |
private DispatchManager |
dispatchManager
|
private Global |
glob
|
private MsgQueueEntry[] |
msgQueueEntries
|
private MsgUnit |
msgUnit
|
private MsgUnitRaw |
msgUnitRaw
|
private static long |
serialVersionUID
|
private SessionName |
sessionName
|
private XmlBlasterException |
xmlBlasterException
|
| Constructor Summary | |
MsgErrorInfo(Global glob,
MsgQueueEntry[] msgQueueEntries,
DispatchManager dispatchManager,
java.lang.Throwable throwable)
Creates an error info instance for an array of message queue entries |
|
MsgErrorInfo(Global glob,
MsgQueueEntry msgQueueEntry,
DispatchManager dispatchManager,
java.lang.Throwable throwable)
Creates an error info instance with errorCode="internal.unknown" |
|
MsgErrorInfo(Global glob,
SessionName sessionName,
MsgUnitRaw msgUnitRaw,
java.lang.Throwable throwable)
Called for raw messages e.g. |
|
MsgErrorInfo(Global glob,
SessionName sessionName,
MsgUnit msgUnit,
java.lang.Throwable throwable)
Creates an error info instance from server side XmlBlasterImpl.publish failure (remote method invokation) without a queue involved |
|
| Method Summary | |
DispatchManager |
getDispatchManager()
Access the DispatchManager which holds the queue. |
Global |
getGlob()
|
MsgQueueEntry[] |
getMsgQueueEntries()
Access the message entry object to be handled |
MsgUnit |
getMsgUnit()
Is not null for client calls into server like XmlBlasterImpl.publish() where no queue is involved. |
MsgUnitRaw |
getMsgUnitRaw()
Is not null for client calls into server like XmlBlasterImpl.publish() where no queue is involved and the message could not be parsed. |
I_Queue |
getQueue()
Access the queue where the entries are inside. |
SessionName |
getSessionName()
Access the sender. |
XmlBlasterException |
getXmlBlasterException()
Access the exception object describing the problem |
java.lang.String |
toString()
|
java.lang.String |
toXml()
Dump state of this object into XML. |
java.lang.String |
toXml(java.lang.String extraOffset)
Dump state of this object into XML. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private static final long serialVersionUID
private final Global glob
private final SessionName sessionName
private final MsgUnitRaw msgUnitRaw
private final MsgUnit msgUnit
private final MsgQueueEntry[] msgQueueEntries
private final DispatchManager dispatchManager
private final XmlBlasterException xmlBlasterException
| Constructor Detail |
public MsgErrorInfo(Global glob,
SessionName sessionName,
MsgUnitRaw msgUnitRaw,
java.lang.Throwable throwable)
sessionName - The sender clientmsgUnitRaw - the message to handle, if it was not possible to parse itthrowable - Creates an error info instance with errorCode="internal.unknown"
public MsgErrorInfo(Global glob,
SessionName sessionName,
MsgUnit msgUnit,
java.lang.Throwable throwable)
sessionName - The sender clientmsgUnit - the message to handlethrowable - Creates an error info instance with errorCode="internal.unknown"
public MsgErrorInfo(Global glob,
MsgQueueEntry msgQueueEntry,
DispatchManager dispatchManager,
java.lang.Throwable throwable)
dispatchManager - The dispatchManager/queue where the entry is inside, null if the entry is not in a queuethrowable - Creates an error info instance with errorCode="internal.unknown"
public MsgErrorInfo(Global glob,
MsgQueueEntry[] msgQueueEntries,
DispatchManager dispatchManager,
java.lang.Throwable throwable)
dispatchManager - The dispatchManager/queue where the entry is inside, null if the entry is not in a queuethrowable - Creates an error info instance with errorCode="internal.unknown" | Method Detail |
public MsgQueueEntry[] getMsgQueueEntries()
getMsgQueueEntries in interface I_MsgErrorInfopublic I_Queue getQueue()
getQueue in interface I_MsgErrorInfopublic DispatchManager getDispatchManager()
I_MsgErrorInfo
getDispatchManager in interface I_MsgErrorInfopublic XmlBlasterException getXmlBlasterException()
getXmlBlasterException in interface I_MsgErrorInfopublic java.lang.String toString()
public final java.lang.String toXml()
toXml in interface I_MsgErrorInfopublic final java.lang.String toXml(java.lang.String extraOffset)
toXml in interface I_MsgErrorInfoextraOffset - indenting of tags
public Global getGlob()
public SessionName getSessionName()
I_MsgErrorInfo
getSessionName in interface I_MsgErrorInfopublic MsgUnit getMsgUnit()
I_MsgErrorInfo
getMsgUnit in interface I_MsgErrorInfopublic MsgUnitRaw getMsgUnitRaw()
I_MsgErrorInfo
getMsgUnitRaw in interface I_MsgErrorInfo
|
xmlBlaster 1.6.4 API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||