Class ConnectorClientConfig
java.lang.Object
org.opensearch.ml.common.connector.ConnectorClientConfig
- All Implemented Interfaces:
org.opensearch.core.common.io.stream.Writeable,org.opensearch.core.xcontent.ToXContent,org.opensearch.core.xcontent.ToXContentObject
public class ConnectorClientConfig
extends Object
implements org.opensearch.core.xcontent.ToXContentObject, org.opensearch.core.common.io.stream.Writeable
-
Nested Class Summary
Nested ClassesNested 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.ParamsNested 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 Integerstatic final Stringstatic final Integerstatic final Stringstatic final Integerstatic final StringFields inherited from interface org.opensearch.core.xcontent.ToXContent
EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionConnectorClientConfig(Integer maxConnections, Integer connectionTimeout, Integer readTimeout) ConnectorClientConfig(org.opensearch.core.common.io.stream.StreamInput input) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()protected booleanbooleanstatic ConnectorClientConfigfromStream(org.opensearch.core.common.io.stream.StreamInput in) inthashCode()static ConnectorClientConfigparse(org.opensearch.core.xcontent.XContentParser parser) org.opensearch.core.xcontent.XContentBuildertoXContent(org.opensearch.core.xcontent.XContentBuilder xContentBuilder, org.opensearch.core.xcontent.ToXContent.Params params) voidwriteTo(org.opensearch.core.common.io.stream.StreamOutput out) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.core.xcontent.ToXContentObject
isFragment
-
Field Details
-
MAX_CONNECTION_FIELD
- See Also:
-
CONNECTION_TIMEOUT_FIELD
- See Also:
-
READ_TIMEOUT_FIELD
- See Also:
-
MAX_CONNECTION_DEFAULT_VALUE
-
CONNECTION_TIMEOUT_DEFAULT_VALUE
-
READ_TIMEOUT_DEFAULT_VALUE
-
-
Constructor Details
-
ConnectorClientConfig
-
ConnectorClientConfig
public ConnectorClientConfig(org.opensearch.core.common.io.stream.StreamInput input) throws IOException - Throws:
IOException
-
ConnectorClientConfig
public ConnectorClientConfig()
-
-
Method Details
-
writeTo
- Specified by:
writeToin interfaceorg.opensearch.core.common.io.stream.Writeable- Throws:
IOException
-
toXContent
public org.opensearch.core.xcontent.XContentBuilder toXContent(org.opensearch.core.xcontent.XContentBuilder xContentBuilder, org.opensearch.core.xcontent.ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceorg.opensearch.core.xcontent.ToXContent- Throws:
IOException
-
fromStream
public static ConnectorClientConfig fromStream(org.opensearch.core.common.io.stream.StreamInput in) throws IOException - Throws:
IOException
-
parse
public static ConnectorClientConfig parse(org.opensearch.core.xcontent.XContentParser parser) throws IOException - Throws:
IOException
-
builder
-
toBuilder
-
getMaxConnections
-
getConnectionTimeout
-
getReadTimeout
-
equals
-
canEqual
-
hashCode
public int hashCode()
-