public class BuildCancellationPolicy extends Object
Constructor and Description |
---|
BuildCancellationPolicy() |
Modifier and Type | Method and Description |
---|---|
static BuildCancellationPolicy |
createPolicyFromJSON(net.sf.json.JSONObject obj)
Creates a new BuildCancellationPolicy object from JSON.
|
boolean |
isAbortManualPatchsets()
Standard getter for the abortManualPatchsets value.
|
boolean |
isAbortNewPatchsets()
Standard getter for the abortNewPatchsets value.
|
boolean |
isEnabled()
Getter for if build cancellation is turned off or on.
|
void |
setAbortManualPatchsets(boolean abortManualPatchsets)
Standard setter for the abortManualPatchsets value.
|
void |
setAbortNewPatchsets(boolean abortNewPatchsets)
Standard setter for the abortNewPatchsets value.
|
void |
setEnabled(boolean enabled)
Turns on/off the build cancellation.
|
public boolean isEnabled()
public void setEnabled(boolean enabled)
enabled
- whether build cancellation should be turned off or on.public boolean isAbortNewPatchsets()
public void setAbortNewPatchsets(boolean abortNewPatchsets)
abortNewPatchsets
- true if new patchsets should be cancelled by older.public boolean isAbortManualPatchsets()
public void setAbortManualPatchsets(boolean abortManualPatchsets)
abortManualPatchsets
- true if manual patchsets should be cancelled.public static BuildCancellationPolicy createPolicyFromJSON(net.sf.json.JSONObject obj)
obj
- the JSONObject.Copyright © 2004-2015. All Rights Reserved.