Package org.elasticsearch.index.reindex
Class RemoteInfo
- java.lang.Object
-
- org.elasticsearch.index.reindex.RemoteInfo
-
- All Implemented Interfaces:
Writeable,ToXContent,ToXContentObject
public class RemoteInfo extends Object implements Writeable, ToXContentObject
-
-
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 Modifier and Type Field Description static TimeValueDEFAULT_CONNECT_TIMEOUTDefaultconnectTimeoutfor requests that don't have one set.static TimeValueDEFAULT_SOCKET_TIMEOUTDefaultsocketTimeoutfor requests that don't have one set.static XContentQUERY_CONTENT_TYPE-
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
-
Constructor Summary
Constructors Constructor Description RemoteInfo(String scheme, String host, int port, String pathPrefix, BytesReference query, String username, String password, Map<String,String> headers, TimeValue socketTimeout, TimeValue connectTimeout)RemoteInfo(StreamInput in)Read from a stream.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)TimeValuegetConnectTimeout()Time to wait to connect to the external cluster.Map<String,String>getHeaders()StringgetHost()StringgetPassword()StringgetPathPrefix()intgetPort()BytesReferencegetQuery()StringgetScheme()TimeValuegetSocketTimeout()Time to wait for a response from each request.StringgetUsername()inthashCode()StringtoString()XContentBuildertoXContent(XContentBuilder builder, ToXContent.Params params)voidwriteTo(StreamOutput out)Write this into the StreamOutput.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentObject
isFragment
-
-
-
-
Field Detail
-
DEFAULT_SOCKET_TIMEOUT
public static final TimeValue DEFAULT_SOCKET_TIMEOUT
DefaultsocketTimeoutfor requests that don't have one set.
-
DEFAULT_CONNECT_TIMEOUT
public static final TimeValue DEFAULT_CONNECT_TIMEOUT
DefaultconnectTimeoutfor requests that don't have one set.
-
QUERY_CONTENT_TYPE
public static final XContent QUERY_CONTENT_TYPE
-
-
Constructor Detail
-
RemoteInfo
public RemoteInfo(String scheme, String host, int port, String pathPrefix, BytesReference query, String username, String password, Map<String,String> headers, TimeValue socketTimeout, TimeValue connectTimeout)
-
RemoteInfo
public RemoteInfo(StreamInput in) throws IOException
Read from a stream.- Throws:
IOException
-
-
Method Detail
-
writeTo
public void writeTo(StreamOutput out) throws IOException
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
getScheme
public String getScheme()
-
getHost
public String getHost()
-
getPort
public int getPort()
-
getQuery
public BytesReference getQuery()
-
getSocketTimeout
public TimeValue getSocketTimeout()
Time to wait for a response from each request.
-
getConnectTimeout
public TimeValue getConnectTimeout()
Time to wait to connect to the external cluster.
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
- Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
-