org.squashtest.tm.plugin.testautomation.jenkins.internal.tasksteps
Class GetBuildID

java.lang.Object
  extended by org.squashtest.tm.plugin.testautomation.jenkins.internal.tasks.BuildStep<GetBuildID>
      extended by org.squashtest.tm.plugin.testautomation.jenkins.internal.tasksteps.GetBuildID
All Implemented Interfaces:
Runnable, HttpBasedStep

public class GetBuildID
extends BuildStep<GetBuildID>
implements HttpBasedStep


Field Summary
 
Fields inherited from class org.squashtest.tm.plugin.testautomation.jenkins.internal.tasks.BuildStep
buildProcessor
 
Constructor Summary
GetBuildID(BuildProcessor processor)
           
 
Method Summary
 Integer getBuildID()
           
 boolean needsRescheduling()
          Tells whether the current step is complete, or the same step needs to be executed again at a later time.
 void perform()
          do the job
 void reset()
          sets the same object ready for reuse
 void setBuildAbsoluteId(BuildAbsoluteId absoluteId)
           
 void setClient(org.apache.commons.httpclient.HttpClient client)
           
 void setMethod(org.apache.commons.httpclient.HttpMethod method)
           
 void setParser(JsonParser parser)
           
 Integer suggestedReschedulingInterval()
          Returns a positive or null integer if it can suggest an adequate delay before next execution, if the task is unconclusive and must be rescheduled.
 
Methods inherited from class org.squashtest.tm.plugin.testautomation.jenkins.internal.tasks.BuildStep
addListener, run, setBuildProcessor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GetBuildID

public GetBuildID(BuildProcessor processor)
Method Detail

setClient

public void setClient(org.apache.commons.httpclient.HttpClient client)
Specified by:
setClient in interface HttpBasedStep

setMethod

public void setMethod(org.apache.commons.httpclient.HttpMethod method)
Specified by:
setMethod in interface HttpBasedStep

setParser

public void setParser(JsonParser parser)
Specified by:
setParser in interface HttpBasedStep

setBuildAbsoluteId

public void setBuildAbsoluteId(BuildAbsoluteId absoluteId)
Specified by:
setBuildAbsoluteId in interface HttpBasedStep

getBuildID

public Integer getBuildID()

needsRescheduling

public boolean needsRescheduling()
Description copied from class: BuildStep
Tells whether the current step is complete, or the same step needs to be executed again at a later time.

Specified by:
needsRescheduling in class BuildStep<GetBuildID>
Returns:
true if needs rescheduling, false if we can move to the next step

perform

public void perform()
             throws Exception
Description copied from class: BuildStep
do the job

Specified by:
perform in class BuildStep<GetBuildID>
Throws:
Exception

reset

public void reset()
Description copied from class: BuildStep
sets the same object ready for reuse

Specified by:
reset in class BuildStep<GetBuildID>

suggestedReschedulingInterval

public Integer suggestedReschedulingInterval()
Description copied from class: BuildStep
Returns a positive or null integer if it can suggest an adequate delay before next execution, if the task is unconclusive and must be rescheduled. Null should be returned if it has no opinion and let the processor decide instead.

Specified by:
suggestedReschedulingInterval in class BuildStep<GetBuildID>
Returns:


Copyright © 2010-2013 Henix, henix.fr. All Rights Reserved.