Package org.elasticsearch.transport
Class RemoteConnectionInfo
- java.lang.Object
-
- org.elasticsearch.transport.RemoteConnectionInfo
-
- All Implemented Interfaces:
Writeable
,ToXContent
,ToXContentFragment
public final class RemoteConnectionInfo extends java.lang.Object implements ToXContentFragment, Writeable
This class encapsulates all remote cluster information to be rendered on_remote/info
requests.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
-
Field Summary
-
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
-
Constructor Summary
Constructors Constructor Description RemoteConnectionInfo(StreamInput input)
-
Method Summary
Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.lang.String
getClusterAlias()
int
getConnectionsPerCluster()
TimeValue
getInitialConnectionTimeout()
int
getNumNodesConnected()
java.util.List<java.lang.String>
getSeedNodes()
int
hashCode()
boolean
isSkipUnavailable()
XContentBuilder
toXContent(XContentBuilder builder, ToXContent.Params params)
void
writeTo(StreamOutput out)
Write this into the StreamOutput.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentFragment
isFragment
-
-
-
-
Constructor Detail
-
RemoteConnectionInfo
public RemoteConnectionInfo(StreamInput input) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
- Specified by:
toXContent
in interfaceToXContent
- Throws:
java.io.IOException
-
getSeedNodes
public java.util.List<java.lang.String> getSeedNodes()
-
getConnectionsPerCluster
public int getConnectionsPerCluster()
-
getInitialConnectionTimeout
public TimeValue getInitialConnectionTimeout()
-
getNumNodesConnected
public int getNumNodesConnected()
-
getClusterAlias
public java.lang.String getClusterAlias()
-
isSkipUnavailable
public boolean isSkipUnavailable()
-
writeTo
public void writeTo(StreamOutput out) throws java.io.IOException
Description copied from interface:Writeable
Write this into the StreamOutput.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-