public abstract class SCMProbe extends SCMSourceCriteria.Probe implements Closeable
SCMSourceCriteria.Probe that has its lifecycle managed outside of
SCMSource.fetch(TaskListener). A SCMProbe is used to check and recheck SCMSourceCriteria
so implementations are strongly recommended to provide caching of results from stat(String) and
SCMSourceCriteria.Probe.lastModified().| Constructor and Description |
|---|
SCMProbe() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
exists(String path)
Deprecated.
use
stat(String) |
abstract SCMProbeStat |
stat(String path)
Checks if the path, relative to the head candidate root, exists or not.
|
getRoot, lastModified, name@Deprecated public final boolean exists(@NonNull String path) throws IOException
stat(String)exists in class SCMSourceCriteria.Probepath - the path.true iff the path exists (may be a file or a directory or a symlink or whatever).IOException - if a remote network call failed and the result is therefore indeterminate.@NonNull public abstract SCMProbeStat stat(@NonNull String path) throws IOException
stat in class SCMSourceCriteria.Probepath - the path.IOException - if a remote network call failed and the result is therefore indeterminate.Copyright © 2016–2019. All rights reserved.