|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.collab.SharableImpl
ucar.unidata.data.DataSourceImpl
ucar.unidata.data.CacheDataSource
public class CacheDataSource
Used to cache a data choice and its data
| Nested Class Summary | |
|---|---|
static class |
CacheDataSource.DataChoiceHolder
Class DataChoiceHolder holds a data chocie and a unique id and a name |
| Field Summary | |
|---|---|
static String |
PROP_DATA
data property |
static String |
PROP_DATACHOICE
datachoice property |
| Fields inherited from class ucar.unidata.data.DataSourceImpl |
|---|
changeDataPathsCbx, dataCacheKey, dataChoices, geoSelectionPanel, haveBeenUnPersisted, okToContinue, PARAM_SHOW_HIDE, PARAM_SHOW_NO, PARAM_SHOW_YES |
| Fields inherited from interface ucar.unidata.data.DataSource |
|---|
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 Summary | |
|---|---|
CacheDataSource()
Default bean constructor; does nothing |
|
CacheDataSource(DataSourceDescriptor descriptor,
String name,
Hashtable properties)
Create a CacheDataSource |
|
| Method Summary | |
|---|---|
protected void |
addActions(List actions)
add menu actions |
void |
addDataChoice(DataChoice dataChoice,
String name,
Data data)
Add a data choice into the list with the given name. |
void |
addDataChoice(DataChoice dataChoice,
String name,
Data data,
DataSelection dataSelection)
add the data choice |
void |
clearCachedData()
clear the cache |
Object |
getCache(Object key)
Get an Object from the cache. |
List |
getDataChoices()
Get the DataChoices. |
protected Data |
getDataInner(DataChoice dataChoice,
DataCategory category,
DataSelection dataSelection,
Hashtable requestProperties)
Actually get the data identified by the given DataChoce. |
List |
getHolders()
Get the Holders property. |
void |
putCache(Object key,
Object value)
Put the cache |
void |
removeCache(Object key)
Remove an Object from the cache. |
void |
setHolders(List value)
Set the Holders property. |
void |
writeIser()
write out the iser file |
| Methods inherited from class ucar.unidata.collab.SharableImpl |
|---|
applySharableProperties, doShare, doShare, doShareExternal, doShareInternal, getSharablePropertiesComponent, getShareGroup, getSharing, getUniqueId, initSharable, receiveShareData, removeSharable, setShareGroup, setSharing, setUniqueId, showSharableDialog |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface ucar.unidata.data.DataSource |
|---|
getUniqueId |
| Field Detail |
|---|
public static final String PROP_DATACHOICE
public static final String PROP_DATA
| Constructor Detail |
|---|
public CacheDataSource()
public CacheDataSource(DataSourceDescriptor descriptor,
String name,
Hashtable properties)
descriptor - the datasource descriptorname - my nameproperties - my properties| Method Detail |
|---|
protected void addActions(List actions)
addActions in class DataSourceImplactions - list of actionspublic void writeIser()
public void addDataChoice(DataChoice dataChoice,
String name,
Data data)
dataChoice - The datachoicename - The namedata - The data to cache
public void addDataChoice(DataChoice dataChoice,
String name,
Data data,
DataSelection dataSelection)
dataChoice - data choicename - namedata - the datadataSelection - data selectionpublic void clearCachedData()
clearCachedData in interface DataSourceclearCachedData in class DataSourceImpl
public void putCache(Object key,
Object value)
putCache in class DataSourceImplkey - keyvalue - valuepublic Object getCache(Object key)
getCache in class DataSourceImplkey - key for the object
nullpublic void removeCache(Object key)
removeCache in class DataSourceImplkey - key for the object
protected Data getDataInner(DataChoice dataChoice,
DataCategory category,
DataSelection dataSelection,
Hashtable requestProperties)
throws VisADException,
RemoteException
DataSourceImpl
getDataInner in class DataSourceImpldataChoice - The data choice that identifies the requested
data.category - The data category of the request.dataSelection - Identifies any subsetting of the data.requestProperties - Hashtable that holds any detailed request
properties.
RemoteException - Java RMI problem
VisADException - VisAD problempublic List getDataChoices()
getDataChoices in interface DataSourcegetDataChoices in class DataSourceImplpublic void setHolders(List value)
value - The new value for Holderspublic List getHolders()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||