public interface SBuildAgent extends BuildAgent, AgentDescription, java.lang.Comparable<BuildAgent>, AgentBuildHistory, jetbrains.buildServer.log.Loggable
DEFAULT_POOL_ID, DEFAULT_POOL_NAME
Modifier and Type | Method and Description |
---|---|
boolean |
canStartBuildIfAgentOutdated() |
java.lang.String |
describe(boolean verbose) |
AgentPool |
getAgentPool() |
java.util.Date |
getAgentStatusRestoringTimestamp()
Returns null if agent status will not be restored, otherwise returns status restoring timestamp
|
java.lang.Boolean |
getAgentStatusToRestore()
Returns null if agent status will not be restored, otherwise returns status to restore
|
int |
getAgentTypeId()
Returns id of this agent type.
|
java.lang.String |
getAuthorizationToken()
Returns agent token which should be used to authorize build agent
|
Comment |
getAuthorizeComment()
Returns information about changing agent authorized status, including timestamp, user, comment text
|
java.util.List<SBuildType> |
getBuildConfigurationsBuilt()
Returns build configurations ever built on this agent.
|
java.lang.String |
getCommunicationProtocolDescription()
Returns short description of the protocol that is used to communicate with this agent.
|
java.lang.String |
getCommunicationProtocolType()
Returns type (identifier) of the protocol that is used to communicate with this agent.
|
java.lang.String |
getHostAddress()
Returns IP address or fully qualified domain name (depending on the ownAddress property in the buildAgent.properties)
of the computer where build agent is running
|
java.lang.String |
getHostName()
Returns hostname of the computer where build agent is running.
|
long |
getIdleTime() |
java.util.Date |
getLastCommunicationTimestamp()
Returns timestamp of the last agent - server (or server - agent) successful communication.
|
java.lang.String |
getPluginsSignature()
Returns signature of plugins installed on the agent.
|
int |
getPort()
Port where agent is listening for server commands.
|
java.util.Date |
getRegistrationTimestamp()
Returns timestamp of this agent registration.
|
SRunningBuild |
getRunningBuild()
Returns the build which is currently running on the agent; null if no such build available
|
Comment |
getStatusComment()
Returns information about changing agent enabled/disabled status, including timestamp, user, comment text
|
java.lang.String |
getUnregistrationComment()
If agent is not registered returns reason of its' unregistration.
|
java.lang.String |
getVersion()
Returns agent version.
|
boolean |
isAuthorized()
Returns true if agent is authorized by administrator.
|
boolean |
isCloudAgent() |
boolean |
isEnabled()
Returns true if agent is enabled.
|
boolean |
isOutdated()
Returns true if version of this agent does not match version of the server.
|
boolean |
isPluginsOutdated()
Returns true if some of the agent plugins are outdated.
|
boolean |
isRegistered()
Returns true or false depending on whether this agent is currently registered on server or not.
|
boolean |
ping()
Try to ping agent over networks
|
void |
releaseSources()
Releases sources of all of the build configurations ever built on this agent,
after that a full checkout will be performed for all of these configurations on this agent.
|
void |
releaseSources(SBuildType buildType)
Releases sources of the specified build configuration on this agent.
|
void |
setAuthorized(boolean authorized,
SUser user,
java.lang.String reason)
Changes this agent authorization status.
|
void |
setEnabled(boolean enabled,
SUser user,
java.lang.String reason)
Changes this agent enabled status.
|
void |
setEnabled(boolean enabled,
SUser user,
java.lang.String reason,
long statusRestoringTimestamp)
Changes this agent enabled status and restores it in the specified time.
|
getAgentPoolId, getCpuBenchmarkIndex, getId, getName, isUpgrading
getAvailableParameters, getAvailableRunTypeIds, getAvailableRunTypes, getAvailableVcsPlugins, getBuildParameters, getConfigurationParameters, getCpuBenchmarkIndex, getDefinedParameters, getOperatingSystemName, isCaseInsensitiveEnvironment
getBuildHistory
int getAgentTypeId()
@NotNull java.lang.String getVersion()
@NotNull java.lang.String getPluginsSignature()
boolean isOutdated()
boolean isPluginsOutdated()
@Nullable SRunningBuild getRunningBuild()
@NotNull java.lang.String getAuthorizationToken()
java.lang.String getHostName()
java.lang.String getHostAddress()
int getPort()
@NotNull java.lang.String getCommunicationProtocolDescription()
@NotNull java.lang.String getCommunicationProtocolType()
getCommunicationProtocolDescription()
this type is constant and will not change for the particular protocol in future.boolean ping()
boolean isEnabled()
isEnabled
in interface BuildAgent
for additional information about agent status change
boolean isAuthorized()
for additional information about agent status change
@NotNull Comment getStatusComment()
Comment
,
isEnabled()
@NotNull Comment getAuthorizeComment()
Comment
,
isAuthorized()
boolean isRegistered()
@Nullable java.lang.String getUnregistrationComment()
@NotNull java.util.Date getRegistrationTimestamp()
java.util.Date getLastCommunicationTimestamp()
void setEnabled(boolean enabled, @Nullable SUser user, @NotNull java.lang.String reason)
enabled
- true if agent is enabled, and false otherwiseuser
- user who changes the status or nullreason
- reason why the status is changedvoid setEnabled(boolean enabled, @Nullable SUser user, @NotNull java.lang.String reason, long statusRestoringTimestamp)
enabled
- true if agent is enabled, and false otherwiseuser
- user who changes the status or nullreason
- reason why the status is changedstatusRestoringTimestamp
- timestamp at which agent status will be restoredvoid setAuthorized(boolean authorized, @Nullable SUser user, @NotNull java.lang.String reason) throws LicenseNotGrantedException
authorized
- true if agent should become authorized and false otherwiseuser
- user who changes the status or nullreason
- reason why the status changedLicenseNotGrantedException
- if agent cannot be authorized because there is not enough license tokensvoid releaseSources()
void releaseSources(@NotNull SBuildType buildType)
buildType
- build configuration@NotNull java.util.List<SBuildType> getBuildConfigurationsBuilt()
@Nullable java.lang.Boolean getAgentStatusToRestore()
@Nullable java.util.Date getAgentStatusRestoringTimestamp()
long getIdleTime()
@NotNull java.lang.String describe(boolean verbose)
describe
in interface jetbrains.buildServer.log.Loggable
verbose
- verbosity of object description@NotNull AgentPool getAgentPool()
boolean isCloudAgent()
boolean canStartBuildIfAgentOutdated()