Interface RunTypeRegistry


  • public interface RunTypeRegistry
    Registry for all available RunTypes (each RunType represent a particular build runner) registered on the TeamCity server.
    See Also:
    SBuildServer.getRunTypeRegistry()
    • Method Detail

      • unregisterRunType

        void unregisterRunType​(@NotNull
                               RunType runType)
        Unregisters previously registered RunType
        Parameters:
        runType - server-side implementation of build runner
        Since:
        2018.2
      • registerRunType

        void registerRunType​(@NotNull
                             RunType runType)
        Register a server-side implementation of build runner (or RunType).
        Parameters:
        runType - server-side implementation of build runner
      • unregisterRunType

        void unregisterRunType​(@NotNull
                               java.lang.String runType)
        Unregisters run-type on server-side only
        Parameters:
        runType - registered run-type to remove
        Since:
        8.0
      • findRunType

        @Nullable
        RunType findRunType​(@NotNull
                            java.lang.String runType)
        Return a run type with given name (type)
        Parameters:
        runType - name of the run type to find
        Returns:
        see above
        See Also:
        RunType.getType()
      • findExtendedRunType

        @Nullable
        RunTypeWithExtensions findExtendedRunType​(@NotNull
                                                  java.lang.String runType)
        Parameters:
        runType - runType
        Returns:
        runType merged with all available run type extensions
        Since:
        5.1
      • getRegisteredRunTypes

        @NotNull
        java.util.Collection<? extends RunType> getRegisteredRunTypes()
        Returns all registered run types ordered by type name.
        Returns:
        see above
        Since:
        5.1