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