}\r
\r
/**\r
- * Runs the specified command using the specified Pazpar2 client\r
- * Sets the Pazpar2 response as an XML response string to be retrieved by\r
- * getResponse().\r
- * \r
- * In case of an exception, an error response is generated, the document\r
- * element being the same as it would have been if successful (named after\r
- * the command, that is). \r
- * \r
+ * Executes the specified command using the specified Pazpar2 client\r
*/\r
- public void run() {\r
- \r
- if (command.getCommandName().equals("search")) {\r
- client.setSearchCommand(command);\r
- }\r
- long start = System.currentTimeMillis();\r
+ public void run() { \r
+ logger.debug(command.getCommandName() + " executing asynchronously");\r
commandResponse = client.executeCommand(command);\r
- long end = System.currentTimeMillis();\r
- logger.debug("Executed " + command.getCommandName() + " in " + (end-start) + " ms." );\r
}\r
\r
/**\r