public class RemoteInfo
extends java.lang.Object
implements org.elasticsearch.common.io.stream.Writeable
| Modifier and Type | Field and Description |
|---|---|
static org.elasticsearch.common.unit.TimeValue |
DEFAULT_CONNECT_TIMEOUT
Default
connectTimeout for requests that don't have one set. |
static org.elasticsearch.common.unit.TimeValue |
DEFAULT_SOCKET_TIMEOUT
Default
socketTimeout for requests that don't have one set. |
| Constructor and Description |
|---|
RemoteInfo(org.elasticsearch.common.io.stream.StreamInput in)
Read from a stream.
|
RemoteInfo(java.lang.String scheme,
java.lang.String host,
int port,
org.elasticsearch.common.bytes.BytesReference query,
java.lang.String username,
java.lang.String password,
java.util.Map<java.lang.String,java.lang.String> headers,
org.elasticsearch.common.unit.TimeValue socketTimeout,
org.elasticsearch.common.unit.TimeValue connectTimeout) |
| Modifier and Type | Method and Description |
|---|---|
org.elasticsearch.common.unit.TimeValue |
getConnectTimeout()
Time to wait to connect to the external cluster.
|
java.util.Map<java.lang.String,java.lang.String> |
getHeaders() |
java.lang.String |
getHost() |
java.lang.String |
getPassword() |
int |
getPort() |
org.elasticsearch.common.bytes.BytesReference |
getQuery() |
java.lang.String |
getScheme() |
org.elasticsearch.common.unit.TimeValue |
getSocketTimeout()
Time to wait for a response from each request.
|
java.lang.String |
getUsername() |
java.lang.String |
toString() |
void |
writeTo(org.elasticsearch.common.io.stream.StreamOutput out) |
public static final org.elasticsearch.common.unit.TimeValue DEFAULT_SOCKET_TIMEOUT
socketTimeout for requests that don't have one set.public static final org.elasticsearch.common.unit.TimeValue DEFAULT_CONNECT_TIMEOUT
connectTimeout for requests that don't have one set.public RemoteInfo(java.lang.String scheme,
java.lang.String host,
int port,
org.elasticsearch.common.bytes.BytesReference query,
java.lang.String username,
java.lang.String password,
java.util.Map<java.lang.String,java.lang.String> headers,
org.elasticsearch.common.unit.TimeValue socketTimeout,
org.elasticsearch.common.unit.TimeValue connectTimeout)
public RemoteInfo(org.elasticsearch.common.io.stream.StreamInput in)
throws java.io.IOException
java.io.IOExceptionpublic void writeTo(org.elasticsearch.common.io.stream.StreamOutput out)
throws java.io.IOException
writeTo in interface org.elasticsearch.common.io.stream.Writeablejava.io.IOExceptionpublic java.lang.String getScheme()
public java.lang.String getHost()
public int getPort()
public org.elasticsearch.common.bytes.BytesReference getQuery()
@Nullable public java.lang.String getUsername()
@Nullable public java.lang.String getPassword()
public java.util.Map<java.lang.String,java.lang.String> getHeaders()
public org.elasticsearch.common.unit.TimeValue getSocketTimeout()
public org.elasticsearch.common.unit.TimeValue getConnectTimeout()
public java.lang.String toString()
toString in class java.lang.Object