NASA World Wind

gov.nasa.worldwind.retrieve
Class LocalRasterServerRetriever

java.lang.Object
  extended by gov.nasa.worldwind.avlist.AVListImpl
      extended by gov.nasa.worldwind.WWObjectImpl
          extended by gov.nasa.worldwind.retrieve.LocalRasterServerRetriever
All Implemented Interfaces:
AVList, MessageListener, Retriever, WWObject, PropertyChangeListener, Callable<Retriever>, EventListener

public class LocalRasterServerRetriever
extends WWObjectImpl
implements Retriever


Field Summary
protected  long beginTime
           
protected  ByteBuffer byteBuffer
           
protected  int contentLength
           
protected  AtomicInteger contentLengthRead
           
protected  long endTime
           
protected  RetrievalPostProcessor postProcessor
           
protected  RasterServer server
           
protected  int staleRequestLimit
           
protected  String state
           
protected  long submitTime
           
 
Fields inherited from interface gov.nasa.worldwind.retrieve.Retriever
RETRIEVER_STATE_CONNECTING, RETRIEVER_STATE_ERROR, RETRIEVER_STATE_INTERRUPTED, RETRIEVER_STATE_NOT_STARTED, RETRIEVER_STATE_READING, RETRIEVER_STATE_STARTED, RETRIEVER_STATE_SUCCESSFUL
 
Constructor Summary
LocalRasterServerRetriever(AVList params, RasterServer rasterServer, RetrievalPostProcessor postProcessor)
           
 
Method Summary
 Retriever call()
           
 long getBeginTime()
           
 ByteBuffer getBuffer()
           
 int getConnectTimeout()
           
 int getContentLength()
           
 int getContentLengthRead()
           
 String getContentType()
           
 long getEndTime()
           
 long getExpirationTime()
          Indicates the expiration time of the resource retrieved by this Retriever.
 String getName()
           
 int getReadTimeout()
           
 RasterServer getServer()
           
 int getStaleRequestLimit()
           
 String getState()
           
 long getSubmitTime()
           
 void setBeginTime(long beginTime)
           
 void setConnectTimeout(int connectTimeout)
           
 void setEndTime(long endTime)
           
 void setReadTimeout(int readTimeout)
           
 void setServer(RasterServer server)
           
 void setStaleRequestLimit(int staleRequestLimit)
           
protected  void setState(String state)
           
 void setSubmitTime(long submitTime)
           
 
Methods inherited from class gov.nasa.worldwind.WWObjectImpl
onMessage, propertyChange
 
Methods inherited from class gov.nasa.worldwind.avlist.AVListImpl
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getBooleanValue, getBooleanValue, getChangeSupport, getDoubleValue, getDoubleValue, getEntries, getIntegerValue, getIntegerValue, getLongValue, getLongValue, getRestorableStateForAVPair, getStringValue, getStringValue, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface gov.nasa.worldwind.avlist.AVList
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
 
Methods inherited from interface java.beans.PropertyChangeListener
propertyChange
 
Methods inherited from interface gov.nasa.worldwind.event.MessageListener
onMessage
 

Field Detail

beginTime

protected long beginTime

byteBuffer

protected ByteBuffer byteBuffer

contentLength

protected volatile int contentLength

contentLengthRead

protected AtomicInteger contentLengthRead

endTime

protected long endTime

postProcessor

protected RetrievalPostProcessor postProcessor

server

protected RasterServer server

staleRequestLimit

protected int staleRequestLimit

state

protected volatile String state

submitTime

protected long submitTime
Constructor Detail

LocalRasterServerRetriever

public LocalRasterServerRetriever(AVList params,
                                  RasterServer rasterServer,
                                  RetrievalPostProcessor postProcessor)
Method Detail

call

public Retriever call()
               throws Exception
Specified by:
call in interface Callable<Retriever>
Throws:
Exception

getBeginTime

public long getBeginTime()
Specified by:
getBeginTime in interface Retriever

getBuffer

public ByteBuffer getBuffer()
Specified by:
getBuffer in interface Retriever

getConnectTimeout

public int getConnectTimeout()
Specified by:
getConnectTimeout in interface Retriever

getContentLength

public int getContentLength()
Specified by:
getContentLength in interface Retriever

getContentLengthRead

public int getContentLengthRead()
Specified by:
getContentLengthRead in interface Retriever

getContentType

public String getContentType()
Specified by:
getContentType in interface Retriever

getEndTime

public long getEndTime()
Specified by:
getEndTime in interface Retriever

getExpirationTime

public long getExpirationTime()
Indicates the expiration time of the resource retrieved by this Retriever.

Specified by:
getExpirationTime in interface Retriever
Returns:
Always returns zero (no expiration).

getName

public String getName()
Specified by:
getName in interface Retriever

getReadTimeout

public int getReadTimeout()
Specified by:
getReadTimeout in interface Retriever

getServer

public RasterServer getServer()

getStaleRequestLimit

public int getStaleRequestLimit()
Specified by:
getStaleRequestLimit in interface Retriever

getState

public String getState()
Specified by:
getState in interface Retriever

getSubmitTime

public long getSubmitTime()
Specified by:
getSubmitTime in interface Retriever

setBeginTime

public void setBeginTime(long beginTime)
Specified by:
setBeginTime in interface Retriever

setConnectTimeout

public void setConnectTimeout(int connectTimeout)
Specified by:
setConnectTimeout in interface Retriever

setEndTime

public void setEndTime(long endTime)
Specified by:
setEndTime in interface Retriever

setReadTimeout

public void setReadTimeout(int readTimeout)
Specified by:
setReadTimeout in interface Retriever

setServer

public void setServer(RasterServer server)

setStaleRequestLimit

public void setStaleRequestLimit(int staleRequestLimit)
Specified by:
setStaleRequestLimit in interface Retriever

setState

protected void setState(String state)

setSubmitTime

public void setSubmitTime(long submitTime)
Specified by:
setSubmitTime in interface Retriever

NASA World Wind