pl.touk.nussknacker.engine.management.FlinkStateStatus.scala Maven / Gradle / Ivy
The newest version!
package pl.touk.nussknacker.engine.management
import pl.touk.nussknacker.engine.api.deployment.ScenarioActionName
import pl.touk.nussknacker.engine.api.deployment._
import pl.touk.nussknacker.engine.api.deployment.simple.SimpleStateStatus
/**
* Flink statuses are based on SimpleStateStatus definitions.
* There are some custom restrictions to allowed actions.
*/
object FlinkStateStatus {
val statusActionsPF: PartialFunction[StateStatus, List[ScenarioActionName]] = {
case SimpleStateStatus.DuringDeploy => List(ScenarioActionName.Cancel)
case SimpleStateStatus.Restarting => List(ScenarioActionName.Cancel)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy