@ThreadSafe
public abstract class InvDatasetFeatureCollection
extends java.lang.Object
implements java.io.Closeable
The DatasetFeatureCollection object is held in the DataRootManager's FeatureCollectionCache; it may get closed and recreated.
| Modifier and Type | Class and Description |
|---|---|
protected class |
InvDatasetFeatureCollection.State |
| Modifier and Type | Field and Description |
|---|---|
protected static AllowedServices |
allowedServices |
protected thredds.featurecollection.FeatureCollectionConfig |
config |
protected java.lang.String |
configPath |
protected static java.lang.String |
contextName |
protected thredds.inventory.MFileCollectionManager |
datasetCollection |
protected thredds.client.catalog.Service |
downloadService |
protected thredds.featurecollection.FeatureCollectionType |
fcType |
protected static java.lang.String |
FILES |
protected boolean |
first |
protected static java.lang.String |
LATEST_DATASET_CATALOG |
protected thredds.client.catalog.Service |
latestService |
protected java.lang.Object |
lock |
protected java.lang.String |
name |
protected thredds.client.catalog.Service |
orgService |
protected thredds.server.catalog.FeatureCollectionRef |
parent |
protected InvDatasetFeatureCollection.State |
state |
protected java.lang.String |
topDirectory |
protected static java.lang.String |
VARIABLES |
protected thredds.client.catalog.Service |
virtualService |
| Modifier | Constructor and Description |
|---|---|
protected |
InvDatasetFeatureCollection(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 static java.lang.String |
buildCatalogServiceHref(java.lang.String path) |
protected InvDatasetFeatureCollection.State |
checkState()
A request has come in, check that the state has been initialized.
|
void |
close() |
static InvDatasetFeatureCollection |
factory(thredds.server.catalog.FeatureCollectionRef parent,
thredds.featurecollection.FeatureCollectionConfig config) |
protected void |
firstInit() |
protected java.lang.String |
getCatalogHref(java.lang.String what) |
thredds.featurecollection.FeatureCollectionConfig |
getConfig() |
java.lang.String |
getConfigPath() |
thredds.inventory.MCollection |
getDatasetCollectionManager() |
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.
|
java.lang.String |
getLatestFileName() |
org.slf4j.Logger |
getLogger() |
java.lang.String |
getName() |
ucar.nc2.dataset.NetcdfDataset |
getNetcdfDataset(java.lang.String matchPath)
Get the dataset named by the path.
|
protected java.lang.String |
getPath() |
ucar.nc2.ft.FeatureDatasetPoint |
getPointDataset(java.lang.String matchPath)
Get the associated Point Dataset, if any.
|
java.lang.String |
getTopDirectoryLocation() |
abstract thredds.client.catalog.builder.CatalogBuilder |
makeCatalog(java.lang.String match,
java.lang.String orgPath,
java.net.URI catURI)
Get one of the catalogs contained in this collection,
called by DataRootHandler.makeDynamicCatalog()
|
protected thredds.client.catalog.builder.CatalogBuilder |
makeCatalogFiles(java.net.URI catURI,
InvDatasetFeatureCollection.State localState,
java.util.List<java.lang.String> filenames,
boolean addLatest) |
protected thredds.client.catalog.builder.CatalogBuilder |
makeCatalogTop(java.net.URI catURI,
InvDatasetFeatureCollection.State localState)
Make the containing catalog of this feature collection
"http://server:port/thredds/catalog/path/catalog.xml"
|
protected void |
makeCollection() |
protected abstract thredds.client.catalog.builder.DatasetBuilder |
makeDatasetTop(java.net.URI catURI,
InvDatasetFeatureCollection.State localState) |
protected void |
makeDefaultServices() |
protected java.lang.String |
makeFullName(thredds.client.catalog.DatasetNode ds) |
thredds.client.catalog.builder.CatalogBuilder |
makeLatest(java.lang.String matchPath,
java.lang.String reqPath,
java.net.URI catURI) |
protected java.lang.String |
makeMetadataLink(java.lang.String datasetName,
java.lang.String metadata) |
protected thredds.client.catalog.ThreddsMetadata.UriResolved |
makeUriResolved(java.net.URI baseURI,
java.lang.String href) |
void |
processEvent(thredds.inventory.CollectionUpdateEvent event) |
static void |
setAllowedServices(AllowedServices _allowedServices) |
static void |
setContextName(java.lang.String c) |
void |
showStatus(java.util.Formatter f) |
java.lang.String |
showStatusShort(java.lang.String type) |
protected void |
update(thredds.inventory.CollectionUpdateType force)
Collection was changed, update internal objects.
|
protected abstract void |
updateCollection(InvDatasetFeatureCollection.State localState,
thredds.inventory.CollectionUpdateType force) |
protected static final java.lang.String LATEST_DATASET_CATALOG
protected static final java.lang.String VARIABLES
protected static final java.lang.String FILES
protected static AllowedServices allowedServices
protected static java.lang.String contextName
protected thredds.server.catalog.FeatureCollectionRef parent
protected thredds.client.catalog.Service orgService
protected thredds.client.catalog.Service virtualService
protected thredds.client.catalog.Service latestService
protected thredds.client.catalog.Service downloadService
protected final java.lang.String name
protected final java.lang.String configPath
protected final thredds.featurecollection.FeatureCollectionType fcType
protected final thredds.featurecollection.FeatureCollectionConfig config
protected java.lang.String topDirectory
protected thredds.inventory.MFileCollectionManager datasetCollection
protected InvDatasetFeatureCollection.State state
protected boolean first
protected final java.lang.Object lock
protected InvDatasetFeatureCollection(thredds.server.catalog.FeatureCollectionRef parent,
thredds.featurecollection.FeatureCollectionConfig config)
public static void setContextName(java.lang.String c)
public static void setAllowedServices(AllowedServices _allowedServices)
protected static java.lang.String buildCatalogServiceHref(java.lang.String path)
public static InvDatasetFeatureCollection factory(thredds.server.catalog.FeatureCollectionRef parent, thredds.featurecollection.FeatureCollectionConfig config)
protected void makeDefaultServices()
public void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableprotected void makeCollection()
public void processEvent(thredds.inventory.CollectionUpdateEvent event)
public void showStatus(java.util.Formatter f)
public java.lang.String showStatusShort(java.lang.String type)
protected void _showStatus(java.util.Formatter f,
boolean summaryOnly,
java.lang.String type)
throws java.io.IOException
java.io.IOExceptionprotected java.lang.String getPath()
protected abstract void updateCollection(InvDatasetFeatureCollection.State localState, thredds.inventory.CollectionUpdateType force)
protected java.lang.String getCatalogHref(java.lang.String what)
protected void firstInit()
protected InvDatasetFeatureCollection.State checkState() throws java.io.IOException
java.io.IOExceptionprotected void update(thredds.inventory.CollectionUpdateType force)
throws java.io.IOException
force - update typejava.io.IOExceptionpublic java.lang.String getName()
public java.lang.String getConfigPath()
public java.lang.String getLatestFileName()
public java.lang.String getTopDirectoryLocation()
public thredds.featurecollection.FeatureCollectionConfig getConfig()
public thredds.inventory.MCollection getDatasetCollectionManager()
public org.slf4j.Logger getLogger()
protected java.lang.String makeFullName(thredds.client.catalog.DatasetNode ds)
public abstract thredds.client.catalog.builder.CatalogBuilder makeCatalog(java.lang.String match,
java.lang.String orgPath,
java.net.URI catURI)
throws java.io.IOException
match - match.remainingorgPath - the path for the request.catURI - the base URI for the catalog to be made, used to resolve relative URLs.java.io.IOExceptionprotected abstract thredds.client.catalog.builder.DatasetBuilder makeDatasetTop(java.net.URI catURI,
InvDatasetFeatureCollection.State localState)
throws java.io.IOException
java.io.IOExceptionprotected thredds.client.catalog.builder.CatalogBuilder makeCatalogTop(java.net.URI catURI,
InvDatasetFeatureCollection.State localState)
throws java.io.IOException,
java.net.URISyntaxException
catURI - base URI of the requestlocalState - current state to usejava.io.IOException - on I/O errorjava.net.URISyntaxException - if path is misformedprotected thredds.client.catalog.builder.CatalogBuilder makeCatalogFiles(java.net.URI catURI,
InvDatasetFeatureCollection.State localState,
java.util.List<java.lang.String> filenames,
boolean addLatest)
throws java.io.IOException
java.io.IOExceptionprotected java.lang.String makeMetadataLink(java.lang.String datasetName,
java.lang.String metadata)
protected thredds.client.catalog.ThreddsMetadata.UriResolved makeUriResolved(java.net.URI baseURI,
java.lang.String href)
public thredds.client.catalog.builder.CatalogBuilder makeLatest(java.lang.String matchPath,
java.lang.String reqPath,
java.net.URI catURI)
throws java.io.IOException
java.io.IOExceptionpublic ucar.nc2.ft.FeatureDatasetPoint getPointDataset(java.lang.String matchPath)
throws java.io.IOException
matchPath - match.remainingjava.io.IOException - on errorpublic ucar.nc2.dt.grid.GridDataset getGridDataset(java.lang.String matchPath)
throws java.io.IOException
matchPath - match.remainingjava.io.IOException - on errorpublic ucar.nc2.ft2.coverage.CoverageCollection getGridCoverage(java.lang.String matchPath)
throws java.io.IOException
java.io.IOExceptionpublic ucar.nc2.dataset.NetcdfDataset getNetcdfDataset(java.lang.String matchPath)
throws java.io.IOException
matchPath - remaining path from matchjava.io.IOException - if read errorpublic java.io.File getFile(java.lang.String remaining)