Module org.elasticsearch.server
Package org.elasticsearch.transport
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.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.transport.LinkedProjectConfig
LinkedProjectConfig.Builder<B extends LinkedProjectConfig.Builder<B>>, LinkedProjectConfig.ProxyLinkedProjectConfig, LinkedProjectConfig.ProxyLinkedProjectConfigBuilder, LinkedProjectConfig.SniffLinkedProjectConfig, LinkedProjectConfig.SniffLinkedProjectConfigBuilder -
Constructor Summary
ConstructorsConstructorDescriptionSniffLinkedProjectConfig(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 aSniffLinkedProjectConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbuildRemoteConnectionStrategy(TransportService transportService, RemoteConnectionManager connectionManager) Returns the value of theclusterPingSchedulerecord component.Returns the value of theconnectionCompressionrecord component.Returns the value of theconnectionCompressionSchemerecord component.org.elasticsearch.transport.RemoteConnectionStrategy.ConnectionStrategyfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theinitialConnectionTimeoutrecord component.booleanReturns the value of thelinkedProjectAliasrecord component.Returns the value of thelinkedProjectIdrecord component.intReturns the value of themaxNumConnectionsrecord component.intReturns the value of themaxPendingConnectionListenersrecord component.Returns the value of thenodePredicaterecord component.Returns the value of theoriginProjectIdrecord component.Returns the value of theproxyAddressrecord component.Returns the value of theseedNodesrecord component.booleanReturns the value of theskipUnavailablerecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetransportConnectTimeoutrecord component.
-
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 aSniffLinkedProjectConfigrecord class.- Parameters:
originProjectId- the value for theoriginProjectIdrecord componentlinkedProjectId- the value for thelinkedProjectIdrecord componentlinkedProjectAlias- the value for thelinkedProjectAliasrecord componenttransportConnectTimeout- the value for thetransportConnectTimeoutrecord componentconnectionCompression- the value for theconnectionCompressionrecord componentconnectionCompressionScheme- the value for theconnectionCompressionSchemerecord componentclusterPingSchedule- the value for theclusterPingSchedulerecord componentinitialConnectionTimeout- the value for theinitialConnectionTimeoutrecord componentskipUnavailable- the value for theskipUnavailablerecord componentmaxPendingConnectionListeners- the value for themaxPendingConnectionListenersrecord componentmaxNumConnections- the value for themaxNumConnectionsrecord componentnodePredicate- the value for thenodePredicaterecord componentseedNodes- the value for theseedNodesrecord componentproxyAddress- the value for theproxyAddressrecord component
-
-
Method Details
-
connectionStrategy
public org.elasticsearch.transport.RemoteConnectionStrategy.ConnectionStrategy connectionStrategy()- Specified by:
connectionStrategyin interfaceLinkedProjectConfig
-
isConnectionEnabled
public boolean isConnectionEnabled()- Specified by:
isConnectionEnabledin interfaceLinkedProjectConfig
-
buildRemoteConnectionStrategy
public RemoteConnectionStrategy buildRemoteConnectionStrategy(TransportService transportService, RemoteConnectionManager connectionManager) - Specified by:
buildRemoteConnectionStrategyin interfaceLinkedProjectConfig
-
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. -
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. -
equals
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 withObjects::equals(Object,Object); primitive components are compared with '=='. -
originProjectId
Returns the value of theoriginProjectIdrecord component.- Specified by:
originProjectIdin interfaceLinkedProjectConfig- Returns:
- the value of the
originProjectIdrecord component
-
linkedProjectId
Returns the value of thelinkedProjectIdrecord component.- Specified by:
linkedProjectIdin interfaceLinkedProjectConfig- Returns:
- the value of the
linkedProjectIdrecord component
-
linkedProjectAlias
Returns the value of thelinkedProjectAliasrecord component.- Specified by:
linkedProjectAliasin interfaceLinkedProjectConfig- Returns:
- the value of the
linkedProjectAliasrecord component
-
transportConnectTimeout
Returns the value of thetransportConnectTimeoutrecord component.- Specified by:
transportConnectTimeoutin interfaceLinkedProjectConfig- Returns:
- the value of the
transportConnectTimeoutrecord component
-
connectionCompression
Returns the value of theconnectionCompressionrecord component.- Specified by:
connectionCompressionin interfaceLinkedProjectConfig- Returns:
- the value of the
connectionCompressionrecord component
-
connectionCompressionScheme
Returns the value of theconnectionCompressionSchemerecord component.- Specified by:
connectionCompressionSchemein interfaceLinkedProjectConfig- Returns:
- the value of the
connectionCompressionSchemerecord component
-
clusterPingSchedule
Returns the value of theclusterPingSchedulerecord component.- Specified by:
clusterPingSchedulein interfaceLinkedProjectConfig- Returns:
- the value of the
clusterPingSchedulerecord component
-
initialConnectionTimeout
Returns the value of theinitialConnectionTimeoutrecord component.- Specified by:
initialConnectionTimeoutin interfaceLinkedProjectConfig- Returns:
- the value of the
initialConnectionTimeoutrecord component
-
maxPendingConnectionListeners
public int maxPendingConnectionListeners()Returns the value of themaxPendingConnectionListenersrecord component.- Specified by:
maxPendingConnectionListenersin interfaceLinkedProjectConfig- Returns:
- the value of the
maxPendingConnectionListenersrecord component
-
maxNumConnections
public int maxNumConnections()Returns the value of themaxNumConnectionsrecord component.- Specified by:
maxNumConnectionsin interfaceLinkedProjectConfig- Returns:
- the value of the
maxNumConnectionsrecord component
-
nodePredicate
Returns the value of thenodePredicaterecord component.- Returns:
- the value of the
nodePredicaterecord component
-
seedNodes
Returns the value of theseedNodesrecord component.- Returns:
- the value of the
seedNodesrecord component
-
proxyAddress
Returns the value of theproxyAddressrecord component.- Specified by:
proxyAddressin interfaceLinkedProjectConfig- Returns:
- the value of the
proxyAddressrecord component
-