public class WriterFailoverResult
extends java.lang.Object
| Constructor and Description |
|---|
WriterFailoverResult(boolean isConnected,
boolean isNewHost,
java.util.List<HostInfo> topology,
JdbcConnection newConnection,
java.lang.String taskName)
WriterFailoverResult constructor.
|
WriterFailoverResult(boolean isConnected,
boolean isNewHost,
java.util.List<HostInfo> topology,
JdbcConnection newConnection,
java.lang.String taskName,
java.sql.SQLException exception) |
| Modifier and Type | Method and Description |
|---|---|
java.sql.SQLException |
getException()
Get the exception raised during failover.
|
JdbcConnection |
getNewConnection()
Get the new connection established by the failover procedure if successful.
|
java.lang.String |
getTaskName()
Get the name of the writer failover task that created this result.
|
java.util.List<HostInfo> |
getTopology()
Get the latest topology.
|
boolean |
isConnected()
Checks if process result is successful and new connection to host is established.
|
boolean |
isNewHost()
Checks if process successfully connected to a new host.
|
public WriterFailoverResult(boolean isConnected,
boolean isNewHost,
java.util.List<HostInfo> topology,
JdbcConnection newConnection,
java.lang.String taskName)
public WriterFailoverResult(boolean isConnected,
boolean isNewHost,
java.util.List<HostInfo> topology,
JdbcConnection newConnection,
java.lang.String taskName,
java.sql.SQLException exception)
public boolean isConnected()
public boolean isNewHost()
public java.util.List<HostInfo> getTopology()
public JdbcConnection getNewConnection()
JdbcConnection New connection to a host. Returns null if the failover procedure
was unsuccessful.public java.lang.String getTaskName()
public java.sql.SQLException getException()
SQLException.