You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by sm...@apache.org on 2017/04/03 16:49:47 UTC
[14/50] airavata git commit: using BigInt for derby
using BigInt for derby
Project: http://git-wip-us.apache.org/repos/asf/airavata/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/520ad04f
Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/520ad04f
Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/520ad04f
Branch: refs/heads/master
Commit: 520ad04f75fbb07afccba3fef515c8307eaba921
Parents: ae139ff
Author: scnakandala <su...@gmail.com>
Authored: Thu Mar 16 15:25:20 2017 -0400
Committer: scnakandala <su...@gmail.com>
Committed: Thu Mar 16 15:25:20 2017 -0400
----------------------------------------------------------------------
.../src/main/resources/sharing-registry-derby.sql | 2 +-
.../org/apache/airavata/sharing/registry/CipresTest.java | 8 +++++++-
2 files changed, 8 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/airavata/blob/520ad04f/modules/sharing-registry/sharing-registry-server/src/main/resources/sharing-registry-derby.sql
----------------------------------------------------------------------
diff --git a/modules/sharing-registry/sharing-registry-server/src/main/resources/sharing-registry-derby.sql b/modules/sharing-registry/sharing-registry-server/src/main/resources/sharing-registry-derby.sql
index 947742f..2a9c82d 100644
--- a/modules/sharing-registry/sharing-registry-server/src/main/resources/sharing-registry-derby.sql
+++ b/modules/sharing-registry/sharing-registry-server/src/main/resources/sharing-registry-derby.sql
@@ -102,7 +102,7 @@ CREATE TABLE ENTITY (
BINARY_DATA BLOB,
FULL_TEXT VARCHAR(255),
ORIGINAL_ENTITY_CREATION_TIME BIGINT NOT NULL,
- SHARED_COUNT INT DEFAULT 0,
+ SHARED_COUNT BIGINT DEFAULT 0,
CREATED_TIME BIGINT NOT NULL,
UPDATED_TIME BIGINT NOT NULL,
PRIMARY KEY (ENTITY_ID, DOMAIN_ID),
http://git-wip-us.apache.org/repos/asf/airavata/blob/520ad04f/modules/sharing-registry/sharing-registry-server/src/test/java/org/apache/airavata/sharing/registry/CipresTest.java
----------------------------------------------------------------------
diff --git a/modules/sharing-registry/sharing-registry-server/src/test/java/org/apache/airavata/sharing/registry/CipresTest.java b/modules/sharing-registry/sharing-registry-server/src/test/java/org/apache/airavata/sharing/registry/CipresTest.java
index 8ca65b4..e12664f 100644
--- a/modules/sharing-registry/sharing-registry-server/src/test/java/org/apache/airavata/sharing/registry/CipresTest.java
+++ b/modules/sharing-registry/sharing-registry-server/src/test/java/org/apache/airavata/sharing/registry/CipresTest.java
@@ -21,6 +21,7 @@
package org.apache.airavata.sharing.registry;
import org.apache.airavata.sharing.registry.models.*;
+import org.apache.airavata.sharing.registry.server.ServerMain;
import org.apache.airavata.sharing.registry.service.cpi.SharingRegistryService;
import org.apache.thrift.TException;
import org.apache.thrift.protocol.TBinaryProtocol;
@@ -36,11 +37,16 @@ public class CipresTest {
public static void main(String[] args) throws InterruptedException {
System.out.println("Hello World!");
//should use the correct host name and port here
- String serverHost = "wb-airavata.scigap.org";
+// String serverHost = "wb-airavata.scigap.org";
+ String serverHost = "localhost";
int serverPort = 7878;
TTransport transport = null;
+ ServerMain serverMain = new ServerMain();
+ serverMain.main(new String[]{});
+ Thread.sleep(1000 * 2);
+
try {
transport = new TSocket(serverHost, serverPort);
transport.open();