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.4.0-ice35-b74
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.