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)
ResolvedHostInfo constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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 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 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 pocedure
was unsuccessful.public java.lang.String getTaskName()