hudson.plugins.build_timeout
クラス BuildTimeOutStrategy

java.lang.Object
  上位を拡張 hudson.plugins.build_timeout.BuildTimeOutStrategy
すべての実装されたインタフェース:
hudson.model.Describable<BuildTimeOutStrategy>
直系の既知のサブクラス:
AbsoluteTimeOutStrategy, ElasticTimeOutStrategy, LikelyStuckTimeOutStrategy, NoActivityTimeOutStrategy

public abstract class BuildTimeOutStrategy
extends Object
implements hudson.model.Describable<BuildTimeOutStrategy>

作成者:
Nicolas De Loof

フィールドの概要
static Logger LOG
           
static long MINUTES
           
 
コンストラクタの概要
BuildTimeOutStrategy()
           
 
メソッドの概要
protected  String expandAll(hudson.model.AbstractBuild<?,?> build, hudson.model.BuildListener listener, String string)
           
 hudson.model.Descriptor<BuildTimeOutStrategy> getDescriptor()
           
 long getTimeOut(hudson.model.AbstractBuild<?,?> build, hudson.model.BuildListener listener)
          Define the delay (in milliseconds) to wait for the build to complete before interrupting.
 long getTimeOut(hudson.model.Run run)
          推奨されていません。 override getTimeOut(hudson.model.AbstractBuild, hudson.model.BuildListener) instead.
 void onWrite(hudson.model.AbstractBuild<?,?> build, int b)
          Called when some output to console.
 boolean wantsCaptureLog()
          Decides whether to call BuildTimeOutStrategy.onWrite For performance reason, BuildTimeOutStrategy.onWrite is called only when subclass overrides it.
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

MINUTES

public static final long MINUTES
関連項目:
定数フィールド値

LOG

public static final Logger LOG
コンストラクタの詳細

BuildTimeOutStrategy

public BuildTimeOutStrategy()
メソッドの詳細

getTimeOut

@Deprecated
public long getTimeOut(hudson.model.Run run)
推奨されていません。 override getTimeOut(hudson.model.AbstractBuild, hudson.model.BuildListener) instead.

Define the delay (in milliseconds) to wait for the build to complete before interrupting.

パラメータ:
run -

getTimeOut

public long getTimeOut(hudson.model.AbstractBuild<?,?> build,
                       hudson.model.BuildListener listener)
                throws InterruptedException,
                       org.jenkinsci.plugins.tokenmacro.MacroEvaluationException,
                       IOException
Define the delay (in milliseconds) to wait for the build to complete before interrupting.

パラメータ:
build - the build
listener - the build listener
例外:
InterruptedException
org.jenkinsci.plugins.tokenmacro.MacroEvaluationException
IOException

onWrite

public void onWrite(hudson.model.AbstractBuild<?,?> build,
                    int b)
Called when some output to console. Override this to capture the activity.

パラメータ:
build -
b - output character.

wantsCaptureLog

public boolean wantsCaptureLog()
Decides whether to call BuildTimeOutStrategy.onWrite For performance reason, BuildTimeOutStrategy.onWrite is called only when subclass overrides it.

戻り値:
true to call BuildTimeOutStrategy.onWrite

getDescriptor

public hudson.model.Descriptor<BuildTimeOutStrategy> getDescriptor()
定義:
インタフェース hudson.model.Describable<BuildTimeOutStrategy> 内の getDescriptor
戻り値:
関連項目:
Describable.getDescriptor()

expandAll

protected final String expandAll(hudson.model.AbstractBuild<?,?> build,
                                 hudson.model.BuildListener listener,
                                 String string)
                          throws org.jenkinsci.plugins.tokenmacro.MacroEvaluationException,
                                 IOException,
                                 InterruptedException
例外:
org.jenkinsci.plugins.tokenmacro.MacroEvaluationException
IOException
InterruptedException


Copyright © 2004-2014. All Rights Reserved.