Lines Matching defs:jcmd
59 * `jcmd`
65 return jcmd();
69 * `jcmd PerfCounter.print`
80 * `jcmd PerfCounter.print | grep {exp}>`
90 for(String l : jcmd(CMD_PRINTPERF).split("\\n")) {
102 * `jcmd <app> ManagementAgent.stop`
108 return jcmd(CMD_STOP);
112 * `jcmd <app> ManagementAgent.start_local`
118 return jcmd(CMD_START_LOCAL);
122 * `jcmd <app> ManagementAgent.start <args>`
133 * `jcmd <pp> ManagementAgent.start <args>`
134 * @param c A string consumer used to inspect the jcmd output line-by-line
144 return jcmd(c, args.toArray(new String[args.size()]));
148 return jcmd(CMD_STATUS);
152 * Run the "jcmd" command
159 private String jcmd(String ... command) throws IOException, InterruptedException {
161 return jcmd(null, c->{});
163 return jcmd(c->{}, command);
168 * Run the "jcmd" command
176 private String jcmd(Consumer<String> c, String ... command) throws IOException, InterruptedException {
177 return jcmd(id, c, command);
181 * Run the "jcmd" command
190 private String jcmd(String target, final Consumer<String> c, String ... command) throws IOException, InterruptedException {
191 dbg_print("[jcmd] " + (command.length > 0 ? command[0] : "list"));
193 JDKToolLauncher l = JDKToolLauncher.createUsingTestJDK("jcmd");
205 "jcmd",
219 dbg_print("[jcmd] --------");