hook in windows service extension for testing

This commit is contained in:
Doug MacEachern 2004-08-13 01:41:17 +00:00
parent 4defcaae4c
commit 3f92a2dc5d
1 changed files with 6 additions and 1 deletions

View File

@ -116,6 +116,9 @@ public class ProcessQueryFactory implements Comparator {
if (branch.attr.equals("PidFile")) {
return new PidFileQuery(val);
}
else if (branch.attr.equals("Service")) {
return new WindowsServiceQuery(val);
}
throw new MalformedQueryException("Unsupported method: " +
branch.attr);
@ -146,7 +149,9 @@ public class ProcessQueryFactory implements Comparator {
return pQuery;
}
if (query.startsWith("Pid.PidFile.")) {
if (query.startsWith("Pid.PidFile.") ||
query.startsWith("Pid.Service."))
{
pQuery = getPidInstance(query);
cache.put(query, pQuery);
return pQuery;