|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthudson.scm.PollingResult
public final class PollingResult
Immutable object that represents the result of SCM polling.
This object is marked serializable just to be remoting friendly — Jenkins by itself doesn't persist this object.
Nested Class Summary | |
---|---|
static class |
PollingResult.Change
Degree of changes between the previous state and this state. |
Field Summary | |
---|---|
SCMRevisionState |
baseline
Baseline of the comparison. |
static PollingResult |
BUILD_NOW
Constant that uses PollingResult.Change.INCOMPARABLE which forces an immediate build. |
PollingResult.Change |
change
Degree of the change between baseline and remote. |
static PollingResult |
NO_CHANGES
Constant to indicate no changes in the remote repository. |
SCMRevisionState |
remote
Current state of the remote repository. |
static PollingResult |
SIGNIFICANT
|
Constructor Summary | |
---|---|
PollingResult(PollingResult.Change change)
|
|
PollingResult(SCMRevisionState baseline,
SCMRevisionState remote,
PollingResult.Change change)
|
Method Summary | |
---|---|
boolean |
hasChanges()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final SCMRevisionState baseline
public final SCMRevisionState remote
public final PollingResult.Change change
The fact that this field is independent from baseline
and remote
are
used to (1) allow the incomparable state which forces
the immediate rebuild, and (2) allow SCM to ignore some changes in the repository to implement
exclusion feature.
public static final PollingResult NO_CHANGES
public static final PollingResult SIGNIFICANT
public static final PollingResult BUILD_NOW
PollingResult.Change.INCOMPARABLE
which forces an immediate build.
Constructor Detail |
---|
public PollingResult(SCMRevisionState baseline, SCMRevisionState remote, PollingResult.Change change)
public PollingResult(PollingResult.Change change)
Method Detail |
---|
public boolean hasChanges()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |