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 long
beginTime
protected java.nio.ByteBuffer
byteBuffer
protected int
contentLength
protected java.util.concurrent.atomic.AtomicInteger
contentLengthRead
protected long
endTime
protected RetrievalPostProcessor
postProcessor
protected RasterServer
server
protected int
staleRequestLimit
protected java.lang.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
Constructors Constructor Description LocalRasterServerRetriever(AVList params, RasterServer rasterServer, RetrievalPostProcessor postProcessor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Retriever
call()
long
getBeginTime()
java.nio.ByteBuffer
getBuffer()
int
getConnectTimeout()
int
getContentLength()
int
getContentLengthRead()
java.lang.String
getContentType()
long
getEndTime()
long
getExpirationTime()
Indicates the expiration time of the resource retrieved by this Retriever.java.lang.String
getName()
int
getReadTimeout()
RasterServer
getServer()
int
getStaleRequestLimit()
java.lang.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(java.lang.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, 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:
getContentLength
in interfaceRetriever
-
getContentLengthRead
public int getContentLengthRead()
- Specified by:
getContentLengthRead
in interfaceRetriever
-
getContentType
public java.lang.String getContentType()
- Specified by:
getContentType
in interfaceRetriever
-
getExpirationTime
public long getExpirationTime()
Indicates the expiration time of the resource retrieved by this Retriever.- Specified by:
getExpirationTime
in interfaceRetriever
- Returns:
- Always returns zero (no expiration).
-
getSubmitTime
public long getSubmitTime()
- Specified by:
getSubmitTime
in interfaceRetriever
-
setSubmitTime
public void setSubmitTime(long submitTime)
- Specified by:
setSubmitTime
in interfaceRetriever
-
getBeginTime
public long getBeginTime()
- Specified by:
getBeginTime
in interfaceRetriever
-
setBeginTime
public void setBeginTime(long beginTime)
- Specified by:
setBeginTime
in interfaceRetriever
-
getEndTime
public long getEndTime()
- Specified by:
getEndTime
in interfaceRetriever
-
setEndTime
public void setEndTime(long endTime)
- Specified by:
setEndTime
in interfaceRetriever
-
getConnectTimeout
public int getConnectTimeout()
- Specified by:
getConnectTimeout
in interfaceRetriever
-
getReadTimeout
public int getReadTimeout()
- Specified by:
getReadTimeout
in interfaceRetriever
-
setReadTimeout
public void setReadTimeout(int readTimeout)
- Specified by:
setReadTimeout
in interfaceRetriever
-
setConnectTimeout
public void setConnectTimeout(int connectTimeout)
- Specified by:
setConnectTimeout
in interfaceRetriever
-
getStaleRequestLimit
public int getStaleRequestLimit()
- Specified by:
getStaleRequestLimit
in interfaceRetriever
-
setStaleRequestLimit
public void setStaleRequestLimit(int staleRequestLimit)
- Specified by:
setStaleRequestLimit
in interfaceRetriever
-
call
public Retriever call() throws java.lang.Exception
- Specified by:
call
in interfacejava.util.concurrent.Callable<Retriever>
- Throws:
java.lang.Exception
-
setState
protected void setState(java.lang.String state)
-
-