Package gov.nasa.worldwind.retrieve
Class LocalRasterServerRetriever
- java.lang.Object
-
- gov.nasa.worldwind.avlist.AVListImpl
-
- gov.nasa.worldwind.WWObjectImpl
-
- gov.nasa.worldwind.retrieve.LocalRasterServerRetriever
-
- All Implemented Interfaces:
AVList,MessageListener,Retriever,WWObject,java.beans.PropertyChangeListener,java.util.concurrent.Callable<Retriever>,java.util.EventListener
public class LocalRasterServerRetriever extends WWObjectImpl implements Retriever
-
-
Field Summary
Fields Modifier and Type Field Description protected longbeginTimeprotected java.nio.ByteBufferbyteBufferprotected intcontentLengthprotected java.util.concurrent.atomic.AtomicIntegercontentLengthReadprotected longendTimeprotected RetrievalPostProcessorpostProcessorprotected RasterServerserverprotected intstaleRequestLimitprotected java.lang.Stringstateprotected longsubmitTime-
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
Constructors Constructor Description LocalRasterServerRetriever(AVList params, RasterServer rasterServer, RetrievalPostProcessor postProcessor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Retrievercall()longgetBeginTime()java.nio.ByteBuffergetBuffer()intgetConnectTimeout()intgetContentLength()intgetContentLengthRead()java.lang.StringgetContentType()longgetEndTime()longgetExpirationTime()Indicates the expiration time of the resource retrieved by this Retriever.java.lang.StringgetName()intgetReadTimeout()RasterServergetServer()intgetStaleRequestLimit()java.lang.StringgetState()longgetSubmitTime()voidsetBeginTime(long beginTime)voidsetConnectTimeout(int connectTimeout)voidsetEndTime(long endTime)voidsetReadTimeout(int readTimeout)voidsetServer(RasterServer server)voidsetStaleRequestLimit(int staleRequestLimit)protected voidsetState(java.lang.String state)voidsetSubmitTime(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, 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 gov.nasa.worldwind.event.MessageListener
onMessage
-
-
-
-
Field Detail
-
postProcessor
protected RetrievalPostProcessor postProcessor
-
server
protected RasterServer server
-
state
protected volatile java.lang.String state
-
contentLength
protected volatile int contentLength
-
contentLengthRead
protected java.util.concurrent.atomic.AtomicInteger contentLengthRead
-
byteBuffer
protected java.nio.ByteBuffer byteBuffer
-
staleRequestLimit
protected int staleRequestLimit
-
submitTime
protected long submitTime
-
beginTime
protected long beginTime
-
endTime
protected long endTime
-
-
Constructor Detail
-
LocalRasterServerRetriever
public LocalRasterServerRetriever(AVList params, RasterServer rasterServer, RetrievalPostProcessor postProcessor)
-
-
Method Detail
-
getServer
public RasterServer getServer()
-
setServer
public void setServer(RasterServer server)
-
getContentLength
public int getContentLength()
- Specified by:
getContentLengthin interfaceRetriever
-
getContentLengthRead
public int getContentLengthRead()
- Specified by:
getContentLengthReadin interfaceRetriever
-
getContentType
public java.lang.String getContentType()
- Specified by:
getContentTypein interfaceRetriever
-
getExpirationTime
public long getExpirationTime()
Indicates the expiration time of the resource retrieved by this Retriever.- Specified by:
getExpirationTimein interfaceRetriever- Returns:
- Always returns zero (no expiration).
-
getSubmitTime
public long getSubmitTime()
- Specified by:
getSubmitTimein interfaceRetriever
-
setSubmitTime
public void setSubmitTime(long submitTime)
- Specified by:
setSubmitTimein interfaceRetriever
-
getBeginTime
public long getBeginTime()
- Specified by:
getBeginTimein interfaceRetriever
-
setBeginTime
public void setBeginTime(long beginTime)
- Specified by:
setBeginTimein interfaceRetriever
-
getEndTime
public long getEndTime()
- Specified by:
getEndTimein interfaceRetriever
-
setEndTime
public void setEndTime(long endTime)
- Specified by:
setEndTimein interfaceRetriever
-
getConnectTimeout
public int getConnectTimeout()
- Specified by:
getConnectTimeoutin interfaceRetriever
-
getReadTimeout
public int getReadTimeout()
- Specified by:
getReadTimeoutin interfaceRetriever
-
setReadTimeout
public void setReadTimeout(int readTimeout)
- Specified by:
setReadTimeoutin interfaceRetriever
-
setConnectTimeout
public void setConnectTimeout(int connectTimeout)
- Specified by:
setConnectTimeoutin interfaceRetriever
-
getStaleRequestLimit
public int getStaleRequestLimit()
- Specified by:
getStaleRequestLimitin interfaceRetriever
-
setStaleRequestLimit
public void setStaleRequestLimit(int staleRequestLimit)
- Specified by:
setStaleRequestLimitin interfaceRetriever
-
call
public Retriever call() throws java.lang.Exception
- Specified by:
callin interfacejava.util.concurrent.Callable<Retriever>- Throws:
java.lang.Exception
-
setState
protected void setState(java.lang.String state)
-
-