|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.continuent.tungsten.fsm.core.Event
com.continuent.tungsten.replicator.ErrorNotification
public class ErrorNotification
This class defines a ErrorNotification, which denotes a severe replication error that causes replication to fail. It implements the OutOfBandEvent interface to ensure it is processed out-of-band no matter how it is submitted to the state machine. It also implements critical event so that event processing is not interrupted, which prevents race conditions around shutdown.
| Constructor Summary | |
|---|---|
ErrorNotification(java.lang.String userMessage,
long seqno,
java.lang.String eventId,
java.lang.Throwable e)
Creates an error notification with user, a message, and replication position information. |
|
ErrorNotification(java.lang.String userMessage,
java.lang.Throwable e)
Create new instance with underlying error and message for presentation to users. |
|
| Method Summary | |
|---|---|
java.lang.String |
getEventId()
Returns the native event ID associated with failure or null if there is no such ID. |
long |
getSeqno()
Returns the log sequence number associated with failure or -1 if there is no such number. |
java.lang.Throwable |
getThrowable()
Returns the original source of the error. |
java.lang.String |
getUserMessage()
Returns a message suitable for users. |
| Methods inherited from class com.continuent.tungsten.fsm.core.Event |
|---|
getData, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ErrorNotification(java.lang.String userMessage,
java.lang.Throwable e)
public ErrorNotification(java.lang.String userMessage,
long seqno,
java.lang.String eventId,
java.lang.Throwable e)
| Method Detail |
|---|
public java.lang.Throwable getThrowable()
public java.lang.String getUserMessage()
public long getSeqno()
public java.lang.String getEventId()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||