blob: ab27b8e57e21b294c3d274b1b3462c0d1ad0ddcb [file] [log] [blame]
Alpha Lam79adf592016-02-10 15:38:59 +00001// Copyright 2016 The Bazel Authors. All rights reserved.
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
Alpha Lam79adf592016-02-10 15:38:59 +000014package com.google.devtools.build.lib.remote;
15
ulfjack19befaf2017-07-24 11:09:40 +020016import com.google.devtools.build.lib.exec.AbstractSpawnStrategy;
Googlereee813c2023-03-15 02:47:45 -070017import com.google.devtools.build.lib.exec.ExecutionOptions;
ulfjack3fbd7c42017-07-10 13:19:19 +020018import com.google.devtools.build.lib.exec.SpawnRunner;
tomlu1a19b622018-01-11 15:17:28 -080019import com.google.devtools.build.lib.vfs.Path;
Alpha Lam79adf592016-02-10 15:38:59 +000020
21/**
Ola Rozenfeld72d117d2016-09-19 15:02:32 +000022 * Strategy that uses a distributed cache for sharing action input and output files. Optionally this
23 * strategy also support offloading the work to a remote worker.
Alpha Lam79adf592016-02-10 15:38:59 +000024 */
ulfjack19befaf2017-07-24 11:09:40 +020025final class RemoteSpawnStrategy extends AbstractSpawnStrategy {
Googlereee813c2023-03-15 02:47:45 -070026 RemoteSpawnStrategy(Path execRoot, SpawnRunner spawnRunner, ExecutionOptions executionOptions) {
27 super(execRoot, spawnRunner, executionOptions);
Ola Rozenfeld72d117d2016-09-19 15:02:32 +000028 }
29
Ola Rozenfeldc3d5c682016-11-24 15:34:30 +000030 @Override
31 public String toString() {
32 return "remote";
33 }
Alpha Lam79adf592016-02-10 15:38:59 +000034}