public class Detection extends Object
| Constructor and Description |
|---|
Detection(net.sf.json.JSONObject detectionConfiguration)
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearLists()
Clears all lists.
|
List<DetectedJob> |
getDetectedJobs() |
void |
startDetection()
Start detection of inactive projects.
|
protected void |
testCheckHasNeverRunnedSuccessfully(hudson.model.AbstractProject<?,?> job,
FailedJobDeactivator property)
Used for testing only.
|
protected void |
testCheckLastSuccessfulBuildTooLongAgo(hudson.model.AbstractProject<?,?> job,
FailedJobDeactivator property)
Used for testing only.
|
protected long |
testGetDeadlineLastManuallyTriggered(FailedJobDeactivator property)
Used for testing only.
|
protected long |
testGetDeadlineLastSuccessfulBuild(FailedJobDeactivator property)
Used for testing only.
|
protected void |
testSetDetectedJob(hudson.model.AbstractProject<?,?> job,
String failureCause,
boolean deleteJob,
int timeOfLastBuild,
String resultOfLastBuild)
Used for testing only.
|
public Detection(net.sf.json.JSONObject detectionConfiguration)
public void startDetection()
public List<DetectedJob> getDetectedJobs()
public void clearLists()
protected void testSetDetectedJob(hudson.model.AbstractProject<?,?> job,
String failureCause,
boolean deleteJob,
int timeOfLastBuild,
String resultOfLastBuild)
job - failureCause - deleteJob - protected long testGetDeadlineLastManuallyTriggered(FailedJobDeactivator property)
property - protected long testGetDeadlineLastSuccessfulBuild(FailedJobDeactivator property)
property - protected void testCheckHasNeverRunnedSuccessfully(hudson.model.AbstractProject<?,?> job,
FailedJobDeactivator property)
job - property - protected void testCheckLastSuccessfulBuildTooLongAgo(hudson.model.AbstractProject<?,?> job,
FailedJobDeactivator property)
job - property - Copyright © 2004-2015. All Rights Reserved.