Class Compatibility

    • Constructor Detail

      • Compatibility

        public Compatibility()
    • Method Detail

      • setIncompatibleRunner

        public void setIncompatibleRunner​(RunType runType)
      • 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 name
        parameterOrigin - origin of the parameter - i.e. place where parameter reference was specified
      • isCompatible

        public boolean isCompatible()
        Returns if the configuration is compatible with the agent.
        Specified by:
        isCompatible in interface CompatibilityResult
        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 name
        name - name
      • getMissedVcsPluginsOnAgent

        @NotNull
        public Map<String,​String> getMissedVcsPluginsOnAgent()
        Description copied from interface: CompatibilityResult
        Returns 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:
        getMissedVcsPluginsOnAgent in interface CompatibilityResult
        Returns:
        see above
      • getUndefinedParameters

        @NotNull
        public Map<String,​String> getUndefinedParameters()
        Description copied from interface: CompatibilityResult
        Returns map of undefined parameters (parameter references without actual values, i.e. so called implicit requirements).
        Specified by:
        getUndefinedParameters in interface CompatibilityResult
        Returns:
        map of parameter name to parameter origin - short description where reference to parameter is defined