Class NamespaceCapabilityChangeAllowed
- java.lang.Object
-
- uk.co.ractf.polaris.controller.scheduler.clusterpredicate.NamespaceCapabilityChangeAllowed
-
- All Implemented Interfaces:
ClusterPredicatePlugin
,Plugin
public class NamespaceCapabilityChangeAllowed extends java.lang.Object implements ClusterPredicatePlugin
-
-
Constructor Summary
Constructors Constructor Description NamespaceCapabilityChangeAllowed(ClusterState clusterState)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClusterPredicateResult
canSchedule(uk.co.ractf.polaris.api.task.Task task)
Returns if it is possible to schedule this task.java.lang.String
getName()
-
-
-
Constructor Detail
-
NamespaceCapabilityChangeAllowed
@Inject public NamespaceCapabilityChangeAllowed(ClusterState clusterState)
-
-
Method Detail
-
canSchedule
public ClusterPredicateResult canSchedule(uk.co.ractf.polaris.api.task.Task task)
Description copied from interface:ClusterPredicatePlugin
Returns if it is possible to schedule this task.- Specified by:
canSchedule
in interfaceClusterPredicatePlugin
- Parameters:
task
- the task- Returns:
- if the task can run and why
-
-