exception helpers
This commit is contained in:
parent
f4c20803c6
commit
32282980ab
|
@ -33,6 +33,14 @@ public class NfsFileSystem extends FileSystem {
|
||||||
return ping(getHostname());
|
return ping(getHostname());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getUnreachableMessage() {
|
||||||
|
return getDevName() + " nfs server unreachable";
|
||||||
|
}
|
||||||
|
|
||||||
|
public NfsUnreachableException getUnreachableException() {
|
||||||
|
return new NfsUnreachableException(getUnreachableMessage());
|
||||||
|
}
|
||||||
|
|
||||||
public static void main(String[] args) throws Exception {
|
public static void main(String[] args) throws Exception {
|
||||||
Sigar.load();
|
Sigar.load();
|
||||||
System.out.println(NfsFileSystem.ping(args[0]));
|
System.out.println(NfsFileSystem.ping(args[0]));
|
||||||
|
|
Loading…
Reference in New Issue