Class MockRunType
- java.lang.Object
-
- jetbrains.buildServer.serverSide.RunTypeBase
-
- jetbrains.buildServer.serverSide.RunType
-
- jetbrains.buildServer.serverSide.impl.MockRunType
-
- All Implemented Interfaces:
ExecutorModeSupport
,Describable
,RunTypeInfo
public class MockRunType extends RunType
- Author:
- Pavel.Sher Date: 26.05.2006
-
-
Field Summary
Fields Modifier and Type Field Description static String
NAME
-
Fields inherited from class jetbrains.buildServer.serverSide.RunType
RUN_TYPE_NAME_SIZE
-
-
Constructor Summary
Constructors Constructor Description MockRunType()
MockRunType(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String>
getDefaultRunnerProperties()
String
getDescription()
Returns short description which will be shown in the user interfaceString
getDisplayName()
Returns name of this runner to show in UI.String
getEditRunnerParamsJspFilePath()
PropertiesProcessor
getRunnerPropertiesProcessor()
Returns properties processor which will be used to validate parameters specified by user.String
getType()
Returns runner type which should match the BuildRunner.getType.String
getViewRunnerParamsJspFilePath()
String
toString()
-
Methods inherited from class jetbrains.buildServer.serverSide.RunTypeBase
describeParameters, getIconUrl, getRunnerSpecificRequirements, getTags, isSecureParameter, processRunnerRequirements
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface jetbrains.buildServer.serverSide.agentless.ExecutorModeSupport
getSupportType
-
-
-
-
Field Detail
-
NAME
@NonNls public static final String NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MockRunType
public MockRunType()
-
MockRunType
public MockRunType(String name)
-
-
Method Detail
-
getType
@NotNull public String getType()
Description copied from class:RunType
Returns runner type which should match the BuildRunner.getType.- Specified by:
getType
in interfaceRunTypeInfo
- Specified by:
getType
in classRunType
- Returns:
- runner type, will be shown in Runners combobox and should match the BuildRunner.getType
The name is limited by
RunType.RUN_TYPE_NAME_SIZE
.
-
getDisplayName
@NotNull public String getDisplayName()
Description copied from class:RunType
Returns name of this runner to show in UI.- Specified by:
getDisplayName
in interfaceDescribable
- Specified by:
getDisplayName
in interfaceRunTypeInfo
- Specified by:
getDisplayName
in classRunType
- Returns:
- see above
-
getDescription
@NotNull public String getDescription()
Description copied from class:RunType
Returns short description which will be shown in the user interface- Specified by:
getDescription
in interfaceRunTypeInfo
- Specified by:
getDescription
in classRunType
- Returns:
- see above
-
getRunnerPropertiesProcessor
public PropertiesProcessor getRunnerPropertiesProcessor()
Description copied from class:RunTypeBase
Returns properties processor which will be used to validate parameters specified by user.- Specified by:
getRunnerPropertiesProcessor
in classRunTypeBase
- Returns:
- properties processor which operates with parameters specified for the runner.
-
getEditRunnerParamsJspFilePath
public String getEditRunnerParamsJspFilePath()
- Specified by:
getEditRunnerParamsJspFilePath
in classRunTypeBase
- Returns:
- absolute path to a JSP file or controller for editing runner parameters, should not include context path.
- See Also:
PluginDescriptor.getPluginResourcesPath(String)
-
getViewRunnerParamsJspFilePath
public String getViewRunnerParamsJspFilePath()
- Specified by:
getViewRunnerParamsJspFilePath
in classRunTypeBase
- Returns:
- absolute path to a JSP file or controller for displaying runner parameters, should not include context path.
- See Also:
PluginDescriptor.getPluginResourcesPath(String)
-
getDefaultRunnerProperties
@Nullable public Map<String,String> getDefaultRunnerProperties()
- Specified by:
getDefaultRunnerProperties
in classRunTypeBase
- Returns:
- default properties for this runner type
-
-