hook in windows service extension for testing
This commit is contained in:
parent
4defcaae4c
commit
3f92a2dc5d
|
@ -116,6 +116,9 @@ public class ProcessQueryFactory implements Comparator {
|
||||||
if (branch.attr.equals("PidFile")) {
|
if (branch.attr.equals("PidFile")) {
|
||||||
return new PidFileQuery(val);
|
return new PidFileQuery(val);
|
||||||
}
|
}
|
||||||
|
else if (branch.attr.equals("Service")) {
|
||||||
|
return new WindowsServiceQuery(val);
|
||||||
|
}
|
||||||
|
|
||||||
throw new MalformedQueryException("Unsupported method: " +
|
throw new MalformedQueryException("Unsupported method: " +
|
||||||
branch.attr);
|
branch.attr);
|
||||||
|
@ -146,7 +149,9 @@ public class ProcessQueryFactory implements Comparator {
|
||||||
return pQuery;
|
return pQuery;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (query.startsWith("Pid.PidFile.")) {
|
if (query.startsWith("Pid.PidFile.") ||
|
||||||
|
query.startsWith("Pid.Service."))
|
||||||
|
{
|
||||||
pQuery = getPidInstance(query);
|
pQuery = getPidInstance(query);
|
||||||
cache.put(query, pQuery);
|
cache.put(query, pQuery);
|
||||||
return pQuery;
|
return pQuery;
|
||||||
|
|
Loading…
Reference in New Issue