rename find_processes -> find
This commit is contained in:
parent
a6a44e183a
commit
1745dcf5d4
|
@ -1264,7 +1264,7 @@ JNIEXPORT jlong SIGAR_JNI(ptql_SigarProcessQuery_findProcess)
|
|||
return pid;
|
||||
}
|
||||
|
||||
JNIEXPORT jlongArray SIGAR_JNI(ptql_SigarProcessQuery_findProcesses)
|
||||
JNIEXPORT jlongArray SIGAR_JNI(ptql_SigarProcessQuery_find)
|
||||
(JNIEnv *env, jobject obj, jobject sigar_obj)
|
||||
{
|
||||
int status;
|
||||
|
@ -1283,7 +1283,7 @@ JNIEXPORT jlongArray SIGAR_JNI(ptql_SigarProcessQuery_findProcesses)
|
|||
|
||||
re_impl_set(env, sigar, obj, &re);
|
||||
|
||||
status = sigar_ptql_query_find_processes(sigar, query, &proclist);
|
||||
status = sigar_ptql_query_find(sigar, query, &proclist);
|
||||
|
||||
sigar_ptql_re_impl_set(sigar, NULL, NULL);
|
||||
|
||||
|
|
|
@ -73,7 +73,7 @@ public class ProcessFinder {
|
|||
public long[] find(ProcessQuery query)
|
||||
throws SigarException {
|
||||
|
||||
return query.findProcesses(this.sigar);
|
||||
return query.find(this.sigar);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -29,6 +29,6 @@ public interface ProcessQuery {
|
|||
public long findProcess(Sigar sigar)
|
||||
throws SigarException;
|
||||
|
||||
public long[] findProcesses(Sigar sigar)
|
||||
public long[] find(Sigar sigar)
|
||||
throws SigarException;
|
||||
}
|
||||
|
|
|
@ -40,7 +40,7 @@ public class SigarProcessQuery implements ProcessQuery {
|
|||
public native long findProcess(Sigar sigar)
|
||||
throws SigarException;
|
||||
|
||||
public native long[] findProcesses(Sigar sigar)
|
||||
public native long[] find(Sigar sigar)
|
||||
throws SigarException;
|
||||
|
||||
static boolean re(String haystack, String needle) {
|
||||
|
|
|
@ -119,7 +119,7 @@ public class TestPTQL extends SigarTestCase {
|
|||
}
|
||||
|
||||
try {
|
||||
long[] pids = query.findProcesses(sigar);
|
||||
long[] pids = query.find(sigar);
|
||||
|
||||
traceln(pids.length + " processes match: " + qs);
|
||||
|
||||
|
|
|
@ -41,7 +41,7 @@ SIGAR_DECLARE(int) sigar_ptql_query_find_process(sigar_t *sigar,
|
|||
sigar_ptql_query_t *query,
|
||||
sigar_pid_t *pid);
|
||||
|
||||
SIGAR_DECLARE(int) sigar_ptql_query_find_processes(sigar_t *sigar,
|
||||
SIGAR_DECLARE(int) sigar_ptql_query_find(sigar_t *sigar,
|
||||
sigar_ptql_query_t *query,
|
||||
sigar_proc_list_t *proclist);
|
||||
|
||||
|
|
|
@ -1411,7 +1411,7 @@ SIGAR_DECLARE(int) sigar_ptql_query_find_process(sigar_t *sigar,
|
|||
return -1;
|
||||
}
|
||||
|
||||
SIGAR_DECLARE(int) sigar_ptql_query_find_processes(sigar_t *sigar,
|
||||
SIGAR_DECLARE(int) sigar_ptql_query_find(sigar_t *sigar,
|
||||
sigar_ptql_query_t *query,
|
||||
sigar_proc_list_t *proclist)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue