public class WriterFailoverResult
extends java.lang.Object
| Constructor and Description |
|---|
WriterFailoverResult(boolean isConnected,
boolean isNewHost,
java.util.List<HostSpec> topology,
java.sql.Connection newConnection,
java.lang.String taskName) |
WriterFailoverResult(boolean isConnected,
boolean isNewHost,
java.util.List<HostSpec> topology,
java.sql.Connection 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.
|
java.sql.Connection |
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<HostSpec> |
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<HostSpec> topology,
java.sql.Connection newConnection,
java.lang.String taskName)
public WriterFailoverResult(boolean isConnected,
boolean isNewHost,
java.util.List<HostSpec> topology,
java.sql.Connection newConnection,
java.lang.String taskName,
java.sql.SQLException exception)
public boolean isConnected()
public boolean isNewHost()
public java.util.List<HostSpec> getTopology()
public java.sql.Connection getNewConnection()
Connection New connection to a host. Returns null if the failover procedure was
unsuccessful.public java.lang.String getTaskName()
public java.sql.SQLException getException()
SQLException.