Home | History | Annotate | Download | only in jdwp

Lines Matching refs:command

52      * - begCommandIdForTrace defines starting command ID for trace
53 * (the first command has ID=1, the second - ID=2 and so on).
55 * - commandsNumberForTrace defines number of command for trace.
187 * Internal class to synchronize jdwp commands. It sends command packets
205 // set first command id to 1
210 * Gets the next new id for a command.
231 // obtain the current command id
234 // obtain the current command packet by command id
235 CommandPacket command = commands.remove(Id);
236 if (command == null) {
238 // command
240 "Reply id is corresponded to no command. Id = "
244 synchronized (command) {
251 command.notifyAll();
257 * Sends command and waits for the reply during timeout.
259 * @param command
268 public ReplyPacket waitForReply(CommandPacket command, long timeout)
271 synchronized (command) {
277 // obtain new command id
279 command.setId(Id.intValue());
281 // add command into commands hashtable
283 commands.put(Id, command);
292 .println(">>>>>>>>>> PacketDispatcher: PERFORM command: ID = "
295 + command.getCommandSet()
296 + "; Command = "
297 + command.getCommand() + "...");
303 connection.writePacket(command.toBytesArray());
311 command.wait(timeout);
334 * Sends command without waiting for the reply and returns id of the
335 * sent command.
337 * @param command
339 * @return command id
342 public int sendCommand(CommandPacket command) throws IOException {
348 // obtain new command id
350 command.setId(Id.intValue());
352 // add command into commands hashtable
354 commands.put(Id, command);
363 .println(">>>>>>>>>> PacketDispatcher: PERFORM command: ID = "
366 + command.getCommandSet()
367 + "; Command = "
368 + command.getCommand() + "...");
374 connection.writePacket(command.toBytesArray());
387 * Receives the reply during timeout for command with specified command
437 for (CommandPacket command : commands.values()) {
438 synchronized (command) {
440 command.notifyAll();
640 * Sends JDWP command packet and waits for reply packet during default
652 public ReplyPacket performCommand(CommandPacket command)
655 return performCommand(command, config.getTimeout());
659 * Sends JDWP command packet and waits for reply packet during certain
663 * @param command
664 * command packet to send
675 public ReplyPacket performCommand(CommandPacket command, long timeout)
678 return commandsSynchronyzer.waitForReply(command, timeout);
684 * command's performing into two actions: command's sending and receiving
687 * sent command. It is NOT recommended to use this method for usual cases -
690 * @param command
691 * Command packet to be sent
692 * @return command ID of sent command
696 public int sendCommand(CommandPacket command) throws IOException {
697 return commandsSynchronyzer.sendCommand(command);
701 * Waits for reply for command which was sent before by 'sendCommand()'
704 * is need to divide command's performing into two actions: command's
710 * Command ID of sent before command, reply from which is