コード例 #1
0
 @Override
 public void execute() {
   receiver.connect();
   receiver.shutdown(); // because this command is for testing shutdown,
   receiver.disconnect();
   System.out.println();
 }
コード例 #2
0
 @Override
 public void undo() {
   System.out.println("Undoing...");
   receiver.connect();
   receiver.reboot();
   receiver.disconnect();
   System.out.println();
 }