-
Notifications
You must be signed in to change notification settings - Fork 232
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
contributes to #6565 Signed-off-by: Gera Shegalov <gera@apache.org>
- Loading branch information
1 parent
1b8f9fd
commit 01a2d20
Showing
4 changed files
with
43 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
43 changes: 43 additions & 0 deletions
43
sql-plugin-api/src/main/scala/com/nvidia/spark/rapids/RapidsShuffleHeartbeatHandler.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/* | ||
* Copyright (c) 2023, NVIDIA CORPORATION. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package com.nvidia.spark.rapids | ||
|
||
import org.apache.spark.storage.BlockManagerId | ||
|
||
|
||
/** | ||
* This is the first message sent from the executor to the driver. | ||
* @param id `BlockManagerId` for the executor | ||
*/ | ||
case class RapidsExecutorStartupMsg(id: BlockManagerId) | ||
|
||
/** | ||
* Executor heartbeat message. | ||
* This gives the driver an opportunity to respond with `RapidsExecutorUpdateMsg` | ||
*/ | ||
case class RapidsExecutorHeartbeatMsg(id: BlockManagerId) | ||
|
||
/** | ||
* Driver response to an startup or heartbeat message, with new (to the peer) executors | ||
* from the last heartbeat. | ||
*/ | ||
case class RapidsExecutorUpdateMsg(ids: Array[BlockManagerId]) | ||
|
||
trait RapidsShuffleHeartbeatHandler { | ||
/** Called when a new peer is seen via heartbeats */ | ||
def addPeer(peer: BlockManagerId): Unit | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters