Interface RemoteExecutionHelper
-
- All Known Implementing Classes:
ModernBuildRuleRemoteExecutionHelper
public interface RemoteExecutionHelper
RemoteExecutionHelper is used to create remote execution actions for aModernBuildRule
.The created
RemoteExecutionActionInfo
contains all the information necessary for running the rule remotely.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Path
getCellPathPrefix()
The cell path prefix is the path that all remote execution related paths will be relative to.RemoteExecutionActionInfo
prepareRemoteExecution(ModernBuildRule<?> rule, java.util.function.BiPredicate<Protocol.Digest,String> requiredDataPredicate, com.facebook.buck.remoteexecution.proto.WorkerRequirements workerRequirements)
Gets all the information needed to run the rule via Remote Execution (inputs merkle tree, action and digest, outputs).boolean
supportsRemoteExecution(ModernBuildRule<?> instance)
Returns whether remote execution is supported by this rule.
-
-
-
Method Detail
-
supportsRemoteExecution
boolean supportsRemoteExecution(ModernBuildRule<?> instance)
Returns whether remote execution is supported by this rule.
-
prepareRemoteExecution
RemoteExecutionActionInfo prepareRemoteExecution(ModernBuildRule<?> rule, java.util.function.BiPredicate<Protocol.Digest,String> requiredDataPredicate, com.facebook.buck.remoteexecution.proto.WorkerRequirements workerRequirements) throws IOException
Gets all the information needed to run the rule via Remote Execution (inputs merkle tree, action and digest, outputs).- Throws:
IOException
-
getCellPathPrefix
Path getCellPathPrefix()
The cell path prefix is the path that all remote execution related paths will be relative to.
-
-