public class HydraDataSource extends ucar.unidata.data.DataSourceImpl
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List |
adapters
List of sources files
|
protected java.lang.String |
oldSourceFromBundles
for unpersistence
|
static java.lang.String |
request |
protected java.util.List |
sources
List of sources files
|
changeDataPathsCbx, dataCacheKey, dataChoices, geoSelectionPanel, haveBeenUnPersisted, okToContinue, PARAM_SHOW_HIDE, PARAM_SHOW_NO, PARAM_SHOW_YESDATAPATH_DATE_FORMAT, DATAPATH_DATE_PATTERN, MOST_RECENT, ordinalNames, PROP_AUTOCREATEDISPLAY, PROP_BASEDIRECTORY, PROP_CACHEABLE, PROP_DATACHOICENAME, PROP_DISPLAYPROPERTIES, PROP_DOCUMENTLINKS, PROP_FILEPATTERN, PROP_GEOLOCATION, PROP_ICON, PROP_NAME, PROP_POLLINFO, PROP_RESOLVERURL, PROP_SERVICE_HTTP, PROP_SUBPROPERTIES, PROP_TIMELABELS, PROP_TITLE| Constructor and Description |
|---|
HydraDataSource()
Default constructor
|
HydraDataSource(ucar.unidata.data.DataSourceDescriptor descriptor,
java.util.List newSources,
java.lang.String description,
java.util.Hashtable properties)
Create a HydraDataSource
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPropertiesTabs(javax.swing.JTabbedPane tabbedPane) |
boolean |
canSaveDataToLocalDisk()
Can this data source save its dat to local disk
|
void |
clearCachedData()
This is called when the CacheManager detects the need ot clear memory.
|
protected java.util.List |
doMakeDateTimes()
Create the list of times associated with this DataSource.
|
protected java.util.List |
getAdapters()
Create, if needed, and return the list of adapters.
|
protected Data |
getDataInner(ucar.unidata.data.DataChoice dataChoice,
ucar.unidata.data.DataCategory category,
ucar.unidata.data.DataSelection subset,
java.util.Hashtable requestProperties)
Get the data for the given DataChoice and selection criteria.
|
protected boolean |
isFileBased()
Are we getting data from a file or from server
|
private void |
makeAdapters(java.util.List files)
Make the adapters for the given list of files
|
addActions, addDataChangeListener, addDataChoice, addReloadTab, applyFieldMask, applyProperties, beginWritingDataToLocalDisk, canAddCurrentName, canCacheDataToDisk, canChangeData, canDoAllLevels, canDoFieldMask, canDoGeoSelection, canDoGeoSelectionMap, canDoGeoSelectionStride, canPoll, canShowParameter, checkForInitAfterUnPersistence, clearFileCache, clearTimes, convertSourceFile, convertToFilesIfDirectory, createAutoDisplay, createCacheKey, createElement, decrOutstandingGetDataCalls, doDirectory, doMakeDataChoices, doMakeGeoSelectionPanel, doMakeGeoSelectionPanel, doMakeGeoSelectionPanel, doMakeGeoSubsetPropertiesComponent, doRemove, endWritingDataToLocalDisk, equals, expandIfNeeded, findDataChoice, findDataChoices, flushCache, getAbsoluteDateTimes, getActions, getAlias, getAllDateTimes, getAllDateTimes, getAllLevels, getAllLevels, getAllTimesForTimeDriver, getCache, getCache, getCacheClearDelay, getCacheDataToDisk, getCompositeDataChoices, getData, getData, getDataCachePath, getDataChangeListeners, getDataChoices, getDataContext, getDataInner, getDataIsEditable, getDataPaths, getDataPrefix, getDataSelection, getDataSelectionComponents, getDataSource, getDateTimes, getDateTimeSelection, getDefaultSave, getDescription, getDescriptor, getErrorMessage, getEverChangedName, getExtraGeoSelectionComponent, getExtraTimesComponent, getFileFilterForPolling, getFullDescription, getid, getIdv, getInError, getLocalDirectory, getLocationForPolling, getLocationsForPolling, getMostRecentFiles, getName, getNameForDataSource, getNeedToShowErrorToUser, getNextId, getOutstandingGetDataCalls, getPartialDescription, getPassword, getPathsThatCanBeRelative, getPollingInfo, getProperties, getPropertiesComponents, getPropertiesHeader, getProperty, getProperty, getProperty, getProperty, getProperty, getProperty, getProperty, getRelativePaths, getSampleDataProjection, getSaveDataFileLabel, getSelectedDateTimes, getSelectedDateTimes, getTimesFromDataSelection, getTmpPaths, getTypeName, getUserName, handlePropertiesAction, hasPollingInfo, holdsDateTimes, holdsIndices, identifiedBy, identifiedByName, incrOutstandingGetDataCalls, initAfter, initAfterCreation, initAfterUnpersistence, initDataChoice, initDataSelectionComponents, initFromXml, isPolling, loadFieldMask, loadFieldMask, loadLatestFile, logException, logException, makeDerivedDataChoices, makeSaveLocalActions, newFileFromPolling, newFilesFromPolling, notifyDataChange, propertiesChanged, putCache, putCache, reloadData, reloadData, reloadProperties, removeCache, removeDataChangeListener, removeDataChoice, removeProperty, replaceDataChoice, resetTmpState, saveDataToLocalDisk, saveDataToLocalDisk, saveDataToLocalDisk, selectTimesFromList, setAlias, setAskToUpdate, setCacheClearDelay, setCacheDataToDisk, setDataEditableStrings, setDataIsEditable, setDataIsRelative, setDataRelativeStrings, setDataSelection, setDateTimeSelection, setDefaultSave, setDescription, setDescriptor, setDirectory, setEverChangedName, setInError, setInError, setInError, setName, setNewFiles, setObjectProperties, setObjectProperty, setPassword, setPollingInfo, setPollLocation, setProperties, setProperty, setProperty, setRelativePaths, setTemplateName, setTmpPaths, setUserName, shouldCache, shouldCache, showPasswordDialog, showPropertiesDialog, showPropertiesDialog, showPropertiesDialog, showWaitDialog, tick, toString, toStringTruncated, updateDetailsText, updateState, writeFieldMaskFile, writeFieldMaskFileapplySharableProperties, doShare, doShare, doShareExternal, doShareInternal, getReceiveShareTime, getSharablePropertiesComponent, getShareGroup, getSharing, getUniqueId, initSharable, receiveShareData, removeSharable, setReceiveShareTime, setShareGroup, setSharing, setUniqueId, showSharableDialogprotected java.util.List sources
public static java.lang.String request
protected java.util.List adapters
protected java.lang.String oldSourceFromBundles
public HydraDataSource()
public HydraDataSource(ucar.unidata.data.DataSourceDescriptor descriptor, java.util.List newSources, java.lang.String description, java.util.Hashtable properties) throws VisADException
descriptor - The datasource descriptornewSources - List of files or urlsdescription - The long nameproperties - propertiesVisADException - couldn't create the datapublic boolean canSaveDataToLocalDisk()
canSaveDataToLocalDisk in interface ucar.unidata.data.DataSourcecanSaveDataToLocalDisk in class ucar.unidata.data.DataSourceImplprotected boolean isFileBased()
public void clearCachedData()
clearCachedData in interface ucar.unidata.data.DataSourceclearCachedData in class ucar.unidata.data.DataSourceImplprotected java.util.List getAdapters()
private void makeAdapters(java.util.List files) throws java.lang.Exception
files - Data filesjava.lang.Exception - When bad things happenprotected java.util.List doMakeDateTimes()
doMakeDateTimes in class ucar.unidata.data.DataSourceImplprotected Data getDataInner(ucar.unidata.data.DataChoice dataChoice, ucar.unidata.data.DataCategory category, ucar.unidata.data.DataSelection subset, java.util.Hashtable requestProperties) throws VisADException, java.rmi.RemoteException
getDataInner in class ucar.unidata.data.DataSourceImpldataChoice - DataChoice for selectioncategory - DataCategory for the DataChoice (not used)subset - subsetting criteriarequestProperties - extra request propertiesjava.rmi.RemoteException - couldn't create a remote data objectVisADException - couldn't create the datapublic void addPropertiesTabs(javax.swing.JTabbedPane tabbedPane)
addPropertiesTabs in class ucar.unidata.data.DataSourceImpl