X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fcom%2Findexdata%2Fmkjsf%2Fpazpar2%2FCommandThread.java;h=10a0adcd3e2165162589bbfc01ef685a37132991;hb=024ae722c80df92fd14b2a82f0c63004776aee02;hp=12251162cf813ec88c2e4ca97f76a7d4b30b0f12;hpb=980d3604794a7135590c02beb9420dc8931e703c;p=mkjsf-moved-to-github.git diff --git a/src/main/java/com/indexdata/mkjsf/pazpar2/CommandThread.java b/src/main/java/com/indexdata/mkjsf/pazpar2/CommandThread.java index 1225116..10a0adc 100644 --- a/src/main/java/com/indexdata/mkjsf/pazpar2/CommandThread.java +++ b/src/main/java/com/indexdata/mkjsf/pazpar2/CommandThread.java @@ -17,20 +17,9 @@ public class CommandThread extends Thread { } /** - * Runs the specified command using the specified Pazpar2 client - * Sets the Pazpar2 response as an XML response string to be retrieved by - * getResponse(). - * - * In case of an exception, an error response is generated, the document - * element being the same as it would have been if successful (named after - * the command, that is). - * + * Executes the specified command using the specified Pazpar2 client */ - public void run() { - - if (command.getCommandName().equals("search")) { - client.setSearchCommand(command); - } + public void run() { long start = System.currentTimeMillis(); commandResponse = client.executeCommand(command); long end = System.currentTimeMillis();