Commits

dloy committed bc52eee

Test multithread

  • Participants
  • Parent commits c2539d0

Comments (0)

Files changed (3)

File fixity-src/src/main/java/org/cdlib/mrt/fixity/action/ProcessFixityEntry.java

 import org.cdlib.mrt.core.MessageDigest;
 import org.cdlib.mrt.utility.PropertiesUtil;
 import org.cdlib.mrt.utility.LoggerInf;
+import org.cdlib.mrt.utility.StringUtil;
 import org.cdlib.mrt.utility.TException;
 import org.cdlib.mrt.utility.TimerUtil;
 
     @Override
     public void run()
     {
+        logger.logMessage(MESSAGE
+                + " - cmdType=" + cmdType
+                + " - url=" + entry.getUrl()
+                , 10, true);
         switch(cmdType) {
             case add: 
                 TimerUtil.start(logger, "runAdd");
                 ;
         if (DEBUG) exception.printStackTrace();
         logger.logError(msg, 2);
+        logger.logError(StringUtil.stackTrace(exception), 5);
         try {
             if (connection != null) connection.rollback();
         } catch (Exception cex) {

File fixity-src/src/main/java/org/cdlib/mrt/fixity/app/jersey/fixity/JerseyFixity.java

     @Path("update")
     @Consumes(MediaType.MULTIPART_FORM_DATA)
     public Response callUpdate(
+            @DefaultValue("") @FormDataParam("itemkey") String itemKeyS,
             @DefaultValue("") @FormDataParam("url") String url,
             @DefaultValue("") @FormDataParam("source") String source,
             @DefaultValue("") @FormDataParam("size") String sizeS,
         throws TException
     {
         if (DEBUG) System.out.println(MESSAGE + "callTest entered"
+                    + " - itemKey=" + itemKeyS + NL
                     + " - url=" + url + NL
                     + " - source=" + source + NL
                     + " - size=" + sizeS
                     + " - formatType=" + formatType + NL
                     );
         FixityEntry entry = new FixityEntry();
+        entry.setItemKey(itemKeyS);
         entry.setUrl(url);
         entry.setSource(source);
         entry.setSize(sizeS);

File fixity-src/src/main/java/org/cdlib/mrt/fixity/test/TestClientProcessFixity.java

                 serverURL,
                 30000,
                 3,
+                null,
                 entry.getUrl(),
                 sourceTypeS,
                 "" + entry.getSize(),