Class SchedulerControl
- java.lang.Object
-
- com.atlassian.bamboo.testutils.backdoor.BackdoorControl<SchedulerControl>
-
- com.atlassian.bamboo.testutils.backdoor.SchedulerControl
-
public class SchedulerControl extends BackdoorControl<SchedulerControl>
Backdoor control used to interact with the job sceduler.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.atlassian.bamboo.testutils.backdoor.BackdoorControl
BackdoorControl.AddXsrfNoCheckTokenFilter, BackdoorControl.JsonMediaTypeFilter
-
-
Field Summary
-
Fields inherited from class com.atlassian.bamboo.testutils.backdoor.BackdoorControl
ADMIN_REST_PATH, API_REST_PATH, DEFAULT_REST_PATH, rootPath
-
-
Constructor Summary
Constructors Constructor Description SchedulerControl(BambooEnvironmentData bambooEnvironmentData)
Parameterized constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ScheduledJob>
getJobs()
Gets the collection of jobs currently scheduled to be run.void
triggerJob(ScheduledJob job)
-
Methods inherited from class com.atlassian.bamboo.testutils.backdoor.BackdoorControl
client, createResource, createResourceForPath, get, getEnvironmentData, getRestModulePath, percentEncode, ping, post, resourceRoot, tearDown
-
-
-
-
Constructor Detail
-
SchedulerControl
public SchedulerControl(BambooEnvironmentData bambooEnvironmentData)
Parameterized constructor.- Parameters:
bambooEnvironmentData
- the environment data used when testing
-
-
Method Detail
-
getJobs
public List<ScheduledJob> getJobs() throws Exception
Gets the collection of jobs currently scheduled to be run.- Returns:
- the collection of currently scheduled jobs
- Throws:
Exception
-
triggerJob
public void triggerJob(ScheduledJob job)
-
-