Class RemoteInfo

java.lang.Object
org.elasticsearch.index.reindex.RemoteInfo
All Implemented Interfaces:
Writeable, org.elasticsearch.common.xcontent.ToXContent, org.elasticsearch.common.xcontent.ToXContentObject

public class RemoteInfo extends Object implements Writeable, org.elasticsearch.common.xcontent.ToXContentObject
  • Field Details

    • DEFAULT_SOCKET_TIMEOUT

      public static final org.elasticsearch.core.TimeValue DEFAULT_SOCKET_TIMEOUT
      Default socketTimeout for requests that don't have one set.
    • DEFAULT_CONNECT_TIMEOUT

      public static final org.elasticsearch.core.TimeValue DEFAULT_CONNECT_TIMEOUT
      Default connectTimeout for requests that don't have one set.
    • QUERY_CONTENT_TYPE

      public static final org.elasticsearch.common.xcontent.XContent QUERY_CONTENT_TYPE
  • Constructor Details

  • Method Details

    • writeTo

      public void writeTo(StreamOutput out) throws IOException
      Description copied from interface: Writeable
      Write this into the StreamOutput.
      Specified by:
      writeTo in interface Writeable
      Throws:
      IOException
    • getScheme

      public String getScheme()
    • getHost

      public String getHost()
    • getPort

      public int getPort()
    • getPathPrefix

      @Nullable public String getPathPrefix()
    • getQuery

      public BytesReference getQuery()
    • getUsername

      @Nullable public String getUsername()
    • getPassword

      @Nullable public String getPassword()
    • getHeaders

      public Map<String,String> getHeaders()
    • getSocketTimeout

      public org.elasticsearch.core.TimeValue getSocketTimeout()
      Time to wait for a response from each request.
    • getConnectTimeout

      public org.elasticsearch.core.TimeValue getConnectTimeout()
      Time to wait to connect to the external cluster.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toXContent

      public org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws IOException
      Specified by:
      toXContent in interface org.elasticsearch.common.xcontent.ToXContent
      Throws:
      IOException
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object