public class FeederReplicaHandshake extends Object
| Constructor and Description |
|---|
FeederReplicaHandshake(RepNode repNode,
Feeder feeder,
NamedChannel namedChannel)
An instance of this class is created with each new handshake preceding
the setting up of a connection.
|
| Modifier and Type | Method and Description |
|---|---|
Protocol |
execute()
Executes the feeder side of the handshake.
|
JEVersion |
getReplicaJEVersion()
Returns the JE version supported by the replica, or
null if the
value is not yet known. |
NameIdPair |
getReplicaNameIdPair()
Returns the replica node ID.
|
RepNodeImpl |
getReplicaNode()
Returns a RepNodeImpl that represents the replica for a successful
handshake.
|
int |
getStreamLogVersion()
Return the negotiated log version that will be used for the HA stream
between the feeder and the replica.
|
static void |
setTestLogVersion(int testLogVersion) |
public FeederReplicaHandshake(RepNode repNode, Feeder feeder, NamedChannel namedChannel)
repNode - the replication nodefeeder - the feeder instancenamedChannel - the channel to be used for the handshakepublic NameIdPair getReplicaNameIdPair()
public int getStreamLogVersion()
public static void setTestLogVersion(int testLogVersion)
public JEVersion getReplicaJEVersion()
null if the
value is not yet known. This method should only be called after the
execute() method has returned successfully.nullpublic RepNodeImpl getReplicaNode()
execute()
method has returned successfully, and will throw IllegalStateException
otherwise.IllegalStateException - if the handshake did not completepublic Protocol execute() throws DatabaseException, IOException, BinaryProtocol.ProtocolException, Feeder.ExitException
Copyright © 2024. All rights reserved.