gov.nasa.worldwind.util
Interface NetworkStatus
- All Superinterfaces:
- AVList
- All Known Implementing Classes:
- BasicNetworkStatus
public interface NetworkStatus - extends AVList
| 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 |
HOST_AVAILABLE
static final String HOST_AVAILABLE
- See Also:
- Constant Field Values
HOST_UNAVAILABLE
static final String HOST_UNAVAILABLE
- See Also:
- Constant Field Values
getAttemptLimit
int getAttemptLimit()
getTryAgainInterval
long getTryAgainInterval()
isHostUnavailable
boolean isHostUnavailable(URL url)
isNetworkUnavailable
boolean isNetworkUnavailable()
isOfflineMode
boolean isOfflineMode()
- Indicates whether World Wind will attempt to connect to the network to retrieve data or for other reasons.
- Returns:
true if World Wind is in off-line mode, false if not.
isWorlWindServerUnavailable
boolean isWorlWindServerUnavailable()
logAvailableHost
void logAvailableHost(URL url)
logUnavailableHost
void logUnavailableHost(URL url)
setAttemptLimit
void setAttemptLimit(int limit)
- Set the number of times a host must be logged as unavailable before it is marked unavailable in this class.
- Parameters:
limit - the number of log-unavailability invocations necessary to consider the host unreachable.
- Throws:
IllegalArgumentException - if the limit is less than 1.
setOfflineMode
void setOfflineMode(boolean offlineMode)
- Indicate whether World Wind should attempt to connect to the network to retrieve data or for other reasons.
The default value for this attribute is
false, indicating that the network should be used.
- Parameters:
offlineMode - true if World Wind should use the network, false otherwise
setTryAgainInterval
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.
- Parameters:
interval - The length of time, in milliseconds, to wait to unmark a host as unreachable.
- Throws:
IllegalArgumentException - if the interval is less than 0.
|
|