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 ClusterPredicateResultcanSchedule(uk.co.ractf.polaris.api.task.Task task)Returns if it is possible to schedule this task.java.lang.StringgetName()
-
-
-
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:ClusterPredicatePluginReturns if it is possible to schedule this task.- Specified by:
canSchedulein interfaceClusterPredicatePlugin- Parameters:
task- the task- Returns:
- if the task can run and why
-
-