diff --git a/bindings/java/src/net/hyperic/sigar/NfsFileSystem.java b/bindings/java/src/net/hyperic/sigar/NfsFileSystem.java index 996af54e..a03bd7f6 100644 --- a/bindings/java/src/net/hyperic/sigar/NfsFileSystem.java +++ b/bindings/java/src/net/hyperic/sigar/NfsFileSystem.java @@ -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]));