Home
last modified time | relevance | path

Searched refs:ClusterCommand (Results 1 – 10 of 10) sorted by relevance

/tools/tradefederation/core/tests/src/com/android/tradefed/cluster/
DClusterCommandSchedulerTest.java29 import com.android.tradefed.cluster.ClusterCommand.RequestType;
409 final List<ClusterCommand> commands = mScheduler.fetchHostCommands(deviceMap);
426 ClusterCommand command = commands.get(0);
470 final List<ClusterCommand> commands = mScheduler.fetchHostCommands(deviceMap);
472 ClusterCommand command = commands.get(0);
503 List<ClusterCommand> cmds = new ArrayList<>();
504 ClusterCommand cmd = new ClusterCommand(COMMAND_ID, TASK_ID, CMD_LINE);
514 List<ClusterCommand> cmds = new ArrayList<>();
515 ClusterCommand cmd = new ClusterCommand(COMMAND_ID, TASK_ID, CMD_LINE);
527 List<ClusterCommand> cmds = new ArrayList<>();
[all …]
DClusterCommandTest.java42 ClusterCommand command = ClusterCommand.fromJson(json); in testFromJson_withAssignedAttemptId()
55 ClusterCommand command = ClusterCommand.fromJson(json); in testFromJson_withoutAssignedAttemptId()
72 ClusterCommand command = ClusterCommand.fromJson(json); in testFromJson_extraOptions()
DClusterCommandConfigBuilderTest.java68 private ClusterCommand mCommand;
81 mCommand = new ClusterCommand(REQUEST_ID, COMMAND_ID, TASK_ID, COMMAND_LINE, ATTEMPT_ID, in setUp()
82 ClusterCommand.RequestType.MANAGED, 0, 0); in setUp()
/tools/tradefederation/core/src/com/android/tradefed/cluster/
DClusterCommandScheduler.java143 private final ClusterCommand mCommandTask;
156 public InvocationEventHandler(ClusterCommand commandTask) { in InvocationEventHandler()
385 ClusterCommand.State status = in run()
390 if (ClusterCommand.State.CANCELED.equals(status)) { in run()
449 List<ClusterCommand> commands = null; in processReadyCommands()
530 List<ClusterCommand> fetchHostCommands(final MultiMap<String, DeviceDescriptor> devices) { in fetchHostCommands()
537 return Collections.<ClusterCommand>emptyList(); in fetchHostCommands()
563 List<ClusterCommand> commands = in fetchHostCommands()
574 return Collections.<ClusterCommand>emptyList(); in fetchHostCommands()
583 void execCommands(final List<ClusterCommand> commands) { in execCommands()
[all …]
DClusterClient.java95 public List<ClusterCommand> leaseHostCommands( in leaseHostCommands()
135 return Collections.<ClusterCommand>emptyList(); in leaseHostCommands()
216 public ClusterCommand.State getCommandState(String requestId, String commandId) { in getCommandState()
234 return new ClusterCommandStatus(ClusterCommand.State.valueOf(value), cancelReason); in getCommandStatus()
238 return new ClusterCommandStatus(ClusterCommand.State.UNKNOWN, ""); in getCommandStatus()
249 private static List<ClusterCommand> parseCommandTasks(HttpResponse httpResponse) in parseCommandTasks()
263 List<ClusterCommand> commandTasks = new ArrayList<>(jsonCommands.length()); in parseCommandTasks()
266 commandTasks.add(ClusterCommand.fromJson(jsonCommand)); in parseCommandTasks()
271 return Collections.<ClusterCommand>emptyList(); in parseCommandTasks()
276 return Collections.<ClusterCommand>emptyList(); in parseCommandTasks()
DClusterCommand.java29 public class ClusterCommand { class
69 public ClusterCommand(String commandId, String taskId, String cmdLine) { in ClusterCommand() method in ClusterCommand
84 public ClusterCommand( in ClusterCommand() method in ClusterCommand
212 public static ClusterCommand fromJson(JSONObject json) throws JSONException { in fromJson()
213 ClusterCommand command = in fromJson()
214 new ClusterCommand( in fromJson()
DClusterCommandStatus.java20 private final ClusterCommand.State mState;
29 public ClusterCommandStatus(ClusterCommand.State state, String cancelReason) { in ClusterCommandStatus()
34 public ClusterCommand.State getState() { in getState()
DIClusterClient.java55 public List<ClusterCommand> leaseHostCommands( in leaseHostCommands()
102 ClusterCommand.State state = getCommandState(requestId, commandId); in getCommandStatus()
114 public ClusterCommand.State getCommandState(String requestId, String commandId); in getCommandState()
DClusterCommandConfigBuilder.java48 private ClusterCommand mCommand;
60 public ClusterCommandConfigBuilder setClusterCommand(ClusterCommand command) { in setClusterCommand()
DClusterCommandEvent.java196 public static Builder createEventBuilder(final ClusterCommand command) { in createEventBuilder()