Package org.jolokia.jvmagent.client.util
Class PlatformUtils
java.lang.Object
org.jolokia.jvmagent.client.util.PlatformUtils
-
Method Summary
Modifier and TypeMethodDescriptioncreateVMAccess(OptionsAndArgs options) static ProcessDescriptionfindProcess(Pattern pPattern, List<ProcessDescription> processes) static StringgetProcessId(VirtualMachineHandlerOperations pHandler, OptionsAndArgs pOpts) Get the process id, either directly from option's ID or by looking up a regular expression for java process name (but not this java process)
-
Method Details
-
createVMAccess
-
findProcess
-
getProcessId
Get the process id, either directly from option's ID or by looking up a regular expression for java process name (but not this java process)- Parameters:
pHandler- platform-specific way to invoke operations on VMpOpts- used to get eithe the process ID (OptionsAndArgs.getPid()or the pattern for matching a process name (OptionsAndArgs.getProcessPattern())- Returns:
- the numeric id as string
- Throws:
IllegalArgumentException- if a pattern is used and no or more than one process name matches.
-