jetbrains.buildServer.agentServer
Interface Agent

All Superinterfaces:
AgentLogListener
All Known Subinterfaces:
BuildAgent

public interface Agent
extends AgentLogListener


Field Summary
static java.io.FilenameFilter AGENT_PLUGIN_NAME_FILTER
           
static java.io.FileFilter AGENT_PLUGIN_NAMES_FILTER
           
static java.lang.String AGENT_PLUGINS_DIR
           
static java.lang.String AGENT_UPDATE_CONTENTS_PATH
           
static java.lang.String AGENT_UPDATE_CONTENTS_XML
           
static java.lang.String BUILD_AGENT
           
static java.lang.String DISTRIBUTION_ARCH_NAME
           
static java.lang.String UPDATE_PATH
           
 
Method Summary
 boolean ping(int agentId)
           
 java.lang.String runBuild(java.lang.String serializedAgentBuild)
          Starts a build on agent
 boolean stopBuild()
          Notifies currently running build to stop
 boolean upgrade(java.util.Vector pluginNames)
          Initiates build agent upgrade.
 
Methods inherited from interface jetbrains.buildServer.agentServer.AgentLogListener
buildFinished, buildInterrupted, isBuildFailing, log, markCheckoutDirClean, markCheckoutDirDirty
 

Field Detail

BUILD_AGENT

static final java.lang.String BUILD_AGENT
See Also:
Constant Field Values

DISTRIBUTION_ARCH_NAME

static final java.lang.String DISTRIBUTION_ARCH_NAME
See Also:
Constant Field Values

UPDATE_PATH

static final java.lang.String UPDATE_PATH
See Also:
Constant Field Values

AGENT_PLUGINS_DIR

static final java.lang.String AGENT_PLUGINS_DIR
See Also:
Constant Field Values

AGENT_UPDATE_CONTENTS_XML

static final java.lang.String AGENT_UPDATE_CONTENTS_XML
See Also:
Constant Field Values

AGENT_UPDATE_CONTENTS_PATH

static final java.lang.String AGENT_UPDATE_CONTENTS_PATH
See Also:
Constant Field Values

AGENT_PLUGIN_NAMES_FILTER

static final java.io.FileFilter AGENT_PLUGIN_NAMES_FILTER

AGENT_PLUGIN_NAME_FILTER

static final java.io.FilenameFilter AGENT_PLUGIN_NAME_FILTER
Since:
8.0
Method Detail

runBuild

java.lang.String runBuild(java.lang.String serializedAgentBuild)
Starts a build on agent

Parameters:
serializedAgentBuild - serialized AgentBuild
Returns:
serialized BuildAgentResult

stopBuild

boolean stopBuild()
Notifies currently running build to stop

Returns:
is ignored

upgrade

boolean upgrade(java.util.Vector pluginNames)
Initiates build agent upgrade.

Parameters:
pluginNames - plugin file names (i.e. antPlugin.zip)
Returns:
true if accepted

ping

boolean ping(int agentId)