@ThreadSafe public abstract class InvDatasetFeatureCollection extends InvCatalogRef implements CollectionUpdateListener
| Modifier and Type | Class and Description |
|---|---|
protected class |
InvDatasetFeatureCollection.State |
| Modifier and Type | Field and Description |
|---|---|
protected InvService |
cdmrService |
protected FeatureCollectionConfig |
config |
protected String |
configPath |
protected static String |
context |
protected MCollection |
datasetCollection |
protected static String |
Default_Services |
protected static String |
Download_Services |
protected FeatureCollectionType |
fcType |
protected static String |
FILES |
protected boolean |
first |
protected static String |
LATEST_DATASET_CATALOG |
protected static String |
LATEST_SERVICE |
protected Object |
lock |
protected org.slf4j.Logger |
logger |
protected InvService |
orgService |
protected InvDatasetFeatureCollection.State |
state |
protected String |
topDirectory |
protected static String |
VARIABLES |
protected static String |
Virtual_Services |
protected InvService |
virtualService |
log, mark, ncmlElement, tm, tmiaccess, 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,
FeatureCollectionConfig config) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
_showStatus(Formatter f,
boolean summaryOnly,
String type) |
protected static String |
buildCatalogServiceHref(String path) |
protected InvDatasetFeatureCollection.State |
checkState()
A request has come in, check that the state has been initialized.
|
static InvDatasetFeatureCollection |
factory(InvDatasetImpl parent,
FeatureCollectionConfig config) |
protected void |
finishConstruction() |
protected void |
firstInit() |
protected String |
getCatalogHref(String what) |
String |
getCollectionName() |
FeatureCollectionConfig |
getConfig() |
MCollection |
getDatasetCollectionManager() |
List<InvDataset> |
getDatasets() |
abstract FeatureDataset |
getFeatureDataset() |
File |
getFile(String remaining) |
GridDataset |
getGridDataset(String matchPath)
Get the associated Grid Dataset, if any.
|
String |
getLatestFileName() |
org.slf4j.Logger |
getLogger() |
NetcdfDataset |
getNetcdfDataset(String matchPath)
Get the dataset named by the path.
|
String |
getPath() |
String |
getTopDirectoryLocation() |
abstract InvCatalogImpl |
makeCatalog(String match,
String orgPath,
URI catURI)
Get one of the catalogs contained in this collection,
called by DataRootHandler.makeDynamicCatalog()
|
protected InvCatalogImpl |
makeCatalogFiles(URI catURI,
InvDatasetFeatureCollection.State localState,
List<String> filenames,
boolean addLatest) |
protected InvCatalogImpl |
makeCatalogTop(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 InvService |
makeDefaultService() |
protected InvService |
makeDownloadService() |
InvCatalogImpl |
makeLatest(String matchPath,
String reqPath,
URI catURI) |
protected String |
makeMetadataLink(String datasetName,
String metadata) |
protected InvService |
makeServiceVirtual(InvService org) |
void |
sendEvent(CollectionUpdateType type) |
static void |
setCatalogServletName(String catServletName) |
static void |
setCdmrFeatureServiceUrlPath(String urlPath) |
static void |
setContext(String c) |
static void |
setLoggerFactory(LoggerFactory fac) |
void |
showStatus(Formatter f) |
String |
showStatusShort(String type) |
protected void |
update(CollectionUpdateType force)
Collection was changed, update internal objects.
|
protected abstract void |
updateCollection(InvDatasetFeatureCollection.State localState,
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, writeHtmlDescriptionfindAccess, getCatalogUrl, getHistory, getParentCatalog, getProcessing, getRestrictAccess, getRights, getSubsetUrl, getSummary, getTimeCoverage, getVariablesprotected static final String LATEST_DATASET_CATALOG
protected static final String LATEST_SERVICE
protected static final String VARIABLES
protected static final String FILES
protected static final String Virtual_Services
protected static final String Default_Services
protected static final String Download_Services
protected static String context
protected InvService orgService
protected InvService virtualService
protected InvService cdmrService
protected org.slf4j.Logger logger
protected final String configPath
protected final FeatureCollectionType fcType
protected final FeatureCollectionConfig config
protected String topDirectory
protected MCollection datasetCollection
protected InvDatasetFeatureCollection.State state
protected boolean first
protected final Object lock
protected InvDatasetFeatureCollection(InvDatasetImpl parent, FeatureCollectionConfig config)
public static void setContext(String c)
public static void setCatalogServletName(String catServletName)
public static void setCdmrFeatureServiceUrlPath(String urlPath)
public static void setLoggerFactory(LoggerFactory fac)
public static InvDatasetFeatureCollection factory(InvDatasetImpl parent, FeatureCollectionConfig config)
protected void makeCollection()
protected void finishConstruction()
public String getCollectionName()
getCollectionName in interface CollectionUpdateListenerpublic void sendEvent(CollectionUpdateType type)
sendEvent in interface CollectionUpdateListenerpublic void showStatus(Formatter f)
protected void _showStatus(Formatter f, boolean summaryOnly, String type) throws IOException
IOExceptionprotected abstract void updateCollection(InvDatasetFeatureCollection.State localState, CollectionUpdateType force)
protected abstract void makeDatasetTop(InvDatasetFeatureCollection.State localState) throws IOException
IOExceptionprotected void firstInit()
protected InvDatasetFeatureCollection.State checkState() throws IOException
IOExceptionprotected void update(CollectionUpdateType force) throws IOException
force - update typeIOExceptionpublic String getPath()
public String getLatestFileName()
public String getTopDirectoryLocation()
public FeatureCollectionConfig getConfig()
public MCollection getDatasetCollectionManager()
public org.slf4j.Logger getLogger()
public List<InvDataset> getDatasets()
getDatasets in class InvCatalogRefprotected InvService makeDefaultService()
protected InvService makeDownloadService()
protected InvService makeServiceVirtual(InvService org)
public abstract InvCatalogImpl makeCatalog(String match, String orgPath, URI catURI) throws IOException
match - match.remainingorgPath - the path for the request.catURI - the base URI for the catalog to be made, used to resolve relative URLs.IOExceptionprotected InvCatalogImpl makeCatalogTop(URI catURI, InvDatasetFeatureCollection.State localState) throws IOException, URISyntaxException
catURI - base URI of the requestlocalState - current state to useIOException - on I/O errorURISyntaxException - if path is misformedprotected InvCatalogImpl makeCatalogFiles(URI catURI, InvDatasetFeatureCollection.State localState, List<String> filenames, boolean addLatest) throws IOException
IOExceptionpublic InvCatalogImpl makeLatest(String matchPath, String reqPath, URI catURI) throws IOException
IOExceptionpublic GridDataset getGridDataset(String matchPath) throws IOException
matchPath - match.remainingIOException - on errorpublic abstract FeatureDataset getFeatureDataset()
public NetcdfDataset getNetcdfDataset(String matchPath) throws IOException
matchPath - remaining path from matchIOException - if read errorCopyright © 1999-2015 UCAR/Unidata. All Rights Reserved.