|
i-net JDBC drivers for MS SQL Server | |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.EventObject com.inet.pool.FailoverEvent
public class FailoverEvent
An FailoverEvent is received from a FailoverListener to indicate the current state of connection failover procedure.
Field Summary | |
---|---|
static int |
FO_BEGIN
indicates that failover has detected a lost connection and failover is starting. |
static int |
FO_END
indicates successful completion of failover. |
static int |
FO_ERROR
indicates that failover was temporarily unsuccessful, but it gives the application the opportunity to handle the error and retry failover. |
Constructor Summary | |
---|---|
FailoverEvent(java.lang.Object source,
java.lang.Exception e)
Constructs a FailoverEvent. |
|
FailoverEvent(java.lang.Object source,
int type)
Constructs a FailoverEvent. |
Method Summary | |
---|---|
int |
getEventType()
|
java.lang.Exception |
getException()
returns the Exception that was the reason of FO_ERROR. |
Methods inherited from class java.util.EventObject |
---|
getSource, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int FO_BEGIN
public static final int FO_END
public static final int FO_ERROR
Constructor Detail |
---|
public FailoverEvent(java.lang.Object source, int type)
type
- source
- The object on which the Event initially occurred.
java.lang.IllegalArgumentException
- if source is null.
There are 2 possible failover event types.FO_BEGIN
,
FO_END
public FailoverEvent(java.lang.Object source, java.lang.Exception e)
source
- The object on which the Event initially occurred.e
- the Exception occurred during the try of restore the Connection.
java.lang.IllegalArgumentException
- if source is null.
The set event type is FO_ERROR.FO_ERROR
Method Detail |
---|
public int getEventType()
FO_BEGIN
,
FO_END
,
FO_ERROR
public java.lang.Exception getException()
FO_ERROR
|
i-net JDBC drivers for MS SQL Server | |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |