Uses of Class
org.elasticsearch.cluster.node.DiscoveryNode
-
-
Uses of DiscoveryNode in org.elasticsearch.action
Methods in org.elasticsearch.action with parameters of type DiscoveryNode Modifier and Type Method Description voidTransportActionNodeProxy. execute(DiscoveryNode node, Request request, ActionListener<Response> listener) -
Uses of DiscoveryNode in org.elasticsearch.action.admin.cluster.allocation
Methods in org.elasticsearch.action.admin.cluster.allocation that return DiscoveryNode Modifier and Type Method Description DiscoveryNodeClusterAllocationExplanation. getCurrentNode()Returns the currently assigned node, ornullif the shard is unassigned.DiscoveryNodeClusterAllocationExplanation. getRelocationTargetNode()Returns the relocating target node, ornullif the shard is not in theShardRoutingState.RELOCATINGstate.Constructors in org.elasticsearch.action.admin.cluster.allocation with parameters of type DiscoveryNode Constructor Description ClusterAllocationExplanation(ShardRouting shardRouting, DiscoveryNode currentNode, DiscoveryNode relocationTargetNode, ClusterInfo clusterInfo, ShardAllocationDecision shardAllocationDecision) -
Uses of DiscoveryNode in org.elasticsearch.action.admin.cluster.node.hotthreads
Constructors in org.elasticsearch.action.admin.cluster.node.hotthreads with parameters of type DiscoveryNode Constructor Description NodeHotThreads(DiscoveryNode node, String hotThreads) -
Uses of DiscoveryNode in org.elasticsearch.action.admin.cluster.node.info
Constructors in org.elasticsearch.action.admin.cluster.node.info with parameters of type DiscoveryNode Constructor Description NodeInfo(Version version, Build build, DiscoveryNode node, Settings settings, OsInfo os, ProcessInfo process, JvmInfo jvm, ThreadPoolInfo threadPool, TransportInfo transport, HttpInfo http, PluginsAndModules plugins, IngestInfo ingest, ByteSizeValue totalIndexingBuffer) -
Uses of DiscoveryNode in org.elasticsearch.action.admin.cluster.node.liveness
Methods in org.elasticsearch.action.admin.cluster.node.liveness that return DiscoveryNode Modifier and Type Method Description DiscoveryNodeLivenessResponse. getDiscoveryNode()Constructors in org.elasticsearch.action.admin.cluster.node.liveness with parameters of type DiscoveryNode Constructor Description LivenessResponse(ClusterName clusterName, DiscoveryNode node) -
Uses of DiscoveryNode in org.elasticsearch.action.admin.cluster.node.reload
Constructors in org.elasticsearch.action.admin.cluster.node.reload with parameters of type DiscoveryNode Constructor Description NodeResponse(DiscoveryNode node, Exception reloadException) -
Uses of DiscoveryNode in org.elasticsearch.action.admin.cluster.node.stats
Constructors in org.elasticsearch.action.admin.cluster.node.stats with parameters of type DiscoveryNode Constructor Description NodeStats(DiscoveryNode node, long timestamp, NodeIndicesStats indices, OsStats os, ProcessStats process, JvmStats jvm, ThreadPoolStats threadPool, FsInfo fs, TransportStats transport, HttpStats http, AllCircuitBreakerStats breaker, ScriptStats scriptStats, DiscoveryStats discoveryStats, IngestStats ingestStats, AdaptiveSelectionStats adaptiveSelectionStats) -
Uses of DiscoveryNode in org.elasticsearch.action.admin.cluster.node.usage
Constructors in org.elasticsearch.action.admin.cluster.node.usage with parameters of type DiscoveryNode Constructor Description NodeUsage(DiscoveryNode node, long timestamp, long sinceTime, Map<String,Long> restUsage) -
Uses of DiscoveryNode in org.elasticsearch.action.admin.cluster.repositories.verify
Constructors in org.elasticsearch.action.admin.cluster.repositories.verify with parameters of type DiscoveryNode Constructor Description VerifyRepositoryResponse(DiscoveryNode[] nodes) -
Uses of DiscoveryNode in org.elasticsearch.action.admin.cluster.shards
Methods in org.elasticsearch.action.admin.cluster.shards that return DiscoveryNode Modifier and Type Method Description DiscoveryNode[]ClusterSearchShardsResponse. getNodes()Constructors in org.elasticsearch.action.admin.cluster.shards with parameters of type DiscoveryNode Constructor Description ClusterSearchShardsResponse(ClusterSearchShardsGroup[] groups, DiscoveryNode[] nodes, Map<String,AliasFilter> indicesAndFilters) -
Uses of DiscoveryNode in org.elasticsearch.action.admin.cluster.snapshots.status
Constructors in org.elasticsearch.action.admin.cluster.snapshots.status with parameters of type DiscoveryNode Constructor Description NodeSnapshotStatus(DiscoveryNode node, Map<Snapshot,Map<ShardId,SnapshotIndexShardStatus>> status) -
Uses of DiscoveryNode in org.elasticsearch.action.admin.cluster.stats
Constructors in org.elasticsearch.action.admin.cluster.stats with parameters of type DiscoveryNode Constructor Description ClusterStatsNodeResponse(DiscoveryNode node, ClusterHealthStatus clusterStatus, NodeInfo nodeInfo, NodeStats nodeStats, ShardStats[] shardsStats) -
Uses of DiscoveryNode in org.elasticsearch.action.admin.indices.shards
Methods in org.elasticsearch.action.admin.indices.shards that return DiscoveryNode Modifier and Type Method Description DiscoveryNodeIndicesShardStoresResponse.StoreStatus. getNode()Node the store belongs toConstructors in org.elasticsearch.action.admin.indices.shards with parameters of type DiscoveryNode Constructor Description StoreStatus(DiscoveryNode node, String allocationId, IndicesShardStoresResponse.StoreStatus.AllocationStatus allocationStatus, Exception storeException) -
Uses of DiscoveryNode in org.elasticsearch.action.admin.indices.shrink
Methods in org.elasticsearch.action.admin.indices.shrink with parameters of type DiscoveryNode Modifier and Type Method Description protected StringTransportResizeAction. getMasterActionName(DiscoveryNode node) -
Uses of DiscoveryNode in org.elasticsearch.action.support.broadcast.node
Methods in org.elasticsearch.action.support.broadcast.node with parameters of type DiscoveryNode Modifier and Type Method Description protected voidTransportBroadcastByNodeAction.AsyncAction. onNodeFailure(DiscoveryNode node, int nodeIndex, Throwable t)protected voidTransportBroadcastByNodeAction.AsyncAction. onNodeResponse(DiscoveryNode node, int nodeIndex, org.elasticsearch.action.support.broadcast.node.TransportBroadcastByNodeAction.NodeResponse response) -
Uses of DiscoveryNode in org.elasticsearch.action.support.master
Methods in org.elasticsearch.action.support.master with parameters of type DiscoveryNode Modifier and Type Method Description protected StringTransportMasterNodeAction. getMasterActionName(DiscoveryNode node)Allows to conditionally return a different master node action name in the case an action gets renamed. -
Uses of DiscoveryNode in org.elasticsearch.action.support.nodes
Methods in org.elasticsearch.action.support.nodes that return DiscoveryNode Modifier and Type Method Description DiscoveryNode[]BaseNodesRequest. concreteNodes()DiscoveryNodeBaseNodeResponse. getNode()The node this information relates to.Methods in org.elasticsearch.action.support.nodes with parameters of type DiscoveryNode Modifier and Type Method Description voidBaseNodesRequest. setConcreteNodes(DiscoveryNode[] concreteNodes)Constructors in org.elasticsearch.action.support.nodes with parameters of type DiscoveryNode Constructor Description BaseNodeResponse(DiscoveryNode node)BaseNodesRequest(DiscoveryNode... concreteNodes) -
Uses of DiscoveryNode in org.elasticsearch.client.transport
Methods in org.elasticsearch.client.transport that return types with arguments of type DiscoveryNode Modifier and Type Method Description List<DiscoveryNode>TransportClient. connectedNodes()Deprecated.Returns the current connected transport nodes that this client will use.List<DiscoveryNode>TransportClient. filteredNodes()Deprecated.The list of filtered nodes that were not connected to, for example, due to mismatch in cluster name.List<DiscoveryNode>TransportClient. listedNodes()Deprecated.Returns the listed nodes in the transport client (ones added to it).Methods in org.elasticsearch.client.transport with parameters of type DiscoveryNode Modifier and Type Method Description voidTransportClient.HostFailureListener. onNodeDisconnected(DiscoveryNode node, Exception ex)Called once a node disconnect is detected. -
Uses of DiscoveryNode in org.elasticsearch.cluster
Methods in org.elasticsearch.cluster with parameters of type DiscoveryNode Modifier and Type Method Description static ClusterStateClusterState.Builder. fromBytes(byte[] data, DiscoveryNode localNode, NamedWriteableRegistry registry)booleanAckedClusterStateTaskListener. mustAck(DiscoveryNode discoveryNode)Called to determine which nodes the acknowledgement is expected from.booleanAckedClusterStateUpdateTask. mustAck(DiscoveryNode discoveryNode)Called to determine which nodes the acknowledgement is expected fromstatic Diff<ClusterState>ClusterState. readDiffFrom(StreamInput in, DiscoveryNode localNode)static ClusterStateClusterState. readFrom(StreamInput in, DiscoveryNode localNode) -
Uses of DiscoveryNode in org.elasticsearch.cluster.action.index
Methods in org.elasticsearch.cluster.action.index with parameters of type DiscoveryNode Modifier and Type Method Description voidNodeMappingRefreshAction. nodeMappingRefresh(DiscoveryNode masterNode, NodeMappingRefreshAction.NodeMappingRefreshRequest request) -
Uses of DiscoveryNode in org.elasticsearch.cluster.coordination
Fields in org.elasticsearch.cluster.coordination declared as DiscoveryNode Modifier and Type Field Description protected DiscoveryNodeTermVersionRequest. sourceNodeMethods in org.elasticsearch.cluster.coordination that return DiscoveryNode Modifier and Type Method Description static DiscoveryNodeDiscoveryUpgradeService. createDiscoveryNodeWithImpossiblyHighId(DiscoveryNode node)Pre-7.0 nodes select the best master by comparing their IDs (as strings) and selecting the lowest one amongst those nodes with the best cluster state version.DiscoveryNodeFollowersChecker.FollowerCheckRequest. getSender()DiscoveryNodeJoin. getSourceNode()DiscoveryNodeJoinRequest. getSourceNode()DiscoveryNodePreVoteRequest. getSourceNode()DiscoveryNodeStartJoinRequest. getSourceNode()DiscoveryNodeJoin. getTargetNode()DiscoveryNodeLeaderChecker. leader()DiscoveryNodeJoinTaskExecutor.Task. node()DiscoveryNodeNodeRemovalClusterStateTaskExecutor.Task. node()Methods in org.elasticsearch.cluster.coordination that return types with arguments of type DiscoveryNode Modifier and Type Method Description static Collection<BiConsumer<DiscoveryNode,ClusterState>>JoinTaskExecutor. addBuiltInJoinValidators(Collection<BiConsumer<DiscoveryNode,ClusterState>> onJoinValidators)List<DiscoveryNode>Publication. completedNodes()Set<DiscoveryNode>FollowersChecker. getFaultyNodes()Iterable<DiscoveryNode>Coordinator. getFoundPeers()List<DiscoveryNode>PeersResponse. getKnownPeers()Optional<DiscoveryNode>PeersResponse. getMasterNode()Collection<BiConsumer<DiscoveryNode,ClusterState>>Coordinator. getOnJoinValidators()Collection<DiscoveryNode>CoordinationState.VoteCollection. nodes()Methods in org.elasticsearch.cluster.coordination with parameters of type DiscoveryNode Modifier and Type Method Description booleanCoordinationState.VoteCollection. addVote(DiscoveryNode sourceNode)booleanCoordinationState. containsJoinVoteFor(DiscoveryNode node)booleanCoordinationState.VoteCollection. containsVoteFor(DiscoveryNode node)static DiscoveryNodeDiscoveryUpgradeService. createDiscoveryNodeWithImpossiblyHighId(DiscoveryNode node)Pre-7.0 nodes select the best master by comparing their IDs (as strings) and selecting the lowest one amongst those nodes with the best cluster state version.Optional<ApplyCommitRequest>CoordinationState. handlePublishResponse(DiscoveryNode sourceNode, PublishResponse publishResponse)May be called on receipt of a PublishResponse from the given sourceNode.protected abstract Optional<ApplyCommitRequest>Publication. handlePublishResponse(DiscoveryNode sourceNode, PublishResponse publishResponse)booleanElectionStrategy. isElectionQuorum(DiscoveryNode localNode, long localCurrentTerm, long localAcceptedTerm, long localAcceptedVersion, CoordinationMetaData.VotingConfiguration lastCommittedConfiguration, CoordinationMetaData.VotingConfiguration lastAcceptedConfiguration, CoordinationState.VoteCollection joinVotes)Whether there is an election quorum from the point of view of the given local node under the provided voting configurationsstatic booleanCoordinator. isZen1Node(DiscoveryNode discoveryNode)static CoordinationMetaData.VotingConfigurationCoordinationMetaData.VotingConfiguration. of(DiscoveryNode... nodes)voidPublication. onFaultyNode(DiscoveryNode faultyNode)protected abstract voidPublication. onMissingJoin(DiscoveryNode discoveryNode)voidClusterStatePublisher.AckListener. onNodeAck(DiscoveryNode node, Exception e)Should be called whenever the cluster coordination layer receives confirmation from a node that it has successfully applied the cluster state.CoordinationMetaData.VotingConfigurationReconfigurator. reconfigure(Set<DiscoveryNode> liveNodes, Set<String> retiredNodeIds, DiscoveryNode currentMaster, CoordinationMetaData.VotingConfiguration currentConfig)Compute an optimal configuration for the cluster.protected abstract booleanElectionStrategy. satisfiesAdditionalQuorumConstraints(DiscoveryNode localNode, long localCurrentTerm, long localAcceptedTerm, long localAcceptedVersion, CoordinationMetaData.VotingConfiguration lastCommittedConfiguration, CoordinationMetaData.VotingConfiguration lastAcceptedConfiguration, CoordinationState.VoteCollection joinVotes)The extension point to be overridden by plugins.protected abstract voidPublication. sendApplyCommit(DiscoveryNode destination, ApplyCommitRequest applyCommit, ActionListener<TransportResponse.Empty> responseActionListener)voidPublicationTransportHandler.PublicationContext. sendApplyCommit(DiscoveryNode destination, ApplyCommitRequest applyCommitRequest, ActionListener<TransportResponse.Empty> responseActionListener)voidJoinHelper. sendJoinRequest(DiscoveryNode destination, Optional<Join> optionalJoin)voidJoinHelper. sendJoinRequest(DiscoveryNode destination, Optional<Join> optionalJoin, Runnable onCompletion)protected abstract voidPublication. sendPublishRequest(DiscoveryNode destination, PublishRequest publishRequest, ActionListener<PublishWithJoinResponse> responseActionListener)voidPublicationTransportHandler.PublicationContext. sendPublishRequest(DiscoveryNode destination, PublishRequest publishRequest, ActionListener<PublishWithJoinResponse> responseActionListener)voidJoinHelper. sendStartJoinRequest(StartJoinRequest startJoinRequest, DiscoveryNode destination)voidJoinHelper. sendValidateJoinRequest(DiscoveryNode node, ClusterState state, ActionListener<TransportResponse.Empty> listener)voidLagDetector. setAppliedVersion(DiscoveryNode discoveryNode, long appliedVersion)booleanJoin. targetMatches(DiscoveryNode matchingNode)voidPreVoteCollector. update(PreVoteResponse preVoteResponse, DiscoveryNode leader)Method parameters in org.elasticsearch.cluster.coordination with type arguments of type DiscoveryNode Modifier and Type Method Description voidDiscoveryUpgradeService. activate(Optional<DiscoveryNode> lastKnownLeader, ClusterState lastAcceptedClusterState)static Collection<BiConsumer<DiscoveryNode,ClusterState>>JoinTaskExecutor. addBuiltInJoinValidators(Collection<BiConsumer<DiscoveryNode,ClusterState>> onJoinValidators)CoordinationMetaData.VotingConfigurationReconfigurator. reconfigure(Set<DiscoveryNode> liveNodes, Set<String> retiredNodeIds, DiscoveryNode currentMaster, CoordinationMetaData.VotingConfiguration currentConfig)Compute an optimal configuration for the cluster.voidLagDetector. setTrackedNodes(Iterable<DiscoveryNode> discoveryNodes)ReleasablePreVoteCollector. start(ClusterState clusterState, Iterable<DiscoveryNode> broadcastNodes)Start a new pre-voting round.voidPublication. start(Set<DiscoveryNode> faultyNodes)Constructors in org.elasticsearch.cluster.coordination with parameters of type DiscoveryNode Constructor Description ApplyCommitRequest(DiscoveryNode sourceNode, long term, long version)CoordinationState(DiscoveryNode localNode, CoordinationState.PersistedState persistedState, ElectionStrategy electionStrategy)FollowerCheckRequest(long term, DiscoveryNode sender)Join(DiscoveryNode sourceNode, DiscoveryNode targetNode, long term, long lastAcceptedTerm, long lastAcceptedVersion)JoinRequest(DiscoveryNode sourceNode, Optional<Join> optionalJoin)PreVoteRequest(DiscoveryNode sourceNode, long currentTerm)StartJoinRequest(DiscoveryNode sourceNode, long term)Task(DiscoveryNode node, String reason)Task(DiscoveryNode node, String reason)VotingConfigExclusion(DiscoveryNode node) -
Uses of DiscoveryNode in org.elasticsearch.cluster.node
Methods in org.elasticsearch.cluster.node that return DiscoveryNode Modifier and Type Method Description static DiscoveryNodeDiscoveryNode. createLocal(Settings settings, TransportAddress publishAddress, String nodeId)Creates a DiscoveryNode representing the local node.DiscoveryNodeDiscoveryNodes. findByAddress(TransportAddress address)Get a node by its addressDiscoveryNodeDiscoveryNodes.Builder. get(String nodeId)Get a node by its idDiscoveryNodeDiscoveryNodes. get(String nodeId)Get a node by its idDiscoveryNodeDiscoveryNodes. getLocalNode()Get the local nodeDiscoveryNodeDiscoveryNodes. getMasterNode()Returns the master node, ornullif there is no master nodeDiscoveryNodeDiscoveryNodes.Delta. newMasterNode()DiscoveryNodeDiscoveryNodes.Delta. previousMasterNode()DiscoveryNodeDiscoveryNodes. resolveNode(String node)Resolve a node with a given idMethods in org.elasticsearch.cluster.node that return types with arguments of type DiscoveryNode Modifier and Type Method Description List<DiscoveryNode>DiscoveryNodes.Delta. addedNodes()ImmutableOpenMap<String,DiscoveryNode>DiscoveryNodes. getCoordinatingOnlyNodes()Get aMapof the coordinating only nodes (nodes which are neither master, nor data, nor ingest nodes) arranged by their idsImmutableOpenMap<String,DiscoveryNode>DiscoveryNodes. getDataNodes()Get aMapof the discovered data nodes arranged by their idsImmutableOpenMap<String,DiscoveryNode>DiscoveryNodes. getIngestNodes()ImmutableOpenMap<String,DiscoveryNode>DiscoveryNodes. getMasterAndDataNodes()Get aMapof the discovered master and data nodes arranged by their idsImmutableOpenMap<String,DiscoveryNode>DiscoveryNodes. getMasterNodes()Get aMapof the discovered master nodes arranged by their idsImmutableOpenMap<String,DiscoveryNode>DiscoveryNodes. getNodes()Get aMapof the discovered nodes arranged by their idsIterator<DiscoveryNode>DiscoveryNodes. iterator()Stream<DiscoveryNode>DiscoveryNodes. mastersFirstStream()Returns a stream of all nodes, with master nodes at the frontList<DiscoveryNode>DiscoveryNodes.Delta. removedNodes()Methods in org.elasticsearch.cluster.node with parameters of type DiscoveryNode Modifier and Type Method Description DiscoveryNodes.BuilderDiscoveryNodes.Builder. add(DiscoveryNode node)adds a disco node to the builder.booleanDiscoveryNodeFilters. match(DiscoveryNode node)DiscoveryNodesDiscoveryNodes. newNode(DiscoveryNode node)booleanDiscoveryNodes. nodeExists(DiscoveryNode node)Determine if a given node existsstatic Diff<DiscoveryNodes>DiscoveryNodes. readDiffFrom(StreamInput in, DiscoveryNode localNode)static DiscoveryNodesDiscoveryNodes. readFrom(StreamInput in, DiscoveryNode localNode)DiscoveryNodes.BuilderDiscoveryNodes.Builder. remove(DiscoveryNode node) -
Uses of DiscoveryNode in org.elasticsearch.cluster.routing
Methods in org.elasticsearch.cluster.routing that return DiscoveryNode Modifier and Type Method Description DiscoveryNodeRoutingNode. node()Returns the nodesDiscoveryNode.Constructors in org.elasticsearch.cluster.routing with parameters of type DiscoveryNode Constructor Description RoutingNode(String nodeId, DiscoveryNode node, ShardRouting... shards) -
Uses of DiscoveryNode in org.elasticsearch.cluster.routing.allocation
Fields in org.elasticsearch.cluster.routing.allocation declared as DiscoveryNode Modifier and Type Field Description protected DiscoveryNodeAbstractAllocationDecision. targetNodeMethods in org.elasticsearch.cluster.routing.allocation that return DiscoveryNode Modifier and Type Method Description DiscoveryNodeNodeAllocationResult. getNode()Get the node that this decision is for.DiscoveryNodeAbstractAllocationDecision. getTargetNode()Get the node that the allocator will assign the shard to, returningnullif there is no node to which the shard will be assigned or moved.Methods in org.elasticsearch.cluster.routing.allocation with parameters of type DiscoveryNode Modifier and Type Method Description static MoveDecisionMoveDecision. cannotRemain(Decision canRemainDecision, AllocationDecision allocationDecision, DiscoveryNode assignedNode, List<NodeAllocationResult> nodeDecisions)Creates a move decision for the shard not being allowed to remain on its current node.static XContentBuilderAbstractAllocationDecision. discoveryNodeToXContent(DiscoveryNode node, boolean outerObjectWritten, XContentBuilder builder)Generates X-Content for aDiscoveryNodethat leaves off some of the non-critical fields.static AllocateUnassignedDecisionAllocateUnassignedDecision. fromDecision(Decision decision, DiscoveryNode assignedNode, List<NodeAllocationResult> nodeDecisions)Creates aAllocateUnassignedDecisionfrom the givenDecisionand the assigned node, if any.static MoveDecisionMoveDecision. rebalance(Decision canRebalanceDecision, AllocationDecision allocationDecision, DiscoveryNode assignedNode, int currentNodeRanking, List<NodeAllocationResult> nodeDecisions)Creates a decision for whether to move the shard to a different node to form a better cluster balance.static AllocateUnassignedDecisionAllocateUnassignedDecision. yes(DiscoveryNode assignedNode, String allocationId, List<NodeAllocationResult> decisions, boolean reuseStore)Creates a YES decision with the given individual node-level decisions that comprised the final YES decision, along with the node id to which the shard is assigned and the allocation id for the shard, if available.Constructors in org.elasticsearch.cluster.routing.allocation with parameters of type DiscoveryNode Constructor Description AbstractAllocationDecision(DiscoveryNode targetNode, List<NodeAllocationResult> nodeDecisions)NodeAllocationResult(DiscoveryNode node, AllocationDecision nodeDecision, Decision canAllocate, int weightRanking)NodeAllocationResult(DiscoveryNode node, Decision decision, int weightRanking)NodeAllocationResult(DiscoveryNode node, NodeAllocationResult.ShardStoreInfo shardStoreInfo, Decision decision) -
Uses of DiscoveryNode in org.elasticsearch.cluster.routing.allocation.command
Methods in org.elasticsearch.cluster.routing.allocation.command with parameters of type DiscoveryNode Modifier and Type Method Description protected RerouteExplanationAbstractAllocateAllocationCommand. explainOrThrowMissingRoutingNode(RoutingAllocation allocation, boolean explain, DiscoveryNode discoNode)Handle case where a disco node cannot be found in the routing table. -
Uses of DiscoveryNode in org.elasticsearch.cluster.service
Methods in org.elasticsearch.cluster.service that return DiscoveryNode Modifier and Type Method Description DiscoveryNodeClusterService. localNode()The local node. -
Uses of DiscoveryNode in org.elasticsearch.discovery
Methods in org.elasticsearch.discovery that return DiscoveryNode Modifier and Type Method Description DiscoveryNodePeersRequest. getSourceNode()DiscoveryNode[]BlockingClusterStatePublishResponseHandler. pendingNodes()returns a list of nodes which didn't respond yetMethods in org.elasticsearch.discovery that return types with arguments of type DiscoveryNode Modifier and Type Method Description Set<DiscoveryNode>BlockingClusterStatePublishResponseHandler. getFailedNodes()returns a set of nodes for which publication has failed.Iterable<DiscoveryNode>PeerFinder. getFoundPeers()List<DiscoveryNode>PeersRequest. getKnownPeers()Optional<DiscoveryNode>PeerFinder. getLeader()Methods in org.elasticsearch.discovery with parameters of type DiscoveryNode Modifier and Type Method Description voidPeerFinder. deactivate(DiscoveryNode leader)protected abstract voidPeerFinder. onActiveMasterFound(DiscoveryNode masterNode, long term)Invoked on receipt of a PeersResponse from a node that believes it's an active leader, which this node should therefore try and join.voidAckClusterStatePublishResponseHandler. onFailure(DiscoveryNode node, Exception e)voidBlockingClusterStatePublishResponseHandler. onFailure(DiscoveryNode node, Exception e)Called for each failure obtained from non master nodesvoidAckClusterStatePublishResponseHandler. onResponse(DiscoveryNode node)voidBlockingClusterStatePublishResponseHandler. onResponse(DiscoveryNode node)Called for each response obtained from non master nodesMethod parameters in org.elasticsearch.discovery with type arguments of type DiscoveryNode Modifier and Type Method Description voidHandshakingTransportAddressConnector. connectToRemoteMasterNode(TransportAddress transportAddress, ActionListener<DiscoveryNode> listener)voidPeerFinder.TransportAddressConnector. connectToRemoteMasterNode(TransportAddress transportAddress, ActionListener<DiscoveryNode> listener)Identify the node at the given address and, if it is a master node and not the local node then establish a full connection to it.Constructors in org.elasticsearch.discovery with parameters of type DiscoveryNode Constructor Description PeersRequest(DiscoveryNode sourceNode, List<DiscoveryNode> knownPeers)Constructor parameters in org.elasticsearch.discovery with type arguments of type DiscoveryNode Constructor Description AckClusterStatePublishResponseHandler(Set<DiscoveryNode> publishingToNodes, ClusterStatePublisher.AckListener ackListener)Creates a new AckClusterStatePublishResponseHandlerBlockingClusterStatePublishResponseHandler(Set<DiscoveryNode> publishingToNodes)Creates a new BlockingClusterStatePublishResponseHandlerPeersRequest(DiscoveryNode sourceNode, List<DiscoveryNode> knownPeers) -
Uses of DiscoveryNode in org.elasticsearch.discovery.zen
Fields in org.elasticsearch.discovery.zen declared as DiscoveryNode Modifier and Type Field Description DiscoveryNodeMasterFaultDetection.MasterPingRequest. sourceNodeMethods in org.elasticsearch.discovery.zen that return DiscoveryNode Modifier and Type Method Description DiscoveryNodeElectMasterService.MasterCandidate. getNode()DiscoveryNodeMembershipAction.JoinRequest. getNode()DiscoveryNodeZenPing.PingResponse. master()the current master of the nodeDiscoveryNodeMasterFaultDetection. masterNode()DiscoveryNodeNodesFaultDetection.PingRequest. masterNode()DiscoveryNode[]ElectMasterService. nextPossibleMasters(ObjectContainer<DiscoveryNode> nodes, int numberOfPossibleMasters)Returns a list of the next possible masters.DiscoveryNodeZenPing.PingResponse. node()the node which this ping describesDiscoveryNodeNodesFaultDetection.PingRequest. targetNode()DiscoveryNodeElectMasterService. tieBreakActiveMasters(Collection<DiscoveryNode> activeMasters)selects the best active master to join, where multiple are discoveredMethods in org.elasticsearch.discovery.zen that return types with arguments of type DiscoveryNode Modifier and Type Method Description Set<DiscoveryNode>NodesFaultDetection. getNodes()Gets the current set of nodes involved in node fault detection.Collection<BiConsumer<DiscoveryNode,ClusterState>>ZenDiscovery. getOnJoinValidators()Methods in org.elasticsearch.discovery.zen with parameters of type DiscoveryNode Modifier and Type Method Description Transport.ConnectionUnicastZenPing.PingingRound. getOrConnect(DiscoveryNode node)protected TransportResponseHandler<UnicastZenPing.UnicastPingResponse>UnicastZenPing. getPingResponseHandler(UnicastZenPing.PingingRound pingingRound, DiscoveryNode node)voidNodeJoinController. handleJoinRequest(DiscoveryNode node, MembershipAction.JoinCallback callback)processes or queues an incoming join request.protected voidMasterFaultDetection. handleTransportDisconnect(DiscoveryNode node)protected voidNodesFaultDetection. handleTransportDisconnect(DiscoveryNode node)voidMembershipAction.MembershipListener. onJoin(DiscoveryNode node, MembershipAction.JoinCallback callback)voidMembershipAction.MembershipListener. onLeave(DiscoveryNode node)voidMasterFaultDetection.Listener. onMasterFailure(DiscoveryNode masterNode, Throwable cause, String reason)called when pinging the master failed, like a timeout, transport disconnects etcvoidNodesFaultDetection.Listener. onNodeFailure(DiscoveryNode node, String reason)voidMasterFaultDetection. restart(DiscoveryNode masterNode, String reason)voidMembershipAction. sendJoinRequestBlocking(DiscoveryNode masterNode, DiscoveryNode node, TimeValue timeout)voidMembershipAction. sendLeaveRequest(DiscoveryNode masterNode, DiscoveryNode node)voidMembershipAction. sendLeaveRequestBlocking(DiscoveryNode masterNode, DiscoveryNode node, TimeValue timeout)voidMembershipAction. sendValidateJoinRequestBlocking(DiscoveryNode node, ClusterState state, TimeValue timeout)Validates the join request, throwing a failure if it failed.voidNodesFaultDetection. setLocalNode(DiscoveryNode localNode)Method parameters in org.elasticsearch.discovery.zen with type arguments of type DiscoveryNode Modifier and Type Method Description intElectMasterService. countMasterNodes(Iterable<DiscoveryNode> nodes)booleanElectMasterService. hasEnoughMasterNodes(Iterable<DiscoveryNode> nodes)booleanElectMasterService. hasTooManyMasterNodes(Iterable<DiscoveryNode> nodes)DiscoveryNode[]ElectMasterService. nextPossibleMasters(ObjectContainer<DiscoveryNode> nodes, int numberOfPossibleMasters)Returns a list of the next possible masters.DiscoveryNodeElectMasterService. tieBreakActiveMasters(Collection<DiscoveryNode> activeMasters)selects the best active master to join, where multiple are discoveredConstructors in org.elasticsearch.discovery.zen with parameters of type DiscoveryNode Constructor Description JoinRequest(DiscoveryNode node)MasterCandidate(DiscoveryNode node, long clusterStateVersion)MasterPingRequest(DiscoveryNode sourceNode, DiscoveryNode masterNode, ClusterName clusterName)PingRequest(DiscoveryNode targetNode, ClusterName clusterName, DiscoveryNode masterNode, long clusterStateVersion)PingResponse(long id, DiscoveryNode node, DiscoveryNode master, ClusterName clusterName, long clusterStateVersion)PingResponse(DiscoveryNode node, DiscoveryNode master, ClusterName clusterName, long clusterStateVersion)PingResponse(DiscoveryNode node, DiscoveryNode master, ClusterState state)Constructor parameters in org.elasticsearch.discovery.zen with type arguments of type DiscoveryNode Constructor Description MembershipAction(TransportService transportService, MembershipAction.MembershipListener listener, Collection<BiConsumer<DiscoveryNode,ClusterState>> joinValidators)ZenDiscovery(Settings settings, ThreadPool threadPool, TransportService transportService, NamedWriteableRegistry namedWriteableRegistry, MasterService masterService, ClusterApplier clusterApplier, ClusterSettings clusterSettings, SeedHostsProvider hostsProvider, AllocationService allocationService, Collection<BiConsumer<DiscoveryNode,ClusterState>> onJoinValidators, RerouteService rerouteService) -
Uses of DiscoveryNode in org.elasticsearch.gateway
Methods in org.elasticsearch.gateway that return types with arguments of type DiscoveryNode Modifier and Type Method Description Map<DiscoveryNode,T>AsyncShardFetch.FetchResult. getData()Returns the actual data, note, make sure to checkAsyncShardFetch.FetchResult.hasData()first and only use this when there is an actual data.Methods in org.elasticsearch.gateway with parameters of type DiscoveryNode Modifier and Type Method Description voidAsyncShardFetch.Lister. list(ShardId shardId, DiscoveryNode[] nodes, ActionListener<NodesResponse> listener)voidTransportNodesListGatewayStartedShards. list(ShardId shardId, DiscoveryNode[] nodes, ActionListener<TransportNodesListGatewayStartedShards.NodesGatewayStartedShards> listener)Constructors in org.elasticsearch.gateway with parameters of type DiscoveryNode Constructor Description NodeGatewayMetaState(DiscoveryNode node, MetaData metaData)NodeGatewayStartedShards(DiscoveryNode node, String allocationId, boolean primary)NodeGatewayStartedShards(DiscoveryNode node, String allocationId, boolean primary, Exception storeException)Request(ShardId shardId, DiscoveryNode[] nodes)Constructor parameters in org.elasticsearch.gateway with type arguments of type DiscoveryNode Constructor Description FetchResult(ShardId shardId, Map<DiscoveryNode,T> data, Set<String> ignoreNodes) -
Uses of DiscoveryNode in org.elasticsearch.indices.recovery
Methods in org.elasticsearch.indices.recovery that return DiscoveryNode Modifier and Type Method Description DiscoveryNodeRecoveryState. getSourceNode()Returns recovery source node (only non-null if peer recovery)DiscoveryNodeRecoveryState. getTargetNode()DiscoveryNodeRecoveryTarget. sourceNode()DiscoveryNodeStartRecoveryRequest. sourceNode()DiscoveryNodeStartRecoveryRequest. targetNode()Methods in org.elasticsearch.indices.recovery with parameters of type DiscoveryNode Modifier and Type Method Description static StartRecoveryRequestPeerRecoveryTargetService. getStartRecoveryRequest(org.apache.logging.log4j.Logger logger, DiscoveryNode localNode, RecoveryTarget recoveryTarget, long startingSeqNo)Prepare the start recovery request.voidPeerRecoveryTargetService. startRecovery(IndexShard indexShard, DiscoveryNode sourceNode, PeerRecoveryTargetService.RecoveryListener listener)longRecoveriesCollection. startRecovery(IndexShard indexShard, DiscoveryNode sourceNode, PeerRecoveryTargetService.RecoveryListener listener, TimeValue activityTimeout)Starts are new recovery for the given shard, source node and stateConstructors in org.elasticsearch.indices.recovery with parameters of type DiscoveryNode Constructor Description RecoveryFailedException(ShardId shardId, DiscoveryNode sourceNode, DiscoveryNode targetNode, String extraInfo, Throwable cause)RecoveryState(ShardRouting shardRouting, DiscoveryNode targetNode, DiscoveryNode sourceNode)RecoveryTarget(IndexShard indexShard, DiscoveryNode sourceNode, PeerRecoveryTargetService.RecoveryListener listener)Creates a new recovery target object that represents a recovery to the provided shard.RemoteRecoveryTargetHandler(long recoveryId, ShardId shardId, TransportService transportService, DiscoveryNode targetNode, RecoverySettings recoverySettings, Consumer<Long> onSourceThrottle)StartRecoveryRequest(ShardId shardId, String targetAllocationId, DiscoveryNode sourceNode, DiscoveryNode targetNode, Store.MetadataSnapshot metadataSnapshot, boolean primaryRelocation, long recoveryId, long startingSeqNo)Construct a request for starting a peer recovery. -
Uses of DiscoveryNode in org.elasticsearch.indices.store
Methods in org.elasticsearch.indices.store with parameters of type DiscoveryNode Modifier and Type Method Description longTransportNodesListShardStoreMetaData.StoreFilesMetaData. getPeerRecoveryRetentionLeaseRetainingSeqNo(DiscoveryNode node)Returns the retaining sequence number of the peer recovery retention lease for a given node if exists; otherwise, returns -1.voidTransportNodesListShardStoreMetaData. list(ShardId shardId, DiscoveryNode[] nodes, ActionListener<TransportNodesListShardStoreMetaData.NodesStoreFilesMetaData> listener)Constructors in org.elasticsearch.indices.store with parameters of type DiscoveryNode Constructor Description NodeStoreFilesMetaData(DiscoveryNode node, TransportNodesListShardStoreMetaData.StoreFilesMetaData storeFilesMetaData)Request(ShardId shardId, DiscoveryNode[] nodes) -
Uses of DiscoveryNode in org.elasticsearch.ingest
Method parameters in org.elasticsearch.ingest with type arguments of type DiscoveryNode Modifier and Type Method Description voidIngestService. putPipeline(Map<DiscoveryNode,IngestInfo> ingestInfos, PutPipelineRequest request, ActionListener<AcknowledgedResponse> listener)Stores the specified pipeline definition in the request. -
Uses of DiscoveryNode in org.elasticsearch.node
Method parameters in org.elasticsearch.node with type arguments of type DiscoveryNode Modifier and Type Method Description protected TransportServiceNode. newTransportService(Settings settings, Transport transport, ThreadPool threadPool, TransportInterceptor interceptor, Function<BoundTransportAddress,DiscoveryNode> localNodeFactory, ClusterSettings clusterSettings, Set<String> taskHeaders)Constructors in org.elasticsearch.node with parameters of type DiscoveryNode Constructor Description NodeClosedException(DiscoveryNode node) -
Uses of DiscoveryNode in org.elasticsearch.persistent
Methods in org.elasticsearch.persistent that return DiscoveryNode Modifier and Type Method Description protected DiscoveryNodePersistentTasksExecutor. selectLeastLoadedNode(ClusterState clusterState, Predicate<DiscoveryNode> selector)Finds the least loaded node that satisfies the selector criteriaMethod parameters in org.elasticsearch.persistent with type arguments of type DiscoveryNode Modifier and Type Method Description protected DiscoveryNodePersistentTasksExecutor. selectLeastLoadedNode(ClusterState clusterState, Predicate<DiscoveryNode> selector)Finds the least loaded node that satisfies the selector criteria -
Uses of DiscoveryNode in org.elasticsearch.plugins
Methods in org.elasticsearch.plugins that return types with arguments of type DiscoveryNode Modifier and Type Method Description default BiConsumer<DiscoveryNode,ClusterState>DiscoveryPlugin. getJoinValidator()Returns a consumer that validate the initial join cluster state. -
Uses of DiscoveryNode in org.elasticsearch.repositories
Methods in org.elasticsearch.repositories with parameters of type DiscoveryNode Modifier and Type Method Description voidRepository. verify(String verificationToken, DiscoveryNode localNode)Verifies repository settings on data node.Method parameters in org.elasticsearch.repositories with type arguments of type DiscoveryNode Modifier and Type Method Description voidVerifyNodeRepositoryAction. verify(String repository, String verificationToken, ActionListener<List<DiscoveryNode>> listener)voidRepositoriesService. verifyRepository(String repositoryName, ActionListener<List<DiscoveryNode>> listener) -
Uses of DiscoveryNode in org.elasticsearch.repositories.blobstore
Methods in org.elasticsearch.repositories.blobstore with parameters of type DiscoveryNode Modifier and Type Method Description voidBlobStoreRepository. verify(String seed, DiscoveryNode localNode) -
Uses of DiscoveryNode in org.elasticsearch.tasks
Methods in org.elasticsearch.tasks with parameters of type DiscoveryNode Modifier and Type Method Description TaskResultTask. result(DiscoveryNode node, Exception error)TaskResultTask. result(DiscoveryNode node, ActionResponse response) -
Uses of DiscoveryNode in org.elasticsearch.transport
Methods in org.elasticsearch.transport that return DiscoveryNode Modifier and Type Method Description DiscoveryNodeTransportService.HandshakeResponse. getDiscoveryNode()DiscoveryNodeTransportService. getLocalNode()DiscoveryNodeTcpTransport.NodeChannels. getNode()DiscoveryNodeTransport.Connection. getNode()The node this connection is associated withDiscoveryNodeRemoteClusterAwareRequest. getPreferredTargetNode()Returns the preferred discovery node for this request.DiscoveryNodeConnectTransportException. node()Methods in org.elasticsearch.transport that return types with arguments of type DiscoveryNode Modifier and Type Method Description protected static Map<String,Tuple<String,List<Tuple<String,Supplier<DiscoveryNode>>>>>RemoteClusterAware. buildRemoteClustersDynamicConfig(Settings settings)Builds the dynamic per-cluster config from the given settings.Methods in org.elasticsearch.transport with parameters of type DiscoveryNode Modifier and Type Method Description ConnectionManager.ConnectionValidatorTransportService. connectionValidator(DiscoveryNode node)voidConnectionManager. connectToNode(DiscoveryNode node, ConnectionProfile connectionProfile, ConnectionManager.ConnectionValidator connectionValidator, ActionListener<Void> listener)Connects to a node with the given connection profile.voidRemoteConnectionManager. connectToNode(DiscoveryNode node, ConnectionProfile connectionProfile, ConnectionManager.ConnectionValidator connectionValidator, ActionListener<Void> listener)voidTransportService. connectToNode(DiscoveryNode node)Connect to the specified node with the default connection profilevoidTransportService. connectToNode(DiscoveryNode node, ActionListener<Void> listener)Connect to the specified node with the given connection profile.voidTransportService. connectToNode(DiscoveryNode node, ConnectionProfile connectionProfile)Connect to the specified node with the given connection profilevoidTransportService. connectToNode(DiscoveryNode node, ConnectionProfile connectionProfile, ActionListener<Void> listener)Connect to the specified node with the given connection profile.voidConnectionManager. disconnectFromNode(DiscoveryNode node)Disconnected from the given node, if not connected, will do nothing.voidTransportService. disconnectFromNode(DiscoveryNode node)voidTcpTransport. executeHandshake(DiscoveryNode node, TcpChannel channel, ConnectionProfile profile, ActionListener<Version> listener)Transport.ConnectionConnectionManager. getConnection(DiscoveryNode node)Returns a connection for the given node if the node is connected.Transport.ConnectionRemoteClusterService. getConnection(DiscoveryNode node, String cluster)Returns a connection to the given node on the given remote clusterTransport.ConnectionTransportService. getConnection(DiscoveryNode node)Returns either a real transport connection or a local node connection if we are using the local node optimization.Transport.ConnectionRemoteConnectionManager. getRemoteConnection(DiscoveryNode node)protected abstract TcpChannelTcpTransport. initiateChannel(DiscoveryNode node)Initiate a single tcp socket channel.booleanConnectionManager. nodeConnected(DiscoveryNode node)Returnstrueif the node is connected.booleanTransportService. nodeConnected(DiscoveryNode node)Returnstrueiff the given node is already connected.default voidTransportConnectionListener. onNodeConnected(DiscoveryNode node, Transport.Connection connection)Called once a node connection is opened and registered.default voidTransportConnectionListener. onNodeDisconnected(DiscoveryNode node, Transport.Connection connection)Called once a node connection is closed and unregistered.default voidTransportMessageListener. onRequestSent(DiscoveryNode node, long requestId, String action, TransportRequest request, TransportRequestOptions finalOptions)Called for every request sent to a server after the request has been passed to the underlying network implementationvoidTransportService. onRequestSent(DiscoveryNode node, long requestId, String action, TransportRequest request, TransportRequestOptions options)called by theTransportimplementation once a request has been sentvoidConnectionManager. openConnection(DiscoveryNode node, ConnectionProfile connectionProfile, ActionListener<Transport.Connection> listener)voidRemoteConnectionManager. openConnection(DiscoveryNode node, ConnectionProfile profile, ActionListener<Transport.Connection> listener)voidTcpTransport. openConnection(DiscoveryNode node, ConnectionProfile profile, ActionListener<Transport.Connection> listener)voidTransport. openConnection(DiscoveryNode node, ConnectionProfile profile, ActionListener<Transport.Connection> listener)Opens a new connection to the given node.Transport.ConnectionTransportService. openConnection(DiscoveryNode node, ConnectionProfile connectionProfile)Establishes and returns a new connection to the given node.voidTransportService. openConnection(DiscoveryNode node, ConnectionProfile connectionProfile, ActionListener<Transport.Connection> listener)Establishes a new connection to the given node.<T extends TransportResponse>
voidTransportService. sendChildRequest(DiscoveryNode node, String action, TransportRequest request, Task parentTask, TransportRequestOptions options, TransportResponseHandler<T> handler)<T extends TransportResponse>
voidTransportService. sendRequest(DiscoveryNode node, String action, TransportRequest request, TransportRequestOptions options, TransportResponseHandler<T> handler)<T extends TransportResponse>
voidTransportService. sendRequest(DiscoveryNode node, String action, TransportRequest request, TransportResponseHandler<T> handler)<T extends TransportResponse>
TransportFuture<T>TransportService. submitRequest(DiscoveryNode node, String action, TransportRequest request, TransportRequestOptions options, TransportResponseHandler<T> handler)<T extends TransportResponse>
TransportFuture<T>TransportService. submitRequest(DiscoveryNode node, String action, TransportRequest request, TransportResponseHandler<T> handler)static TransportRequestTransportActionProxy. wrapRequest(DiscoveryNode node, TransportRequest request)Wraps the actual request in a proxy request object that encodes the target node.Method parameters in org.elasticsearch.transport with type arguments of type DiscoveryNode Modifier and Type Method Description voidRemoteClusterService. collectNodes(Set<String> clusters, ActionListener<BiFunction<String,String,DiscoveryNode>> listener)Collects all nodes of the given clusters and returns / passes a (clusterAlias, nodeId) toDiscoveryNodefunction on success.voidTransportService. handshake(Transport.Connection connection, long handshakeTimeout, ActionListener<DiscoveryNode> listener)Executes a high-level handshake using the given connection and returns the discovery node of the node the connection was established with.Constructors in org.elasticsearch.transport with parameters of type DiscoveryNode Constructor Description ConnectTransportException(DiscoveryNode node, String msg)ConnectTransportException(DiscoveryNode node, String msg, String action)ConnectTransportException(DiscoveryNode node, String msg, String action, Throwable cause)ConnectTransportException(DiscoveryNode node, String msg, Throwable cause)HandshakeResponse(DiscoveryNode discoveryNode, ClusterName clusterName, Version version)NodeDisconnectedException(DiscoveryNode node, String action)NodeNotConnectedException(DiscoveryNode node, String msg)NodeShouldNotConnectException(DiscoveryNode fromNode, DiscoveryNode node)ReceiveTimeoutTransportException(DiscoveryNode node, String action, String msg)SendRequestTransportException(DiscoveryNode node, String action, Throwable cause)Constructor parameters in org.elasticsearch.transport with type arguments of type DiscoveryNode Constructor Description TransportService(Settings settings, Transport transport, ThreadPool threadPool, TransportInterceptor transportInterceptor, Function<BoundTransportAddress,DiscoveryNode> localNodeFactory, ClusterSettings clusterSettings, Set<String> taskHeaders)Build the service.TransportService(Settings settings, Transport transport, ThreadPool threadPool, TransportInterceptor transportInterceptor, Function<BoundTransportAddress,DiscoveryNode> localNodeFactory, ClusterSettings clusterSettings, Set<String> taskHeaders, ConnectionManager connectionManager) -
Uses of DiscoveryNode in org.elasticsearch.usage
Methods in org.elasticsearch.usage with parameters of type DiscoveryNode Modifier and Type Method Description NodeUsageUsageService. getUsageStats(DiscoveryNode localNode, boolean restActions)Get the current usage statistics for this node.
-