Package org.elasticsearch.transport
Class ProxyConnectionStrategy.ProxyModeInfo
java.lang.Object
org.elasticsearch.transport.ProxyConnectionStrategy.ProxyModeInfo
- All Implemented Interfaces:
Writeable,ToXContent,ToXContentFragment,RemoteConnectionInfo.ModeInfo
- Enclosing class:
- ProxyConnectionStrategy
public static class ProxyConnectionStrategy.ProxyModeInfo extends java.lang.Object implements RemoteConnectionInfo.ModeInfo
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
-
Constructor Summary
Constructors Constructor Description ProxyModeInfo(java.lang.String address, int maxSocketConnections, int numSocketsConnected) -
Method Summary
Modifier and Type Method Description booleanequals(java.lang.Object o)java.lang.StringgetAddress()intgetMaxSocketConnections()intgetNumSocketsConnected()inthashCode()booleanisConnected()java.lang.StringmodeName()org.elasticsearch.transport.RemoteConnectionStrategy.ConnectionStrategymodeType()XContentBuildertoXContent(XContentBuilder builder, ToXContent.Params params)voidwriteTo(StreamOutput out)Write this into the StreamOutput.
-
Constructor Details
-
ProxyModeInfo
public ProxyModeInfo(java.lang.String address, int maxSocketConnections, int numSocketsConnected)
-
-
Method Details
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException- Specified by:
toXContentin interfaceToXContent- Throws:
java.io.IOException
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput. -
isConnected
public boolean isConnected()- Specified by:
isConnectedin interfaceRemoteConnectionInfo.ModeInfo
-
modeName
public java.lang.String modeName()- Specified by:
modeNamein interfaceRemoteConnectionInfo.ModeInfo
-
getAddress
public java.lang.String getAddress() -
getMaxSocketConnections
public int getMaxSocketConnections() -
getNumSocketsConnected
public int getNumSocketsConnected() -
modeType
public org.elasticsearch.transport.RemoteConnectionStrategy.ConnectionStrategy modeType()- Specified by:
modeTypein interfaceRemoteConnectionInfo.ModeInfo
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-