Package org.opensearch.index.reindex
Class RemoteInfo
java.lang.Object
org.opensearch.index.reindex.RemoteInfo
- All Implemented Interfaces:
org.opensearch.core.common.io.stream.Writeable
,org.opensearch.core.xcontent.ToXContent
,org.opensearch.core.xcontent.ToXContentObject
public class RemoteInfo
extends Object
implements org.opensearch.core.common.io.stream.Writeable, org.opensearch.core.xcontent.ToXContentObject
Encapsulates informatoin for remote resources
- Opensearch.internal:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opensearch.core.xcontent.ToXContent
org.opensearch.core.xcontent.ToXContent.DelegatingMapParams, org.opensearch.core.xcontent.ToXContent.MapParams, org.opensearch.core.xcontent.ToXContent.Params
Nested classes/interfaces inherited from interface org.opensearch.core.common.io.stream.Writeable
org.opensearch.core.common.io.stream.Writeable.Reader<V>, org.opensearch.core.common.io.stream.Writeable.WriteableRegistry, org.opensearch.core.common.io.stream.Writeable.Writer<V>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.opensearch.common.unit.TimeValue
DefaultconnectTimeout
for requests that don't have one set.static final org.opensearch.common.unit.TimeValue
DefaultsocketTimeout
for requests that don't have one set.static final org.opensearch.core.xcontent.XContent
Fields inherited from interface org.opensearch.core.xcontent.ToXContent
EMPTY_PARAMS
-
Constructor Summary
ConstructorsConstructorDescriptionRemoteInfo
(String scheme, String host, int port, String pathPrefix, org.opensearch.core.common.bytes.BytesReference query, String username, String password, Map<String, String> headers, org.opensearch.common.unit.TimeValue socketTimeout, org.opensearch.common.unit.TimeValue connectTimeout) RemoteInfo
(org.opensearch.core.common.io.stream.StreamInput in) Read from a stream. -
Method Summary
Modifier and TypeMethodDescriptionboolean
org.opensearch.common.unit.TimeValue
Time to wait to connect to the external cluster.getHost()
int
getPort()
org.opensearch.core.common.bytes.BytesReference
getQuery()
org.opensearch.common.unit.TimeValue
Time to wait for a response from each request.int
hashCode()
toString()
org.opensearch.core.xcontent.XContentBuilder
toXContent
(org.opensearch.core.xcontent.XContentBuilder builder, org.opensearch.core.xcontent.ToXContent.Params params) void
writeTo
(org.opensearch.core.common.io.stream.StreamOutput out) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.opensearch.core.xcontent.ToXContentObject
isFragment
-
Field Details
-
DEFAULT_SOCKET_TIMEOUT
public static final org.opensearch.common.unit.TimeValue DEFAULT_SOCKET_TIMEOUTDefaultsocketTimeout
for requests that don't have one set. -
DEFAULT_CONNECT_TIMEOUT
public static final org.opensearch.common.unit.TimeValue DEFAULT_CONNECT_TIMEOUTDefaultconnectTimeout
for requests that don't have one set. -
QUERY_CONTENT_TYPE
public static final org.opensearch.core.xcontent.XContent QUERY_CONTENT_TYPE
-
-
Constructor Details
-
RemoteInfo
-
RemoteInfo
Read from a stream.- Throws:
IOException
-
-
Method Details
-
writeTo
- Specified by:
writeTo
in interfaceorg.opensearch.core.common.io.stream.Writeable
- Throws:
IOException
-
getScheme
-
getHost
-
getPort
public int getPort() -
getPathPrefix
-
getQuery
public org.opensearch.core.common.bytes.BytesReference getQuery() -
getUsername
-
getPassword
-
getHeaders
-
getSocketTimeout
public org.opensearch.common.unit.TimeValue getSocketTimeout()Time to wait for a response from each request. -
getConnectTimeout
public org.opensearch.common.unit.TimeValue getConnectTimeout()Time to wait to connect to the external cluster. -
toString
-
toXContent
public org.opensearch.core.xcontent.XContentBuilder toXContent(org.opensearch.core.xcontent.XContentBuilder builder, org.opensearch.core.xcontent.ToXContent.Params params) throws IOException - Specified by:
toXContent
in interfaceorg.opensearch.core.xcontent.ToXContent
- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-