@ThreadSafe
public abstract class InvDatasetFeatureCollection
extends thredds.catalog.InvCatalogRef
implements thredds.inventory.CollectionUpdateListener
| Modifier and Type | Class and Description |
|---|---|
protected class |
InvDatasetFeatureCollection.State |
| Modifier and Type | Field and Description |
|---|---|
protected thredds.catalog.InvService |
cdmrService |
protected thredds.featurecollection.FeatureCollectionConfig |
config |
protected java.lang.String |
configPath |
protected static java.lang.String |
context |
protected thredds.inventory.MFileCollectionManager |
datasetCollection |
protected static java.lang.String |
Default_Services |
protected static java.lang.String |
Download_Services |
protected thredds.featurecollection.FeatureCollectionType |
fcType |
protected static java.lang.String |
FILES |
protected boolean |
first |
protected static java.lang.String |
LATEST_DATASET_CATALOG |
protected static java.lang.String |
LATEST_SERVICE |
protected java.lang.Object |
lock |
protected org.slf4j.Logger |
logger |
protected thredds.catalog.InvService |
orgService |
protected InvDatasetFeatureCollection.State |
state |
protected java.lang.String |
topDirectory |
protected static java.lang.String |
VARIABLES |
protected static java.lang.String |
Virtual_Services |
protected thredds.catalog.InvService |
virtualService |
access, authorityName, catalog, collectionType, contributors, creators, dataFormatType, datasets, dataType, dates, defaultService, docs, gc, harvest, id, keywords, metadata, name, parent, projects, properties, publishers, restrictAccess, services, tc, variableMapLink, variables| Modifier | Constructor and Description |
|---|---|
protected |
InvDatasetFeatureCollection(thredds.catalog.InvDatasetImpl 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.
|
static InvDatasetFeatureCollection |
factory(thredds.catalog.InvDatasetImpl parent,
thredds.featurecollection.FeatureCollectionConfig config) |
protected void |
finishConstruction() |
protected void |
firstInit() |
protected java.lang.String |
getCatalogHref(java.lang.String what) |
java.lang.String |
getCollectionName() |
thredds.featurecollection.FeatureCollectionConfig |
getConfig() |
thredds.inventory.MCollection |
getDatasetCollectionManager() |
java.util.List<thredds.catalog.InvDataset> |
getDatasets() |
abstract ucar.nc2.ft.FeatureDataset |
getFeatureDataset() |
java.io.File |
getFile(java.lang.String remaining) |
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() |
ucar.nc2.dataset.NetcdfDataset |
getNetcdfDataset(java.lang.String matchPath)
Get the dataset named by the path.
|
java.lang.String |
getPath() |
java.lang.String |
getTopDirectoryLocation() |
abstract thredds.catalog.InvCatalogImpl |
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.catalog.InvCatalogImpl |
makeCatalogFiles(java.net.URI catURI,
InvDatasetFeatureCollection.State localState,
java.util.List<java.lang.String> filenames,
boolean addLatest) |
protected thredds.catalog.InvCatalogImpl |
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 void |
makeDatasetTop(InvDatasetFeatureCollection.State localState) |
protected thredds.catalog.InvService |
makeDefaultService() |
protected thredds.catalog.InvService |
makeDownloadService() |
thredds.catalog.InvCatalogImpl |
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.catalog.InvService |
makeServiceVirtual(thredds.catalog.InvService org) |
void |
sendEvent(thredds.inventory.CollectionUpdateType type) |
static void |
setCatalogServletName(java.lang.String catServletName) |
static void |
setCdmrFeatureServiceUrlPath(java.lang.String urlPath) |
static void |
setContext(java.lang.String c) |
static void |
setLoggerFactory(ucar.nc2.util.log.LoggerFactory fac) |
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) |
equals, findDatasetByName, findProperty, findService, finish, getAccess, getAccess, getAlias, getAuthority, getCalendarDateCoverage, getCollectionType, getContributors, getCreators, getDataFormatType, getDataType, getDates, getDocumentation, getDocumentation, getFullName, getGeospatialCoverage, getID, getKeywords, getMark, getMetadata, getMetadata, getName, getParent, getProjects, getProperties, getProxyDataset, getPublishers, getServiceDefault, getUniqueID, getURI, getUrlPath, getUserProperty, getVariableMapLink, getVariables, getXlinkHref, hasAccess, hashCode, hasNestedDatasets, isHarvest, isRead, readAsynch, release, setXlinkHref, useRemoteCatalogServiceaddAccess, addAccess, addDataset, addDataset, addDocumentation, addProperty, addService, canonicalize, dump, getAccessLocal, getDataSize, getLastModifiedDate, getLocalMetadata, getLocalMetadataInheritable, getNcmlElement, getParentReal, getServiceName, getServicesLocal, removeDataset, removeLocalMetadata, removeService, replaceDataset, resolve, setAlias, setAuthority, setCatalog, setCollectionType, setContributors, setDataFormatType, setDataSize, setDataType, setGeospatialCoverage, setHarvest, setID, setKeywords, setLastModifiedDate, setLastModifiedDate, setLocalMetadata, setMark, setName, setNcmlElement, setParent, setProjects, setPublishers, setResourceControl, setServiceName, setServicesLocal, setTimeCoverage, setTimeCoverage, setUrlPath, setUserProperty, toString, transferMetadata, writeHtmlDescription, writeHtmlDescriptionprotected static final java.lang.String LATEST_DATASET_CATALOG
protected static final java.lang.String LATEST_SERVICE
protected static final java.lang.String VARIABLES
protected static final java.lang.String FILES
protected static final java.lang.String Virtual_Services
protected static final java.lang.String Default_Services
protected static final java.lang.String Download_Services
protected static java.lang.String context
protected thredds.catalog.InvService orgService
protected thredds.catalog.InvService virtualService
protected thredds.catalog.InvService cdmrService
protected org.slf4j.Logger logger
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.catalog.InvDatasetImpl parent,
thredds.featurecollection.FeatureCollectionConfig config)
public static void setContext(java.lang.String c)
public static void setCatalogServletName(java.lang.String catServletName)
protected static java.lang.String buildCatalogServiceHref(java.lang.String path)
public static void setCdmrFeatureServiceUrlPath(java.lang.String urlPath)
public static void setLoggerFactory(ucar.nc2.util.log.LoggerFactory fac)
public static InvDatasetFeatureCollection factory(thredds.catalog.InvDatasetImpl parent, thredds.featurecollection.FeatureCollectionConfig config)
protected void makeCollection()
protected void finishConstruction()
public java.lang.String getCollectionName()
getCollectionName in interface thredds.inventory.CollectionUpdateListenerpublic void sendEvent(thredds.inventory.CollectionUpdateType type)
sendEvent in interface thredds.inventory.CollectionUpdateListenerpublic 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 abstract void updateCollection(InvDatasetFeatureCollection.State localState, thredds.inventory.CollectionUpdateType force)
protected abstract void makeDatasetTop(InvDatasetFeatureCollection.State localState) throws java.io.IOException
java.io.IOExceptionprotected 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 getPath()
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()
public java.util.List<thredds.catalog.InvDataset> getDatasets()
getDatasets in class thredds.catalog.InvCatalogRefprotected thredds.catalog.InvService makeDefaultService()
protected thredds.catalog.InvService makeDownloadService()
protected thredds.catalog.InvService makeServiceVirtual(thredds.catalog.InvService org)
public abstract thredds.catalog.InvCatalogImpl 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 thredds.catalog.InvCatalogImpl 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.catalog.InvCatalogImpl 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)
public thredds.catalog.InvCatalogImpl makeLatest(java.lang.String matchPath,
java.lang.String reqPath,
java.net.URI catURI)
throws java.io.IOException
java.io.IOExceptionpublic ucar.nc2.dt.grid.GridDataset getGridDataset(java.lang.String matchPath)
throws java.io.IOException
matchPath - match.remainingjava.io.IOException - on errorpublic abstract ucar.nc2.ft.FeatureDataset getFeatureDataset()
public 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)