Module org.elasticsearch.server
Package org.elasticsearch.transport
Class SniffConnectionStrategy.SniffModeInfo
java.lang.Object
org.elasticsearch.transport.SniffConnectionStrategy.SniffModeInfo
- All Implemented Interfaces:
- Writeable,- RemoteConnectionInfo.ModeInfo,- ToXContent,- ToXContentFragment
- Enclosing class:
- SniffConnectionStrategy
public static class SniffConnectionStrategy.SniffModeInfo
extends Object
implements RemoteConnectionInfo.ModeInfo
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContentToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.WriteableWriteable.Reader<V>, Writeable.Writer<V>
- 
Field SummaryFields inherited from interface org.elasticsearch.xcontent.ToXContentEMPTY_PARAMS
- 
Constructor SummaryConstructorsConstructorDescriptionSniffModeInfo(List<String> seedNodes, int maxConnectionsPerCluster, int numNodesConnected) 
- 
Method SummaryModifier and TypeMethodDescriptionbooleanintintinthashCode()booleanmodeName()org.elasticsearch.transport.RemoteConnectionStrategy.ConnectionStrategymodeType()toXContent(XContentBuilder builder, ToXContent.Params params) voidwriteTo(StreamOutput out) Write this into the StreamOutput.Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentFragmentisFragment
- 
Constructor Details- 
SniffModeInfo
 
- 
- 
Method Details- 
toXContentpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
- toXContentin interface- ToXContent
- Throws:
- IOException
 
- 
writeToDescription copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
- writeToin interface- Writeable
- Throws:
- IOException
 
- 
isConnectedpublic boolean isConnected()- Specified by:
- isConnectedin interface- RemoteConnectionInfo.ModeInfo
 
- 
modeName- Specified by:
- modeNamein interface- RemoteConnectionInfo.ModeInfo
 
- 
getSeedNodes
- 
getMaxConnectionsPerClusterpublic int getMaxConnectionsPerCluster()
- 
getNumNodesConnectedpublic int getNumNodesConnected()
- 
modeTypepublic org.elasticsearch.transport.RemoteConnectionStrategy.ConnectionStrategy modeType()- Specified by:
- modeTypein interface- RemoteConnectionInfo.ModeInfo
 
- 
equals
- 
hashCodepublic int hashCode()
 
-