svn commit: r1726114 - /uima/sandbox/uima-ducc/trunk/uima-ducc-common/src/main/java/org/apache/uima/ducc/common/NodeIdentity.java

2016-01-21 Thread cwiklik
Author: cwiklik
Date: Thu Jan 21 21:59:12 2016
New Revision: 1726114

URL: http://svn.apache.org/viewvc?rev=1726114&view=rev
Log:
UIMA-4761 changes to import Utils from common instead of user project

Modified:

uima/sandbox/uima-ducc/trunk/uima-ducc-common/src/main/java/org/apache/uima/ducc/common/NodeIdentity.java

Modified: 
uima/sandbox/uima-ducc/trunk/uima-ducc-common/src/main/java/org/apache/uima/ducc/common/NodeIdentity.java
URL: 
http://svn.apache.org/viewvc/uima/sandbox/uima-ducc/trunk/uima-ducc-common/src/main/java/org/apache/uima/ducc/common/NodeIdentity.java?rev=1726114&r1=1726113&r2=1726114&view=diff
==
--- 
uima/sandbox/uima-ducc/trunk/uima-ducc-common/src/main/java/org/apache/uima/ducc/common/NodeIdentity.java
 (original)
+++ 
uima/sandbox/uima-ducc/trunk/uima-ducc-common/src/main/java/org/apache/uima/ducc/common/NodeIdentity.java
 Thu Jan 21 21:59:12 2016
@@ -24,7 +24,7 @@ import java.net.NetworkInterface;
 import java.util.ArrayList;
 import java.util.Enumeration;
 import java.util.List;
-import org.apache.uima.ducc.user.common.Utils;
+import org.apache.uima.ducc.common.utils.Utils;
 
 public class NodeIdentity implements Serializable {
private static final long serialVersionUID = -3725003472985192870L;




svn commit: r1726063 - in /uima/sandbox/uima-ducc/trunk/uima-ducc-database/src/main/java/org/apache/uima/ducc/database: DbHandle.java DbManager.java HistoryManagerDb.java

2016-01-21 Thread challngr
Author: challngr
Date: Thu Jan 21 18:55:04 2016
New Revision: 1726063

URL: http://svn.apache.org/viewvc?rev=1726063&view=rev
Log:
UIMA-4577 Watch out for nulls in the OR history objects.

Modified:

uima/sandbox/uima-ducc/trunk/uima-ducc-database/src/main/java/org/apache/uima/ducc/database/DbHandle.java

uima/sandbox/uima-ducc/trunk/uima-ducc-database/src/main/java/org/apache/uima/ducc/database/DbManager.java

uima/sandbox/uima-ducc/trunk/uima-ducc-database/src/main/java/org/apache/uima/ducc/database/HistoryManagerDb.java

Modified: 
uima/sandbox/uima-ducc/trunk/uima-ducc-database/src/main/java/org/apache/uima/ducc/database/DbHandle.java
URL: 
http://svn.apache.org/viewvc/uima/sandbox/uima-ducc/trunk/uima-ducc-database/src/main/java/org/apache/uima/ducc/database/DbHandle.java?rev=1726063&r1=1726062&r2=1726063&view=diff
==
--- 
uima/sandbox/uima-ducc/trunk/uima-ducc-database/src/main/java/org/apache/uima/ducc/database/DbHandle.java
 (original)
+++ 
uima/sandbox/uima-ducc/trunk/uima-ducc-database/src/main/java/org/apache/uima/ducc/database/DbHandle.java
 Thu Jan 21 18:55:04 2016
@@ -76,7 +76,15 @@ public class DbHandle
BoundStatement bound = boundStatement.bind(fields);
return execute(bound);
 } finally {
-   if ( manager.noisy ) logger.info(methodName, null, 
"Time to execute prepared statement:", ps.getQueryString(), 
System.currentTimeMillis() - now);
+   if ( manager.noisy ) {
+logger.info(methodName, null, "Time to execute prepared 
statement:", ps.getQueryString(), System.currentTimeMillis() - now);
+StringBuffer buf = new StringBuffer("Fields for statement: ");
+for ( Object o: fields ) {
+buf.append(o.toString());
+buf.append(" ");
+}
+logger.info(methodName, null, buf.toString());
+}
}
 }
 

Modified: 
uima/sandbox/uima-ducc/trunk/uima-ducc-database/src/main/java/org/apache/uima/ducc/database/DbManager.java
URL: 
http://svn.apache.org/viewvc/uima/sandbox/uima-ducc/trunk/uima-ducc-database/src/main/java/org/apache/uima/ducc/database/DbManager.java?rev=1726063&r1=1726062&r2=1726063&view=diff
==
--- 
uima/sandbox/uima-ducc/trunk/uima-ducc-database/src/main/java/org/apache/uima/ducc/database/DbManager.java
 (original)
+++ 
uima/sandbox/uima-ducc/trunk/uima-ducc-database/src/main/java/org/apache/uima/ducc/database/DbManager.java
 Thu Jan 21 18:55:04 2016
@@ -43,12 +43,12 @@ import com.datastax.driver.core.policies
  */
 public class DbManager
 {
-static final String URL_PROPERTY = "ducc.database.url";
+static final String URL_PROPERTY = "ducc.database.host";
 static final String NOISE_PROPERTY = "ducc.database.noisy";
 private static String db_id = null;
 private static String db_pw = null;
 
-boolean noisy = false;
+boolean noisy = true;
 String dburl;
 DuccLogger logger;
 

Modified: 
uima/sandbox/uima-ducc/trunk/uima-ducc-database/src/main/java/org/apache/uima/ducc/database/HistoryManagerDb.java
URL: 
http://svn.apache.org/viewvc/uima/sandbox/uima-ducc/trunk/uima-ducc-database/src/main/java/org/apache/uima/ducc/database/HistoryManagerDb.java?rev=1726063&r1=1726062&r2=1726063&view=diff
==
--- 
uima/sandbox/uima-ducc/trunk/uima-ducc-database/src/main/java/org/apache/uima/ducc/database/HistoryManagerDb.java
 (original)
+++ 
uima/sandbox/uima-ducc/trunk/uima-ducc-database/src/main/java/org/apache/uima/ducc/database/HistoryManagerDb.java
 Thu Jan 21 18:55:04 2016
@@ -300,7 +300,7 @@ public class HistoryManagerDb
 IDuccSchedulingInfo dsx = j.getSchedulingInfo();
 
 String user = dsi.getUser();
-String jclass = dsx.getSchedulingClass();
+String jclass = getString(dsx.getSchedulingClass());
 
 int memory = toInt(dsx.getMemorySizeRequested());
 long submission = dsi.getDateOfSubmissionMillis();
@@ -354,9 +354,9 @@ public class HistoryManagerDb
 
 long ducc_pid = idp.getDuccId().getFriendly();
 long pid = toInt(idp.getPID());
-String node = idp.getNodeIdentity().getName();
-String reason_agent = 
idp.getReasonForStoppingProcess(); // called "reason" in duccprocess but not in 
ws
-String reason_scheduler = 
idp.getProcessDeallocationType().toString(); // called 
"processDeallocationType" in duccprocess but not in ws
+String node = 
getString(idp.getNodeIdentity().getName());
+String reason_agent = 
getString(idp.getReasonForStoppingProcess()); // called "reason" in ducc

svn commit: r1725979 - /uima/sandbox/uima-ducc/trunk/src/main/assembly/bin.xml

2016-01-21 Thread burn
Author: burn
Date: Thu Jan 21 15:11:27 2016
New Revision: 1725979

URL: http://svn.apache.org/viewvc?rev=1725979&view=rev
Log:
UIMA-4727 Also put latest lz4 in cassandra-server/lib

Modified:
uima/sandbox/uima-ducc/trunk/src/main/assembly/bin.xml

Modified: uima/sandbox/uima-ducc/trunk/src/main/assembly/bin.xml
URL: 
http://svn.apache.org/viewvc/uima/sandbox/uima-ducc/trunk/src/main/assembly/bin.xml?rev=1725979&r1=1725978&r2=1725979&view=diff
==
--- uima/sandbox/uima-ducc/trunk/src/main/assembly/bin.xml (original)
+++ uima/sandbox/uima-ducc/trunk/src/main/assembly/bin.xml Thu Jan 21 15:11:27 
2016
@@ -153,6 +153,18 @@ under the License.
   755
 
 
+
+
+  true
+  
+net.jpountz.lz4:lz4
+
+  cassandra-server/lib
+  false
+  644 
+  755
+
+

 
 
@@ -300,6 +312,7 @@ under the License.
 
 
 
+
 
   
target/cassandra/apache-cassandra-${cassandra.server.version}
   cassandra-server
@@ -307,6 +320,7 @@ under the License.
 javadac/*
 conf/cassandra-env.sh
 conf/cassandra.yaml
+lib/lz4*
   
   755
   755