|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface NetworkStatus
| Field Summary | |
|---|---|
static java.lang.String |
HOST_AVAILABLE
|
static java.lang.String |
HOST_UNAVAILABLE
|
| Method Summary | |
|---|---|
int |
getAttemptLimit()
|
java.util.List<java.lang.String> |
getNetworkTestSites()
Returns the server domain names of the sites used to test public network availability. |
long |
getTryAgainInterval()
|
boolean |
isHostUnavailable(java.net.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(java.net.URL url)
|
void |
logUnavailableHost(java.net.URL url)
|
void |
setAttemptLimit(int limit)
Sets the number of times a host must be logged as unavailable before it is marked unavailable in this class. |
void |
setNetworkTestSites(java.util.List<java.lang.String> networkTestSites)
Sets the domain names, e.g., worldwind.arc.nasa.gov, of sites used to determine public network availability. |
void |
setOfflineMode(boolean offlineMode)
Indicates whether World Wind should attempt to connect to the network to retrieve data or for other reasons. |
void |
setTryAgainInterval(long interval)
Sets 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 |
| Field Detail |
|---|
static final java.lang.String HOST_AVAILABLE
static final java.lang.String HOST_UNAVAILABLE
| Method Detail |
|---|
int getAttemptLimit()
java.util.List<java.lang.String> getNetworkTestSites()
long getTryAgainInterval()
boolean isHostUnavailable(java.net.URL url)
boolean isNetworkUnavailable()
boolean isOfflineMode()
true if World Wind is in off-line mode, false if not.boolean isWorlWindServerUnavailable()
void logAvailableHost(java.net.URL url)
void logUnavailableHost(java.net.URL url)
void setAttemptLimit(int limit)
limit - the number of log-unavailability invocations necessary to consider the host unreachable.
java.lang.IllegalArgumentException - if the limit is less than 1.void setNetworkTestSites(java.util.List<java.lang.String> networkTestSites)
networkTestSites - the list of desired test sites. The list is copied internally, so changes made to
the submitted list do not affect instances of this class.
java.lang.IllegalArgumentException - if the test site list is null.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.
java.lang.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 | ||||||||