Package jetbrains.buildServer.serverSide
Class AgentCompatibility
- java.lang.Object
-
- jetbrains.buildServer.serverSide.AgentCompatibility
-
- All Implemented Interfaces:
CompatibilityResult
public class AgentCompatibility extends Object implements CompatibilityResult
Presents information about compatibility the given agent with the specified configuration.
-
-
Constructor Summary
Constructors Constructor Description AgentCompatibility(AgentDescription agentDescription, SBuildType buildType, boolean isActive)Creates new empty compatibility instance.AgentCompatibility(CompatibilityResult compatibilityResult, AgentDescription agentDescription, SBuildType buildType, boolean isActive)Create a new compatibility instance copying the existence yet calculated compatibility result.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AgentDescriptiongetAgentDescription()Specified agent description.SBuildTypegetBuildType()Specified configuration.RunTypegetIncompatibleRunner()Returns incompatible runner (i.e.List<InvalidProperty>getInvalidRunParameters()Returns invalid runner parameters list.Map<String,String>getMissedVcsPluginsOnAgent()Returns map of VCS plugins required by build configuration which are not installed on the agent.List<Requirement>getNonMatchedRequirements()Returns list of non matched requirementsMap<String,String>getUndefinedParameters()Returns map of undefined parameters (parameter references without actual values, i.e.booleanisActive()Returns true if the specified agent (agent type) is in agent pool which is associated with the project of the specified build typebooleanisCompatible()Returns true if build configuration is compatible with agentbooleanisSuitableRunnerExists()Returns true if the specified agent has suitable runner for the configuration.StringtoString()
-
-
-
Constructor Detail
-
AgentCompatibility
public AgentCompatibility(@NotNull AgentDescription agentDescription, @NotNull SBuildType buildType, boolean isActive)Creates new empty compatibility instance.- Parameters:
agentDescription- specified agent description.buildType- specified configuration.
-
AgentCompatibility
public AgentCompatibility(@NotNull CompatibilityResult compatibilityResult, @NotNull AgentDescription agentDescription, @NotNull SBuildType buildType, boolean isActive)Create a new compatibility instance copying the existence yet calculated compatibility result.- Parameters:
agentDescription- specified agent description.buildType- specified configuration.
-
-
Method Detail
-
getAgentDescription
@NotNull public AgentDescription getAgentDescription()
Specified agent description.- Returns:
- the specified agent description.
-
getBuildType
@NotNull public SBuildType getBuildType()
Specified configuration.- Returns:
- the specified configuration.
-
isActive
public boolean isActive()
Returns true if the specified agent (agent type) is in agent pool which is associated with the project of the specified build type- Returns:
- see above
-
isCompatible
public boolean isCompatible()
Description copied from interface:CompatibilityResultReturns true if build configuration is compatible with agent- Specified by:
isCompatiblein interfaceCompatibilityResult- Returns:
- see above
-
isSuitableRunnerExists
public boolean isSuitableRunnerExists()
Description copied from interface:CompatibilityResultReturns true if the specified agent has suitable runner for the configuration.- Specified by:
isSuitableRunnerExistsin interfaceCompatibilityResult- Returns:
- see above
-
getIncompatibleRunner
@Nullable public RunType getIncompatibleRunner()
Description copied from interface:CompatibilityResultReturns incompatible runner (i.e. runner is defined in build configuration settings but does not exist on agent)- Specified by:
getIncompatibleRunnerin interfaceCompatibilityResult- Returns:
- see above
-
getInvalidRunParameters
@NotNull public List<InvalidProperty> getInvalidRunParameters()
Description copied from interface:CompatibilityResultReturns invalid runner parameters list.- Specified by:
getInvalidRunParametersin interfaceCompatibilityResult- Returns:
- see above
-
getNonMatchedRequirements
@NotNull public List<Requirement> getNonMatchedRequirements()
Description copied from interface:CompatibilityResultReturns list of non matched requirements- Specified by:
getNonMatchedRequirementsin interfaceCompatibilityResult- Returns:
- see above
-
getMissedVcsPluginsOnAgent
@NotNull public Map<String,String> getMissedVcsPluginsOnAgent()
Description copied from interface:CompatibilityResultReturns map of VCS plugins required by build configuration which are not installed on the agent. The key in the map is plugin name, the value is display name of the plugin (suitable for showing in the UI)- Specified by:
getMissedVcsPluginsOnAgentin interfaceCompatibilityResult- Returns:
- see above
-
getUndefinedParameters
@NotNull public Map<String,String> getUndefinedParameters()
Description copied from interface:CompatibilityResultReturns map of undefined parameters (parameter references without actual values, i.e. so called implicit requirements).- Specified by:
getUndefinedParametersin interfaceCompatibilityResult- Returns:
- map of parameter name to parameter origin - short description where reference to parameter is defined
-
-