public class NetworkChecker extends Object
Constructor and Description |
---|
NetworkChecker(String address,
Logger logger)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isAvailable()
Checks the network is available or not.
|
boolean |
isNetworkup(boolean useCachedValue)
Returns
true if the network is still up, otherwise throws an
UnknownHostException . |
public boolean isNetworkup(boolean useCachedValue) throws Exception
true
if the network is still up, otherwise throws an
UnknownHostException
. This tests if the adapter is ready.useCachedValue
- Pass true
if we use the cached value,
false
otherwise.Exception
- Thrown if the network is down.
Version: 5.3.3-ice35-b63
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.