public class LoadImpactCore extends Object
Constructor and Description |
---|
LoadImpactCore() |
LoadImpactCore(String apiTokenId,
int loadTestId,
int criteriaDelayValue,
String criteriaDelayUnit,
int criteriaDelayQueueSize,
boolean abortAtFailure,
ThresholdView[] thresholdViews,
int pollInterval,
boolean logHttp,
boolean logJson) |
Modifier and Type | Method and Description |
---|---|
static String |
cssPath(String name)
Returns a proper url path for a bundled style sheet.
|
String |
getApiTokenId() |
int |
getCriteriaDelayQueueSize() |
com.loadimpact.eval.DelayUnit |
getCriteriaDelayUnit() |
int |
getCriteriaDelayValue() |
LoadTestHeader |
getLoadTestHeader()
Returns the load test description.
|
int |
getLoadTestId() |
static String |
getPluginName()
Reads the proper plugin name from the MANIFEST
|
int |
getPollInterval() |
hudson.model.Action |
getProjectAction(hudson.model.AbstractProject<?,?> project)
Creates and returns the load test meta data for the summary.
|
List<ThresholdView> |
getThresholds() |
static String |
imagePath(String name)
Returns a proper url path for a bundled image.
|
boolean |
isAbortAtFailure() |
boolean |
isLogHttp() |
boolean |
isLogJson() |
static Logger |
log()
Returns its logger.
|
boolean |
perform(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
Launches and monitors the load test.
|
String |
toString() |
public LoadImpactCore(String apiTokenId, int loadTestId, int criteriaDelayValue, String criteriaDelayUnit, int criteriaDelayQueueSize, boolean abortAtFailure, ThresholdView[] thresholdViews, int pollInterval, boolean logHttp, boolean logJson)
public LoadImpactCore()
public boolean perform(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.BuildListener listener) throws InterruptedException, IOException
build
- jenkins build instancelauncher
- jenkins launcherlistener
- jenkins listenerInterruptedException
- if a waiting thread was interruptedIOException
- if some I/O went wrongpublic hudson.model.Action getProjectAction(hudson.model.AbstractProject<?,?> project)
project
- jenkins projectpublic LoadTestHeader getLoadTestHeader()
public static String getPluginName()
public static String imagePath(String name)
name
- its bare file namepublic static String cssPath(String name)
name
- its bare file namepublic static Logger log()
public String getApiTokenId()
public int getLoadTestId()
public int getCriteriaDelayValue()
public com.loadimpact.eval.DelayUnit getCriteriaDelayUnit()
public int getCriteriaDelayQueueSize()
public boolean isAbortAtFailure()
public List<ThresholdView> getThresholds()
public int getPollInterval()
public boolean isLogHttp()
public boolean isLogJson()
Copyright © 2004-2014 Load Impact. All Rights Reserved.