Record Class LinkedProjectConfig.SniffLinkedProjectConfig

java.lang.Object
java.lang.Record
org.elasticsearch.transport.LinkedProjectConfig.SniffLinkedProjectConfig
All Implemented Interfaces:
LinkedProjectConfig
Enclosing interface:
LinkedProjectConfig

public static record LinkedProjectConfig.SniffLinkedProjectConfig(ProjectId originProjectId, ProjectId linkedProjectId, String linkedProjectAlias, TimeValue transportConnectTimeout, Compression.Enabled connectionCompression, Compression.Scheme connectionCompressionScheme, TimeValue clusterPingSchedule, TimeValue initialConnectionTimeout, boolean skipUnavailable, int maxPendingConnectionListeners, int maxNumConnections, Predicate<DiscoveryNode> nodePredicate, List<String> seedNodes, String proxyAddress) extends Record implements LinkedProjectConfig
Configuration for initializing RemoteClusterConnections to linked projects using the SniffConnectionStrategy.
  • Constructor Details

    • SniffLinkedProjectConfig

      public SniffLinkedProjectConfig(ProjectId originProjectId, ProjectId linkedProjectId, String linkedProjectAlias, TimeValue transportConnectTimeout, Compression.Enabled connectionCompression, Compression.Scheme connectionCompressionScheme, TimeValue clusterPingSchedule, TimeValue initialConnectionTimeout, boolean skipUnavailable, int maxPendingConnectionListeners, int maxNumConnections, Predicate<DiscoveryNode> nodePredicate, List<String> seedNodes, String proxyAddress)
      Creates an instance of a SniffLinkedProjectConfig record class.
      Parameters:
      originProjectId - the value for the originProjectId record component
      linkedProjectId - the value for the linkedProjectId record component
      linkedProjectAlias - the value for the linkedProjectAlias record component
      transportConnectTimeout - the value for the transportConnectTimeout record component
      connectionCompression - the value for the connectionCompression record component
      connectionCompressionScheme - the value for the connectionCompressionScheme record component
      clusterPingSchedule - the value for the clusterPingSchedule record component
      initialConnectionTimeout - the value for the initialConnectionTimeout record component
      skipUnavailable - the value for the skipUnavailable record component
      maxPendingConnectionListeners - the value for the maxPendingConnectionListeners record component
      maxNumConnections - the value for the maxNumConnections record component
      nodePredicate - the value for the nodePredicate record component
      seedNodes - the value for the seedNodes record component
      proxyAddress - the value for the proxyAddress record component
  • Method Details

    • connectionStrategy

      public org.elasticsearch.transport.RemoteConnectionStrategy.ConnectionStrategy connectionStrategy()
      Specified by:
      connectionStrategy in interface LinkedProjectConfig
    • isConnectionEnabled

      public boolean isConnectionEnabled()
      Specified by:
      isConnectionEnabled in interface LinkedProjectConfig
    • buildRemoteConnectionStrategy

      public RemoteConnectionStrategy buildRemoteConnectionStrategy(TransportService transportService, RemoteConnectionManager connectionManager)
      Specified by:
      buildRemoteConnectionStrategy in interface LinkedProjectConfig
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • originProjectId

      public ProjectId originProjectId()
      Returns the value of the originProjectId record component.
      Specified by:
      originProjectId in interface LinkedProjectConfig
      Returns:
      the value of the originProjectId record component
    • linkedProjectId

      public ProjectId linkedProjectId()
      Returns the value of the linkedProjectId record component.
      Specified by:
      linkedProjectId in interface LinkedProjectConfig
      Returns:
      the value of the linkedProjectId record component
    • linkedProjectAlias

      public String linkedProjectAlias()
      Returns the value of the linkedProjectAlias record component.
      Specified by:
      linkedProjectAlias in interface LinkedProjectConfig
      Returns:
      the value of the linkedProjectAlias record component
    • transportConnectTimeout

      public TimeValue transportConnectTimeout()
      Returns the value of the transportConnectTimeout record component.
      Specified by:
      transportConnectTimeout in interface LinkedProjectConfig
      Returns:
      the value of the transportConnectTimeout record component
    • connectionCompression

      public Compression.Enabled connectionCompression()
      Returns the value of the connectionCompression record component.
      Specified by:
      connectionCompression in interface LinkedProjectConfig
      Returns:
      the value of the connectionCompression record component
    • connectionCompressionScheme

      public Compression.Scheme connectionCompressionScheme()
      Returns the value of the connectionCompressionScheme record component.
      Specified by:
      connectionCompressionScheme in interface LinkedProjectConfig
      Returns:
      the value of the connectionCompressionScheme record component
    • clusterPingSchedule

      public TimeValue clusterPingSchedule()
      Returns the value of the clusterPingSchedule record component.
      Specified by:
      clusterPingSchedule in interface LinkedProjectConfig
      Returns:
      the value of the clusterPingSchedule record component
    • initialConnectionTimeout

      public TimeValue initialConnectionTimeout()
      Returns the value of the initialConnectionTimeout record component.
      Specified by:
      initialConnectionTimeout in interface LinkedProjectConfig
      Returns:
      the value of the initialConnectionTimeout record component
    • skipUnavailable

      public boolean skipUnavailable()
      Returns the value of the skipUnavailable record component.
      Specified by:
      skipUnavailable in interface LinkedProjectConfig
      Returns:
      the value of the skipUnavailable record component
    • maxPendingConnectionListeners

      public int maxPendingConnectionListeners()
      Returns the value of the maxPendingConnectionListeners record component.
      Specified by:
      maxPendingConnectionListeners in interface LinkedProjectConfig
      Returns:
      the value of the maxPendingConnectionListeners record component
    • maxNumConnections

      public int maxNumConnections()
      Returns the value of the maxNumConnections record component.
      Specified by:
      maxNumConnections in interface LinkedProjectConfig
      Returns:
      the value of the maxNumConnections record component
    • nodePredicate

      public Predicate<DiscoveryNode> nodePredicate()
      Returns the value of the nodePredicate record component.
      Returns:
      the value of the nodePredicate record component
    • seedNodes

      public List<String> seedNodes()
      Returns the value of the seedNodes record component.
      Returns:
      the value of the seedNodes record component
    • proxyAddress

      public String proxyAddress()
      Returns the value of the proxyAddress record component.
      Specified by:
      proxyAddress in interface LinkedProjectConfig
      Returns:
      the value of the proxyAddress record component