Removes timing from thread object
[mkjsf-moved-to-github.git] / src / main / java / com / indexdata / mkjsf / pazpar2 / CommandThread.java
index 1225116..78c5652 100644 (file)
@@ -17,24 +17,11 @@ public class CommandThread extends Thread {
   }\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