Package jetbrains.buildServer.agent.impl
Interface BuildAgentEx
-
- All Superinterfaces:
Agent,AgentLogListener,BuildAgent
- All Known Implementing Classes:
BuildAgentImpl
public interface BuildAgentEx extends BuildAgent
- Author:
- Eugene Petrenko Created: 08.10.2008 12:58:18
-
-
Field Summary
-
Fields inherited from interface jetbrains.buildServer.agentServer.Agent
AGENT_PLUGIN_NAME_FILTER, AGENT_PLUGIN_NAMES_FILTER, AGENT_PLUGIN_PART_NAME, AGENT_PLUGINS_DIR, AGENT_UPDATE_CONTENTS_PATH, AGENT_UPDATE_CONTENTS_PATH_NEW, AGENT_UPDATE_CONTENTS_XML, BUILD_AGENT, DISTRIBUTION_ARCH_NAME, FULL_AGENT_FILE_NAME, UPDATE_PATH
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidapplyConfigurationToAgent()Applies provided parameters to the agent configuration (see {@link {@link BuildAgentConfiguration }}), including configuration parameters, system properties, environment variables.voidapplyConfigurationToAgent(Map<String,String> configuration)Loads the configuration parameters from plugins intoBuildAgentConfigurationBuildAgentConfigurationExgetConfiguration()Returns agent configurationStringgetOperatingSystemName()StringgetOwnAddress()StringgetPluginsSignature()CommunicationProtocolgetProtocol()Returns the protocol using for server-to-agent communication, null if agent is not registered on serverBuildRunAgentStategetRunningState()ServerMonitorgetServerMonitor()StringgetVersion()voidinit(AgentCommandlineArguments args)booleanisRegistered()voidpreInit(AgentCommandlineArguments args)voidrestart()Restarts build agent process.voidrestartOnError(String logMessage, Throwable error)Restarts build agent process due to critical error.booleanstopBuild(BuildInterruptReason reason)Notifies currently running build to stop with the specified reasonvoidupdateBuildAgentParametersOnServer()-
Methods inherited from interface jetbrains.buildServer.agentServer.Agent
ping2, runBuild, stopBuild, upgrade
-
Methods inherited from interface jetbrains.buildServer.agentServer.AgentLogListener
buildDetachedFromAgent, buildFinished, buildInterrupted, buildInterrupted, isBuildFailing, log
-
Methods inherited from interface jetbrains.buildServer.agent.BuildAgent
ensureIdle, getBuildId, getId, getRunners, getServerProxy, getXmlRpcHandlerManager, init, isRunning, registerOnBuildServer, runBuild, shutdown, shutdownWaitForBuild, start, unregisterFromBuildServer
-
-
-
-
Method Detail
-
getRunningState
@Nullable BuildRunAgentState getRunningState()
-
getOwnAddress
@Nullable String getOwnAddress()
-
getOperatingSystemName
@NotNull String getOperatingSystemName()
-
getVersion
@NotNull String getVersion()
-
getPluginsSignature
@NotNull String getPluginsSignature()
-
getConfiguration
BuildAgentConfigurationEx getConfiguration()
Returns agent configuration- Specified by:
getConfigurationin interfaceBuildAgent- Returns:
- agent configuration
-
updateBuildAgentParametersOnServer
void updateBuildAgentParametersOnServer()
-
init
void init(@NotNull AgentCommandlineArguments args) throws BuildAgentStartFailedException- Throws:
BuildAgentStartFailedException
-
getServerMonitor
ServerMonitor getServerMonitor()
-
restart
void restart()
Restarts build agent process.
-
restartOnError
void restartOnError(@NotNull String logMessage, @NotNull Throwable error)Restarts build agent process due to critical error.
-
preInit
void preInit(@NotNull AgentCommandlineArguments args)
-
isRegistered
boolean isRegistered()
-
getProtocol
@Nullable CommunicationProtocol getProtocol()
Returns the protocol using for server-to-agent communication, null if agent is not registered on server
-
stopBuild
boolean stopBuild(@NotNull BuildInterruptReason reason)Notifies currently running build to stop with the specified reason
-
applyConfigurationToAgent
void applyConfigurationToAgent()
Applies provided parameters to the agent configuration (see {@link {@link BuildAgentConfiguration }}), including configuration parameters, system properties, environment variables. Existing parameters with the same names are not overwritten The method may reuse the previously probed parameters, or it will call plugins to provide their parameters.
-
applyConfigurationToAgent
void applyConfigurationToAgent(Map<String,String> configuration)
Loads the configuration parameters from plugins intoBuildAgentConfiguration- Parameters:
configuration- configuration parameters to load
-
-