@ThreadSafe public abstract class InvDatasetFeatureCollection extends InvCatalogRef implements thredds.inventory.CollectionManager.TriggerListener
| Modifier and Type | Class and Description |
|---|---|
protected class |
InvDatasetFeatureCollection.State |
| Modifier and Type | Field and Description |
|---|---|
protected InvService |
cdmrService |
protected thredds.featurecollection.FeatureCollectionConfig |
config |
protected static java.lang.String |
context |
protected thredds.inventory.CollectionManager |
dcm |
protected thredds.featurecollection.FeatureCollectionType |
fcType |
protected static java.lang.String |
FILES |
protected static java.lang.String |
LATEST_DATASET_CATALOG |
protected static java.lang.String |
LATEST_SERVICE |
protected java.lang.String |
latestFileName |
protected java.lang.Object |
lock |
protected InvService |
orgService |
protected java.lang.String |
path |
protected InvDatasetFeatureCollection.State |
state |
protected java.lang.String |
topDirectory |
protected static java.lang.String |
VARIABLES |
protected static java.lang.String |
Virtual_Services |
protected InvService |
virtualService |
log, mark, ncmlElement, tm, tmi, tmi6access, 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(InvDatasetImpl parent,
java.lang.String name,
java.lang.String path,
thredds.featurecollection.FeatureCollectionType fcType,
thredds.featurecollection.FeatureCollectionConfig config) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract InvDatasetFeatureCollection.State |
checkState()
a request has come in, check that the state is up-to-date
|
static InvDatasetFeatureCollection |
factory(InvDatasetImpl parent,
java.lang.String name,
java.lang.String path,
thredds.featurecollection.FeatureCollectionType fcType,
thredds.featurecollection.FeatureCollectionConfig config) |
protected void |
finishConstruction() |
protected void |
firstInit() |
protected java.lang.String |
getCatalogHref(java.lang.String what) |
thredds.featurecollection.FeatureCollectionConfig |
getConfig() |
thredds.inventory.CollectionManager |
getDatasetCollectionManager() |
java.util.List<InvDataset> |
getDatasets()
Get a list of all the nested datasets.
|
FeatureDatasetPoint |
getFeatureDatasetPoint() |
java.io.File |
getFile(java.lang.String remaining) |
GridDataset |
getGridDataset(java.lang.String matchPath)
Get the associated Grid Dataset, if any.
|
java.lang.String |
getLatestFileName() |
NetcdfDataset |
getNetcdfDataset(java.lang.String matchPath)
Get the dataset named by the path.
|
java.lang.String |
getPath() |
java.lang.String |
getTopDirectoryLocation() |
void |
handleCollectionEvent(thredds.inventory.CollectionManager.TriggerEvent event) |
abstract 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 InvCatalogImpl |
makeCatalogFiles(java.net.URI catURI,
InvDatasetFeatureCollection.State localState,
java.util.List<java.lang.String> filenames,
boolean addLatest) |
protected 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"
|
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 InvService |
makeVirtualService(InvService org) |
static void |
setCatalogServletName(java.lang.String catServletName) |
static void |
setCdmrFeatureServiceUrlPath(java.lang.String urlPath) |
static void |
setContext(java.lang.String c) |
abstract void |
update(thredds.inventory.CollectionManager.Force force)
Collection was changed, update internal objects.
|
abstract void |
updateProto()
update the proto dataset being used.
|
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, setXlinkHrefaddAccess, addAccess, addDataset, addDataset, addDocumentation, addProperty, addService, canonicalize, dump, getAccessLocal, getDataSize, getLastModifiedDate, getLocalMetadata, getLocalMetadataInheritable, getNcmlElement, getParentReal, getServiceName, getServicesLocal, main, 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, writeHtmlDescriptionfindAccess, getCatalogUrl, getHistory, getParentCatalog, getProcessing, getRestrictAccess, getRights, getSubsetUrl, getSummary, getTimeCoverage, getVariablesprotected 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 java.lang.String context
protected InvService orgService
protected InvService virtualService
protected InvService cdmrService
protected final java.lang.String path
protected final thredds.featurecollection.FeatureCollectionType fcType
protected final thredds.featurecollection.FeatureCollectionConfig config
protected final java.lang.String topDirectory
protected thredds.inventory.CollectionManager dcm
protected InvDatasetFeatureCollection.State state
protected final java.lang.Object lock
protected java.lang.String latestFileName
protected InvDatasetFeatureCollection(InvDatasetImpl parent, java.lang.String name, java.lang.String path, thredds.featurecollection.FeatureCollectionType fcType, thredds.featurecollection.FeatureCollectionConfig config)
public static void setContext(java.lang.String c)
public static void setCatalogServletName(java.lang.String catServletName)
public static void setCdmrFeatureServiceUrlPath(java.lang.String urlPath)
protected java.lang.String getCatalogHref(java.lang.String what)
public static InvDatasetFeatureCollection factory(InvDatasetImpl parent, java.lang.String name, java.lang.String path, thredds.featurecollection.FeatureCollectionType fcType, thredds.featurecollection.FeatureCollectionConfig config)
protected void finishConstruction()
protected void firstInit()
public void handleCollectionEvent(thredds.inventory.CollectionManager.TriggerEvent event)
handleCollectionEvent in interface thredds.inventory.CollectionManager.TriggerListenerpublic abstract void update(thredds.inventory.CollectionManager.Force force)
force - test : update index if anything changed or nocheck - use index if it existspublic abstract void updateProto()
protected abstract InvDatasetFeatureCollection.State checkState() throws java.io.IOException
java.io.IOException - on read errorpublic java.lang.String getPath()
public java.lang.String getLatestFileName()
public java.lang.String getTopDirectoryLocation()
public thredds.featurecollection.FeatureCollectionConfig getConfig()
public thredds.inventory.CollectionManager getDatasetCollectionManager()
public java.util.List<InvDataset> getDatasets()
InvCatalogRefgetDatasets in class InvCatalogRefprotected InvService makeVirtualService(InvService org)
public abstract InvCatalogImpl makeCatalog(java.lang.String match, java.lang.String orgPath, java.net.URI catURI)
match - match.remainingorgPath - the path for the request.catURI - the base URI for the catalog to be made, used to resolve relative URLs.protected 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 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 InvCatalogImpl makeLatest(java.lang.String matchPath, java.lang.String reqPath, java.net.URI catURI)
public GridDataset getGridDataset(java.lang.String matchPath) throws java.io.IOException
matchPath - match.remainingjava.io.IOException - on errorpublic FeatureDatasetPoint getFeatureDatasetPoint()
public 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)