-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DeploymentStatusDetails: removed externalDeploymentId and startTime
- Loading branch information
Showing
36 changed files
with
359 additions
and
307 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
13 changes: 2 additions & 11 deletions
13
...pi/src/main/scala/pl/touk/nussknacker/engine/api/deployment/DeploymentStatusDetails.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 |
---|---|---|
@@ -1,25 +1,16 @@ | ||
package pl.touk.nussknacker.engine.api.deployment | ||
|
||
import pl.touk.nussknacker.engine.api.ProcessVersion | ||
import pl.touk.nussknacker.engine.deployment.{DeploymentId, ExternalDeploymentId} | ||
import pl.touk.nussknacker.engine.deployment.DeploymentId | ||
|
||
case class DeploymentStatusDetails( | ||
status: StateStatus, | ||
// It is optional because some deployment managers (k8s) don't support it | ||
deploymentId: Option[DeploymentId], | ||
// TODO: This field is used only internally in FlinkDeploymentManager - it should be removed from the interface | ||
// In most cases it holds exactly the same information as deploymentId - | ||
// the only difference is scheduling mechanism where deploymentId holds Long and can't be used as Flink's JobID | ||
externalDeploymentId: Option[ExternalDeploymentId] = None, | ||
version: Option[ProcessVersion] = None, | ||
// TODO: This field is used only internally in FlinkDeploymentManager - it should be removed from the interface | ||
startTime: Option[Long] = None, | ||
version: Option[ProcessVersion], | ||
) { | ||
|
||
def deploymentIdUnsafe: DeploymentId = | ||
deploymentId.getOrElse(throw new IllegalStateException(s"deploymentId is missing")) | ||
|
||
def externalDeploymentIdUnsafe: ExternalDeploymentId = | ||
externalDeploymentId.getOrElse(throw new IllegalStateException(s"externalDeploymentId is missing")) | ||
|
||
} |
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
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
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
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
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
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
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
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
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
Oops, something went wrong.