MerkleTree
public
abstract
class
MerkleTree
extends Object
java.lang.Object | |
↳ | com.android.tradefed.cache.MerkleTree |
A merkle tree representation as defined by the remote execution api.
Summary
Public constructors | |
---|---|
MerkleTree()
|
Public methods | |
---|---|
static
MerkleTree
|
buildFromDir(File directory)
Builds a merkle tree for the |
abstract
|
digestToFile()
The map of digests to files within this merkle tree. |
abstract
|
digestToSubdir()
The map of digests to Sub-directories within this merkle tree. |
abstract
Directory
|
root()
The root |
abstract
Digest
|
rootDigest()
|
abstract
String
|
rootName()
The name of the root |
Public constructors
MerkleTree
public MerkleTree ()
Public methods
buildFromDir
public static MerkleTree buildFromDir (File directory)
Builds a merkle tree for the directory
.
Parameters | |
---|---|
directory |
File |
Returns | |
---|---|
MerkleTree |
digestToFile
public abstractdigestToFile ()
The map of digests to files within this merkle tree.
Returns | |
---|---|
|
digestToSubdir
public abstractdigestToSubdir ()
The map of digests to Sub-directories within this merkle tree.
Returns | |
---|---|
|
rootDigest
public abstract Digest rootDigest ()
The Digest
of the root Directory
of this Merkle tree. Note, this is only
consumed by the cache client.
Returns | |
---|---|
Digest |
rootName
public abstract String rootName ()
The name of the root Directory
of this Merkle tree.
Returns | |
---|---|
String |