Package jetbrains.buildServer.serverSide
Class MultiNodeTasks.TaskData
- java.lang.Object
-
- jetbrains.buildServer.serverSide.MultiNodeTasks.TaskData
-
- All Implemented Interfaces:
MultiNodeTasks.Task
- Enclosing interface:
- MultiNodeTasks
public static class MultiNodeTasks.TaskData extends Object implements MultiNodeTasks.Task
-
-
Constructor Summary
Constructors Constructor Description TaskData(String type, String identity)
Creates a task without argumentsTaskData(String type, String identity, Long arg1)
Creates a task with a single long argumentTaskData(String type, String identity, Long arg1, Long arg2, String stringArg)
Creates a task with a mix of long and string argumentsTaskData(String type, String identity, Long arg1, Long arg2, Supplier<String> stringArgSupplier)
Creates a task with a mix of long and string arguments.TaskData(String type, String identity, String stringArg)
Creates a task with a string argument
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getIdentity()
Long
getLongArg1()
Long
getLongArg2()
String
getStringArg()
String
getType()
String
toString()
-
-
-
Constructor Detail
-
TaskData
public TaskData(@NotNull String type, @NotNull String identity)
Creates a task without arguments- Parameters:
type
-identity
-
-
TaskData
public TaskData(@NotNull String type, @NotNull String identity, @Nullable Long arg1)
Creates a task with a single long argument- Parameters:
type
-identity
-arg1
-
-
TaskData
public TaskData(@NotNull String type, @NotNull String identity, @Nullable String stringArg)
Creates a task with a string argument- Parameters:
type
-identity
-stringArg
-
-
TaskData
public TaskData(@NotNull String type, @NotNull String identity, @Nullable Long arg1, @Nullable Long arg2, @Nullable String stringArg)
Creates a task with a mix of long and string arguments- Parameters:
type
-identity
-arg1
-arg2
-stringArg
-
-
TaskData
public TaskData(@NotNull String type, @NotNull String identity, @Nullable Long arg1, @Nullable Long arg2, @Nullable Supplier<String> stringArgSupplier)
Creates a task with a mix of long and string arguments. The string argument is defined via supplier in order to reduce memory allocations.- Parameters:
type
-identity
-arg1
-arg2
-stringArgSupplier
-
-
-
Method Detail
-
getType
@NotNull public String getType()
- Specified by:
getType
in interfaceMultiNodeTasks.Task
-
getIdentity
@NotNull public String getIdentity()
- Specified by:
getIdentity
in interfaceMultiNodeTasks.Task
-
getLongArg1
@Nullable public Long getLongArg1()
- Specified by:
getLongArg1
in interfaceMultiNodeTasks.Task
-
getLongArg2
@Nullable public Long getLongArg2()
- Specified by:
getLongArg2
in interfaceMultiNodeTasks.Task
-
getStringArg
@Nullable public String getStringArg()
- Specified by:
getStringArg
in interfaceMultiNodeTasks.Task
-
-