Package edu.wisc.ssec.mcidasv.data.hrit
Class HRITDataSource
java.lang.Object
ucar.unidata.collab.SharableImpl
ucar.unidata.data.DataSourceImpl
edu.wisc.ssec.mcidasv.data.hrit.HRITDataSource
- All Implemented Interfaces:
Sharable,DataSource,DataSourceFactory,XmlPersistable
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ListList of sources filesprivate Listprivate static intprivate static final Stringprivate static final org.slf4j.Loggerprivate Listchildren choicesprotected Stringfor unpersistencestatic Stringprotected ListList of sources filesFields inherited from class ucar.unidata.data.DataSourceImpl
changeDataPathsCbx, dataCacheKey, dataChoices, geoSelectionPanel, haveBeenUnPersisted, okToContinue, PARAM_SHOW_HIDE, PARAM_SHOW_NO, PARAM_SHOW_YESFields inherited from interface ucar.unidata.data.DataSource
DATAPATH_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_TIMESTRIDE, PROP_TITLE -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorHRITDataSource(DataSourceDescriptor descriptor, String fileName, Hashtable properties) Construct a new HRIT data source.HRITDataSource(DataSourceDescriptor descriptor, List newSources, String description, Hashtable properties) Create a HRITDataSourceHRITDataSource(DataSourceDescriptor descriptor, List newSources, Hashtable properties) Construct a new HRIT data source. -
Method Summary
Modifier and TypeMethodDescriptionbooleanCan this data source save its data to local diskvoidThis is called when the CacheManager detects the need ot clear memory.private DataChoicedoMakeDataChoice(int idx, String var) voidMake and insert theDataChoicesfor thisDataSource.protected ListCreate the list of times associated with this DataSource.protected ListCreate, if needed, and return the list of adapters.protected DatagetDataInner(DataChoice dataChoice, DataCategory category, DataSelection dataparams, Hashtable requestProperties) Get the data for the given DataChoice and selection criteria.protected voidinitDataSelectionComponents(List<DataSelectionComponent> components, DataChoice dataChoice) Add any data selection componentsprotected booleanAre we getting data from a file or from serverprivate voidmakeAdapters(List files) Make the adapters for the given list of filesMethods inherited from class ucar.unidata.data.DataSourceImpl
addActions, addDataChangeListener, addDataChoice, addPropertiesTabs, addReloadTab, applyFieldMask, applyProperties, beginWritingDataToLocalDisk, canAddCurrentName, canCacheDataToDisk, canChangeData, canDoAllLevels, canDoFieldMask, canDoGeoSelection, canDoGeoSelectionMap, canDoGeoSelectionStride, canPoll, canShowParameter, checkForInitAfterUnPersistence, clearFileCache, clearTimes, convertSourceFile, convertToFilesIfDirectory, createAutoDisplay, createCacheKey, createElement, decrOutstandingGetDataCalls, doDirectory, 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, 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, writeFieldMaskFileMethods inherited from class ucar.unidata.collab.SharableImpl
applySharableProperties, doShare, doShare, doShareExternal, doShareInternal, getReceiveShareTime, getSharablePropertiesComponent, getShareGroup, getSharing, getUniqueId, initSharable, receiveShareData, removeSharable, setReceiveShareTime, setShareGroup, setSharing, setUniqueId, showSharableDialogMethods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ucar.unidata.data.DataSource
getUniqueId
-
Field Details
-
logger
-
sources
List of sources files -
request
-
adapters
List of sources files -
categories
-
oldSourceFromBundles
for unpersistence -
DATA_DESCRIPTION
- See Also:
-
counter
-
myDataChoices
children choices
-
-
Constructor Details
-
HRITDataSource
public HRITDataSource()Default constructor -
HRITDataSource
public HRITDataSource(DataSourceDescriptor descriptor, String fileName, Hashtable properties) throws VisADException Construct a new HRIT data source.- Parameters:
descriptor- descriptor for thisDataSourcefileName- name of the HRIT segment file to readproperties- hashtable of properties- Throws:
VisADException- problem creating data
-
HRITDataSource
public HRITDataSource(DataSourceDescriptor descriptor, List newSources, Hashtable properties) throws VisADException Construct a new HRIT data source.- Parameters:
descriptor- descriptor for thisDataSourcenewSources- List of filenamesproperties- hashtable of properties- Throws:
VisADException- problem creating data
-
HRITDataSource
public HRITDataSource(DataSourceDescriptor descriptor, List newSources, String description, Hashtable properties) throws VisADException Create a HRITDataSource- Parameters:
descriptor- The datasource descriptornewSources- List of files or urlsdescription- The long nameproperties- properties- Throws:
VisADException- couldn't create the data
-
-
Method Details
-
canSaveDataToLocalDisk
Can this data source save its data to local disk- Specified by:
canSaveDataToLocalDiskin interfaceDataSource- Overrides:
canSaveDataToLocalDiskin classDataSourceImpl- Returns:
- can save to local disk
-
isFileBased
Are we getting data from a file or from server- Returns:
- is the data from files
-
clearCachedData
This is called when the CacheManager detects the need ot clear memory. It is intended to be overwritten by derived classes that are holding cached data that is not in the normal putCache facilities provided by this class since that data is actually managed by the CacheManager- Specified by:
clearCachedDatain interfaceDataSource- Overrides:
clearCachedDatain classDataSourceImpl
-
doMakeDataChoices
Make and insert theDataChoicesfor thisDataSource.- Overrides:
doMakeDataChoicesin classDataSourceImpl
-
doMakeDataChoice
- Throws:
Exception
-
getAdapters
Create, if needed, and return the list of adapters. Will return null if there are no valid adapters.- Returns:
- List of adapters or null
-
makeAdapters
Make the adapters for the given list of files- Parameters:
files- Data files- Throws:
Exception- When bad things happen
-
doMakeDateTimes
Create the list of times associated with this DataSource.- Overrides:
doMakeDateTimesin classDataSourceImpl- Returns:
- list of times.
-
getDataInner
protected Data getDataInner(DataChoice dataChoice, DataCategory category, DataSelection dataparams, Hashtable requestProperties) throws VisADException, RemoteException Get the data for the given DataChoice and selection criteria.- Overrides:
getDataInnerin classDataSourceImpl- Parameters:
dataChoice- DataChoice for selectioncategory- DataCategory for the DataChoice (not used)dataparams- Resolution criteria.requestProperties- extra request properties- Returns:
- the Data object for the request
- Throws:
RemoteException- couldn't create a remote data objectVisADException- couldn't create the data
-
initDataSelectionComponents
protected void initDataSelectionComponents(List<DataSelectionComponent> components, DataChoice dataChoice) Description copied from class:ucar.unidata.data.DataSourceImplAdd any data selection components- Overrides:
initDataSelectionComponentsin classDataSourceImpl- Parameters:
components- list of componentsdataChoice- the data choice
-