replace nfs_ping with generic rpc_ping

This commit is contained in:
Doug MacEachern committed 2006-02-26 23:31:07 +00:00
1 parent 58435e27ab
commit b3fda3e6c1
6 files changed
+39 -10

No files matched your search

+6 -3
View File
@@ -410,8 +410,9 @@ JNIEXPORT jobjectArray SIGAR_JNI(Sigar_getFileSystemListNative)
return fsarray;
}
JNIEXPORT jboolean SIGAR_JNI(NfsFileSystem_ping)
(JNIEnv *env, jclass cls_obj, jstring jhostname)
JNIEXPORT jboolean SIGAR_JNI(RPC_ping)
(JNIEnv *env, jclass cls_obj, jstring jhostname,
jint protocol, jlong program, jlong version)
{
#ifdef WIN32
return JNI_FALSE; /*XXX*/
@@ -426,7 +427,9 @@ JNIEXPORT jboolean SIGAR_JNI(NfsFileSystem_ping)
hostname = JENV->GetStringUTFChars(env, jhostname, &is_copy);
retval = (sigar_nfs_ping((char *)hostname) == SIGAR_OK);
retval =
(sigar_rpc_ping((char *)hostname,
protocol, program, version) == SIGAR_OK);
if (is_copy) {
JENV->ReleaseStringUTFChars(env, jhostname, hostname);