Skip to content

Commit

Permalink
fix move of cassandra sync api and dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreasPetter committed Jul 28, 2016
1 parent 82e4457 commit 4ff0cf6
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,11 @@
<artifactId>kryo</artifactId>
<version>3.0.3</version>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>16.0.1</version>
</dependency>

<dependency>
<groupId>com.datastax.cassandra</groupId>
Expand Down
17 changes: 17 additions & 0 deletions scray-cassandra/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,23 @@
<artifactId>snakeyaml</artifactId>
<version>1.11</version>
</dependency>
<dependency>
<groupId>com.websudos</groupId>
<artifactId>phantom-dsl_2.10</artifactId>
<version>1.4.0</version>
<exclusions>
<exclusion>
<groupId>com.datastax.cassandra</groupId>
<artifactId>cassandra-driver-core</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.cassandraunit</groupId>
<artifactId>cassandra-unit</artifactId>
<version>2.2.2.1</version>
<scope>test</scope>
</dependency>
</dependencies>

<licenses>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ class CassandraJobInfo(
numberOfOnlineSlots: Int = 2,
lockTimeOut: Int = 500) extends JobInfo[Statement, Insert, ResultSet](name, numberOfBatchSlots, numberOfOnlineSlots) with LazyLogging {

import CassandraImplementation.genericCassandraColumnImplicit

val statementGenerator = CassandraStatementGenerator

def getLock(dbSession: DbSession[Statement, Insert, ResultSet]): LockApi[Statement, Insert, ResultSet] = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ class OnlineBatchSyncCassandra(dbSession: DbSession[Statement, Insert, ResultSet
OnlineBatchSyncWithTableIdentifier[Statement, Insert, ResultSet] with
StateMonitoringApi[Statement, Insert, ResultSet] {

import CassandraImplementation.genericCassandraColumnImplicit

def this(dbHostname: String) = {
this(new CassandraDbSession(Cluster.builder().addContactPoint(dbHostname).build().connect()))
}
Expand Down

0 comments on commit 4ff0cf6

Please sign in to comment.