|
NASA World Wind | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NetworkStatus
Method Summary | |
---|---|
int |
getAttemptLimit()
|
long |
getTryAgainInterval()
|
boolean |
isHostUnavailable(URL url)
|
boolean |
isNetworkUnavailable()
|
boolean |
isOfflineMode()
Indicates whether World Wind will attempt to connect to the network to retrieve data or for other reasons. |
boolean |
isWorlWindServerUnavailable()
|
void |
logAvailableHost(URL url)
|
void |
logUnavailableHost(URL url)
|
void |
setAttemptLimit(int limit)
Set the number of times a host must be logged as unavailable before it is marked unavailable in this class. |
void |
setOfflineMode(boolean offlineMode)
Indicate whether World Wind should attempt to connect to the network to retrieve data or for other reasons. |
void |
setTryAgainInterval(long interval)
Set the length of time to wait until a host is marked as not unreachable subsequent to its being marked unreachable. |
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 |
Method Detail |
---|
int getAttemptLimit()
long getTryAgainInterval()
boolean isHostUnavailable(URL url)
boolean isNetworkUnavailable()
boolean isOfflineMode()
true
if World Wind is in off-line mode, false
if not.boolean isWorlWindServerUnavailable()
void logAvailableHost(URL url)
void logUnavailableHost(URL url)
void setAttemptLimit(int limit)
limit
- the number of log-unavailability invocations necessary to consider the host unreachable.
IllegalArgumentException
- if the limit is less than 1.void setOfflineMode(boolean offlineMode)
false
, indicating that the network should be used.
offlineMode
- true
if World Wind should use the network, false
otherwisevoid setTryAgainInterval(long interval)
interval
- The length of time, in milliseconds, to wait to unmark a host as unreachable.
IllegalArgumentException
- if the interval is less than 0.
|
NASA World Wind | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |