public class EcogridDataCacheItem extends BufferedDataCacheObject
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
mEndPoint |
CACHE_BUSY, CACHE_COMPLETE, CACHE_EMPTY, CACHE_ERROR
_attributes, _lsid, _name, _semanticTypes
Constructor and Description |
---|
EcogridDataCacheItem()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
protected int |
downloadDataFromSource()
This method will download data base on distribution url in entity object
|
int |
doWork()
Abstract method for actually getting the data while in the thread
|
protected java.lang.String |
getAttrsForXML() |
protected int |
getDataItemFromEcoGrid(java.lang.String endPoint,
java.lang.String identifier)
Gets the dataItemFromEcoGrid attribute of the DataCacheObject object
|
java.lang.String |
getEndPoint() |
java.lang.String |
getEntityIdentifier()
Get an entity to describe the data cache
|
boolean |
getIsTarFile()
If this item is a tar file
|
void |
setEndPoint(java.lang.String endPoint) |
void |
setEntityIdentifier(java.lang.String identifier)
Set an entity to describe the data cache
|
void |
setIsTarFile(boolean isTarFile)
Set this item is tar file or not
|
getData, setData
addListener, clear, getAbsoluteFileName, getBaseFileName, getCreatedDate, getDataInputStream, getFile, getObject, getResourceName, getStatus, isBusy, isEmpty, isError, isReady, notifyListeners, refresh, removeAllListeners, removeListener, reset, run, setAbsoluteFileName, setBaseFileName, setCreatedDate, setResourceName, start, stop, toString
addAttribute, getAttribute, getAttributeNames, getLSID, getName, getSemanticTypes, objectAdded, objectPurged, objectRemoved, removeAttribute, setLSID, setName, setSemanticTypes
protected java.lang.String mEndPoint
public EcogridDataCacheItem()
public int doWork()
DataCacheObject
doWork
in class DataCacheObject
protected int downloadDataFromSource()
protected java.lang.String getAttrsForXML()
public java.lang.String getEndPoint()
public void setEndPoint(java.lang.String endPoint)
endPoint
- The mEndPoint to set.public boolean getIsTarFile()
public void setIsTarFile(boolean isTarFile)
isTarFile
- booleanpublic void setEntityIdentifier(java.lang.String identifier)
mEntity
- Entitypublic java.lang.String getEntityIdentifier()
protected int getDataItemFromEcoGrid(java.lang.String endPoint, java.lang.String identifier)
endPoint
- identifier
-