public class GenericFileParsePipeline<T extends FileManifest> extends Object implements FileParsePipeline<T>
| Constructor and Description |
|---|
GenericFileParsePipeline(com.facebook.buck.parser.PipelineNodeCache<AbsPath,T> cache,
com.facebook.buck.parser.FileParserPool<T> fileParserPool,
com.google.common.util.concurrent.ListeningExecutorService executorService,
BuckEventBus eventBus,
Watchman watchman) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
com.google.common.util.concurrent.ListenableFuture<T> |
getFileJob(Cell cell,
AbsPath buildFile)
Asynchronously obtain all
TargetNodes from a build file. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFilepublic GenericFileParsePipeline(com.facebook.buck.parser.PipelineNodeCache<AbsPath,T> cache, com.facebook.buck.parser.FileParserPool<T> fileParserPool, com.google.common.util.concurrent.ListeningExecutorService executorService, BuckEventBus eventBus, Watchman watchman)
public com.google.common.util.concurrent.ListenableFuture<T> getFileJob(Cell cell, AbsPath buildFile) throws BuildTargetException
FileParsePipelineTargetNodes from a build file. This will leverage previously
cached raw contents of the file (if present) but will always loop over the contents, so
repeated calls (with the same args) are not free.
returned future may throw BuildFileParseException and HumanReadableException.
getFileJob in interface FileParsePipeline<T extends FileManifest>cell - the Cell that the build file belongs to.buildFile - absolute path to the file to process.BuildTargetExceptionpublic void close()
close in interface AutoCloseable