exception helpers

This commit is contained in:
Doug MacEachern 2005-03-15 18:45:02 +00:00
parent f4c20803c6
commit 32282980ab
1 changed files with 8 additions and 0 deletions

View File

@ -33,6 +33,14 @@ public class NfsFileSystem extends FileSystem {
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 {
Sigar.load();
System.out.println(NfsFileSystem.ping(args[0]));