@ThreadSafe public class InvDatasetFcGrib extends InvDatasetFeatureCollection
catalogs see makeCatalog() path/catalog.xml // top catalog path/partitionName/catalog.xml path/partitionName/../partitionName/catalog.xml path/latest.xml // latest (resolver)
datasets see findDataset() path/dataset (dataset = BEST, TWOD, TP, "") // top collection, single group path/dataset/groupName // top collection, multiple group path/partitionName/dataset // partition, single group path/partitionName/../partitionName/dataset path/partitionName/dataset/groupName // partition, multiple group path/partitionName/../partitionName/dataset/groupName
files path/partitionName/../partitionName/FILES/filename
| Modifier and Type | Class and Description |
|---|---|
protected class |
InvDatasetFcGrib.StateGrib |
InvDatasetFeatureCollection.StateallowedServices, config, configPath, contextName, datasetCollection, downloadService, fcType, FILES, first, LATEST_DATASET_CATALOG, latestService, lock, name, orgService, parent, state, topDirectory, VARIABLES, virtualService| Constructor and Description |
|---|
InvDatasetFcGrib(thredds.server.catalog.FeatureCollectionRef parent,
thredds.featurecollection.FeatureCollectionConfig config) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
_showStatus(java.util.Formatter f,
boolean summaryOnly,
java.lang.String type) |
protected void |
addFileDatasets(thredds.client.catalog.builder.DatasetBuilder parent,
java.lang.String parentPath,
ucar.nc2.grib.collection.GribCollectionImmutable fromGc) |
void |
close() |
protected java.lang.String |
getDatasetNameBest(java.lang.String dsName) |
protected java.lang.String |
getDatasetNameLatest(java.lang.String dsName) |
protected java.lang.String |
getDatasetNameTP(java.lang.String dsName) |
protected java.lang.String |
getDatasetNameTwoD(java.lang.String dsName) |
java.io.File |
getFile(java.lang.String remaining) |
ucar.nc2.ft2.coverage.CoverageCollection |
getGridCoverage(java.lang.String matchPath) |
ucar.nc2.dt.grid.GridDataset |
getGridDataset(java.lang.String matchPath)
Get the associated Grid Dataset, if any.
|
ucar.nc2.dataset.NetcdfDataset |
getNetcdfDataset(java.lang.String matchPath)
Get the dataset named by the path.
|
ucar.nc2.grib.collection.GribCollectionImmutable.Dataset |
getSingleDatasetOrByTypeName(ucar.nc2.grib.collection.GribCollectionImmutable gc,
java.lang.String typeName) |
thredds.client.catalog.builder.CatalogBuilder |
makeCatalog(java.lang.String match,
java.lang.String reqPath,
java.net.URI catURI)
Get one of the catalogs contained in this collection,
called by DataRootHandler.makeDynamicCatalog()
|
protected thredds.client.catalog.builder.DatasetBuilder |
makeDatasetTop(java.net.URI catURI,
InvDatasetFeatureCollection.State state) |
thredds.client.catalog.builder.CatalogBuilder |
makeLatest(java.lang.String matchPath,
java.lang.String reqPath,
java.net.URI catURI) |
protected void |
updateCollection(InvDatasetFeatureCollection.State state,
thredds.inventory.CollectionUpdateType force) |
buildCatalogServiceHref, checkState, factory, firstInit, getCatalogHref, getConfig, getConfigPath, getDatasetCollectionManager, getLatestFileName, getLogger, getName, getPath, getPointDataset, getTopDirectoryLocation, makeCatalogFiles, makeCatalogTop, makeCollection, makeDefaultServices, makeFullName, makeMetadataLink, makeUriResolved, processEvent, setAllowedServices, setContextName, showStatus, showStatusShort, updatepublic InvDatasetFcGrib(thredds.server.catalog.FeatureCollectionRef parent,
thredds.featurecollection.FeatureCollectionConfig config)
public void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class InvDatasetFeatureCollectionprotected void _showStatus(java.util.Formatter f,
boolean summaryOnly,
java.lang.String type)
throws java.io.IOException
_showStatus in class InvDatasetFeatureCollectionjava.io.IOExceptionprotected void updateCollection(InvDatasetFeatureCollection.State state, thredds.inventory.CollectionUpdateType force)
updateCollection in class InvDatasetFeatureCollectionprotected void addFileDatasets(thredds.client.catalog.builder.DatasetBuilder parent,
java.lang.String parentPath,
ucar.nc2.grib.collection.GribCollectionImmutable fromGc)
throws java.io.IOException
java.io.IOExceptionpublic thredds.client.catalog.builder.CatalogBuilder makeCatalog(java.lang.String match,
java.lang.String reqPath,
java.net.URI catURI)
throws java.io.IOException
InvDatasetFeatureCollectionmakeCatalog in class InvDatasetFeatureCollectionmatch - match.remainingreqPath - the path for the request.catURI - the base URI for the catalog to be made, used to resolve relative URLs.java.io.IOExceptionprotected thredds.client.catalog.builder.DatasetBuilder makeDatasetTop(java.net.URI catURI,
InvDatasetFeatureCollection.State state)
throws java.io.IOException
makeDatasetTop in class InvDatasetFeatureCollectionjava.io.IOExceptionpublic thredds.client.catalog.builder.CatalogBuilder makeLatest(java.lang.String matchPath,
java.lang.String reqPath,
java.net.URI catURI)
throws java.io.IOException
makeLatest in class InvDatasetFeatureCollectionjava.io.IOExceptionprotected java.lang.String getDatasetNameLatest(java.lang.String dsName)
protected java.lang.String getDatasetNameBest(java.lang.String dsName)
protected java.lang.String getDatasetNameTP(java.lang.String dsName)
protected java.lang.String getDatasetNameTwoD(java.lang.String dsName)
public java.io.File getFile(java.lang.String remaining)
getFile in class InvDatasetFeatureCollectionpublic ucar.nc2.ft2.coverage.CoverageCollection getGridCoverage(java.lang.String matchPath)
throws java.io.IOException
getGridCoverage in class InvDatasetFeatureCollectionjava.io.IOExceptionpublic ucar.nc2.dt.grid.GridDataset getGridDataset(java.lang.String matchPath)
throws java.io.IOException
InvDatasetFeatureCollectiongetGridDataset in class InvDatasetFeatureCollectionmatchPath - match.remainingjava.io.IOException - on errorpublic ucar.nc2.dataset.NetcdfDataset getNetcdfDataset(java.lang.String matchPath)
throws java.io.IOException
InvDatasetFeatureCollectiongetNetcdfDataset in class InvDatasetFeatureCollectionmatchPath - remaining path from matchjava.io.IOException - if read errorpublic ucar.nc2.grib.collection.GribCollectionImmutable.Dataset getSingleDatasetOrByTypeName(ucar.nc2.grib.collection.GribCollectionImmutable gc,
java.lang.String typeName)