Package org.elasticsearch.transport
Class TransportService.HandshakeResponse
- java.lang.Object
-
- org.elasticsearch.transport.TransportMessage
-
- org.elasticsearch.transport.TransportResponse
-
- org.elasticsearch.transport.TransportService.HandshakeResponse
-
- All Implemented Interfaces:
Streamable
,Writeable
- Enclosing class:
- TransportService
public static class TransportService.HandshakeResponse extends TransportResponse
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.elasticsearch.transport.TransportResponse
TransportResponse.Empty
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
-
Constructor Summary
Constructors Constructor Description HandshakeResponse(DiscoveryNode discoveryNode, ClusterName clusterName, Version version)
HandshakeResponse(StreamInput in)
-
Method Summary
Modifier and Type Method Description ClusterName
getClusterName()
DiscoveryNode
getDiscoveryNode()
void
writeTo(StreamOutput out)
Write this object's fields to a StreamOutput.-
Methods inherited from class org.elasticsearch.transport.TransportMessage
readFrom, remoteAddress, remoteAddress
-
-
-
-
Constructor Detail
-
HandshakeResponse
public HandshakeResponse(DiscoveryNode discoveryNode, ClusterName clusterName, Version version)
-
HandshakeResponse
public HandshakeResponse(StreamInput in) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
writeTo
public void writeTo(StreamOutput out) throws java.io.IOException
Description copied from interface:Streamable
Write this object's fields to a StreamOutput.- Specified by:
writeTo
in interfaceStreamable
- Specified by:
writeTo
in interfaceWriteable
- Overrides:
writeTo
in classTransportMessage
- Throws:
java.io.IOException
-
getDiscoveryNode
public DiscoveryNode getDiscoveryNode()
-
getClusterName
public ClusterName getClusterName()
-
-