public interface Protocol
Modifier and Type | Interface and Description |
---|---|
static interface |
Protocol.Action
An action to execute remotely
|
static interface |
Protocol.Command
A command line and environment variables.
|
static interface |
Protocol.Digest
A content digest.
|
static interface |
Protocol.Directory
A Directory consists of a list of files and child DirectoryNodes.
|
static interface |
Protocol.DirectoryNode
Represents a child of a Directory.
|
static interface |
Protocol.FileNode
Represents a possibly executable file in directories/trees.
|
static interface |
Protocol.OutputDirectory
An OutputDirectory is a merkle tree rooted at a particular path.
|
static interface |
Protocol.OutputFile
An OutputFile is like a FileNode for action outputs.
|
static interface |
Protocol.SymlinkNode
Representation of a symlink.
|
static interface |
Protocol.Tree
A Tree contains all Directories in a merkle tree in a single structure.
|
static interface |
Protocol.TreeNode
Represents a tree node
|
Protocol.Command newCommand(com.google.common.collect.ImmutableList<String> command, com.google.common.collect.ImmutableSortedMap<String,String> commandEnvironment, Set<Path> outputs, com.facebook.buck.remoteexecution.proto.WorkerRequirements workerRequirements)
Protocol.Action newAction(Protocol.Digest commandDigest, Protocol.Digest inputRootDigest)
Protocol.OutputDirectory newOutputDirectory(Path output, Protocol.Digest treeDigest)
Protocol.Tree newTree(Protocol.Directory directory, List<Protocol.Directory> directories)
Protocol.Digest newDigest(String hash, int size)
Protocol.OutputFile newOutputFile(Path output, Protocol.Digest digest, boolean isExecutable)
Protocol.FileNode newFileNode(Protocol.Digest digest, String name, boolean isExecutable)
Protocol.SymlinkNode newSymlinkNode(String name, Path path)
Protocol.Command parseCommand(ByteBuffer data) throws IOException
IOException
Protocol.Action parseAction(ByteBuffer data) throws IOException
IOException
Protocol.Directory parseDirectory(ByteBuffer data) throws IOException
IOException
Protocol.Tree parseTree(ByteBuffer data) throws IOException
IOException
Protocol.DirectoryNode newDirectoryNode(String name, Protocol.Digest child)
Protocol.Directory newDirectory(List<Protocol.DirectoryNode> directories, Collection<Protocol.FileNode> files, Collection<Protocol.SymlinkNode> symlinks)
byte[] toByteArray(Protocol.Directory directory)
byte[] toByteArray(Protocol.Tree tree)
byte[] toByteArray(Protocol.Command actionCommand)
byte[] toByteArray(Protocol.Action action)
Protocol.Digest computeDigest(Protocol.Directory directory)
Protocol.Digest computeDigest(byte[] data)
com.google.common.hash.HashFunction getHashFunction()
MessageDigest getMessageDigest()