Package jetbrains.buildServer.serverSide
Class Compatibility
- java.lang.Object
-
- jetbrains.buildServer.serverSide.Compatibility
-
- All Implemented Interfaces:
CompatibilityResult
public class Compatibility extends Object implements CompatibilityResult
- Author:
- Eugene Petrenko Created: 02.09.2009 15:03:25
-
-
Constructor Summary
Constructors Constructor Description Compatibility()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddInvalidRunParameter(InvalidProperty prop)Adds invalid run parameter on the agent.voidaddMissedVcsPluginOnAgent(String vcsPlugin, String name)Adds missing required vcs pluginvoidaddNotMatchedRequirement(Requirement requirement)Adds a requirement that does not match on the agent.voidaddUnresolvedParameter(String paramName, String parameterOrigin)Adds unresolved parameter to the mapRunTypegetIncompatibleRunner()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.booleanisCompatible()Returns if the configuration is compatible with the agent.booleanisSuitableRunnerExists()Returns true if the specified agent has suitable runner for the configuration.voidsetIncompatibleRunner(RunType runType)StringtoString()
-
-
-
Method Detail
-
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
-
setIncompatibleRunner
public void setIncompatibleRunner(RunType runType)
-
getIncompatibleRunner
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
-
addNotMatchedRequirement
public void addNotMatchedRequirement(@NotNull Requirement requirement)Adds a requirement that does not match on the agent.- Parameters:
requirement- non matched requirement
-
addInvalidRunParameter
public void addInvalidRunParameter(@NotNull InvalidProperty prop)Adds invalid run parameter on the agent. Used to build the compatibility object.- Parameters:
prop- invalid property on the agent.
-
addUnresolvedParameter
public void addUnresolvedParameter(@NotNull String paramName, @NotNull String parameterOrigin)Adds unresolved parameter to the map- Parameters:
paramName- parameter nameparameterOrigin- origin of the parameter - i.e. place where parameter reference was specified
-
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
-
isCompatible
public boolean isCompatible()
Returns if the configuration is compatible with the agent.- Specified by:
isCompatiblein interfaceCompatibilityResult- Returns:
- if the configuration is compatible with the agent.
-
addMissedVcsPluginOnAgent
public void addMissedVcsPluginOnAgent(@NotNull String vcsPlugin, @NotNull String name)Adds missing required vcs plugin- Parameters:
vcsPlugin- vcs plugin namename- name
-
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
-
-