public class DataRootPathMatcher
extends java.lang.Object
| Constructor and Description |
|---|
DataRootPathMatcher(ConfigCatalogCache ccc,
DataRootTracker tracker) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addRoot(DatasetRootConfig config,
java.lang.String catalogRelPath,
boolean checkDups) |
boolean |
contains(java.lang.String path)
See if this object already exists in the collection
|
DataRoot |
convert2DataRoot(DataRootExt dataRootExt) |
void |
extractDataRoots(java.lang.String catalogRelPath,
java.util.List<thredds.client.catalog.Dataset> dsList,
boolean checkDups,
java.util.Map<java.lang.String,java.lang.String> idMap)
Finds datasetScan, datasetFmrc
Look for duplicate Ids (give message).
|
DataRoot |
findDataRoot(java.lang.String reqPath)
Find the longest DataRoot match.
|
java.lang.String |
findLongestPathMatch(java.lang.String reqPath)
Find the longest path match.
|
DataRootExt |
get(java.lang.String path) |
java.util.Set<java.util.Map.Entry<java.lang.String,DataRootExt>> |
getValues()
Get an iterator over the dataRoot keys and values.
|
public DataRootPathMatcher(ConfigCatalogCache ccc, DataRootTracker tracker)
public boolean contains(java.lang.String path)
path - find object that has this keypublic DataRootExt get(java.lang.String path)
public java.util.Set<java.util.Map.Entry<java.lang.String,DataRootExt>> getValues()
public java.lang.String findLongestPathMatch(java.lang.String reqPath)
reqPath - find object with longest match where reqPath.startsWith( key)public DataRoot findDataRoot(java.lang.String reqPath)
reqPath - find object with longest match where reqPath.startsWith( key)@Nonnull public DataRoot convert2DataRoot(DataRootExt dataRootExt)
public void extractDataRoots(java.lang.String catalogRelPath,
java.util.List<thredds.client.catalog.Dataset> dsList,
boolean checkDups,
java.util.Map<java.lang.String,java.lang.String> idMap)
dsList - the list of Datasetpublic boolean addRoot(DatasetRootConfig config, java.lang.String catalogRelPath, boolean checkDups)