|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ExecutableBuildAgent
The ExecutableBuildAgent that is able to be run builds. Basically it's an agent that's "local" to the
running directory
| Method Summary | |
|---|---|
void |
build(BuildContext currentlyBuilding,
ReadOnlyCapabilitySet agentCapabilities)
Executes the passed BuildContext |
void |
cancelBuild(java.lang.String buildResultKey)
Cancels the passed buildResultKey if it matches |
AgentStatus |
getAgentStatus()
|
BuildContext |
getBuilding()
Gets the BuildContext related to the build that is building on the agent. |
long |
getId()
Agent id |
java.lang.String |
getName()
Agent name |
int |
incrementError()
Tells the agent that an unhandled error has occurred. |
boolean |
isActive()
|
void |
resetErrors()
Resetes the error count |
void |
start()
Starts the build agent |
void |
stop()
Stops the build agent immedaitely. |
void |
stopNicely()
Attempt to stop the agent and wait for the current build (if any) to stop building |
void |
waitForStop(int secondsToWait)
Waits a certain number of seconds for a build to stop. |
| Method Detail |
|---|
long getId()
java.lang.String getName()
void start()
void stop()
java.lang.InterruptedExceptionvoid stopNicely()
void build(@NotNull
BuildContext currentlyBuilding,
@NotNull
ReadOnlyCapabilitySet agentCapabilities)
throws java.lang.Exception
BuildContext
currentlyBuilding - agentCapabilities -
java.lang.Exception
void cancelBuild(@NotNull
java.lang.String buildResultKey)
buildResultKey - AgentStatus getAgentStatus()
boolean isActive()
@Nullable BuildContext getBuilding()
BuildContext related to the build that is building on the agent. Null if not building or
cancelling anything.
void waitForStop(int secondsToWait)
throws java.util.concurrent.TimeoutException
secondsToWait - -
java.util.concurrent.TimeoutExceptionint incrementError()
void resetErrors()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||