Permalink
Browse files

Version 0.4.4, Changed default connection pool monitor to Slf4jConnec…

…tionPoolMonitorImpl
  • Loading branch information...
1 parent 45449c0 commit 233549af19ef0a1125e801b3ddc9c5508682b107 @bflorian committed Sep 28, 2013
@@ -19,7 +19,7 @@ import com.reachlocal.grails.plugins.cassandra.astyanax.AstyanaxDynamicMethods
class CassandraAstyanaxGrailsPlugin
{
// the plugin version
- def version = "0.4.3"
+ def version = "0.4.4"
// the version or versions of Grails the plugin is designed for
def grailsVersion = "2.0.0 > *"
@@ -7,7 +7,7 @@ import com.netflix.astyanax.serializers.LongSerializer
astyanax {
clusters {
standard {
- seeds = ["localhost:9160"]
+ seeds = "localhost:9160"
defaultKeyspace = "AstyanaxTest"
columnFamilies {
AstyanaxTest {
@@ -16,11 +16,11 @@ astyanax {
}
}
dummy1 {
- seeds = ["localhost:9160"]
+ seeds = "localhost:9160"
defaultKeyspace = "Dummy1Default"
}
dummy2 {
- seeds = ["localhost:9160"]
+ seeds = "localhost:9160"
}
}
defaultKeyspace = "OverallDefault"
@@ -19,6 +19,7 @@ package com.reachlocal.grails.plugins.cassandra.astyanax
import com.netflix.astyanax.connectionpool.ConnectionPoolConfiguration
import com.netflix.astyanax.connectionpool.impl.ConnectionPoolType
import com.netflix.astyanax.connectionpool.impl.SimpleAuthenticationCredentials
+import com.netflix.astyanax.connectionpool.impl.Slf4jConnectionPoolMonitorImpl
import com.netflix.astyanax.thrift.ThriftFamilyFactory
import com.netflix.astyanax.connectionpool.impl.CountingConnectionPoolMonitor
import com.netflix.astyanax.connectionpool.impl.ConnectionPoolConfigurationImpl
@@ -186,9 +187,9 @@ class AstyanaxService implements InitializingBean
def props = clusters[cluster]
//Default the pool type to the same default astyanax uses Round Robin.
- ConnectionPoolType connectionPoolType = props.connectionPoolType ?: ConnectionPoolType.TOKEN_AWARE
- def connectionPoolMonitor = props.connectionPoolMonitor ?: new CountingConnectionPoolMonitor()
- def discoveryType = props.discoveryType ?: NodeDiscoveryType.RING_DESCRIBE
+ ConnectionPoolType connectionPoolType = props.connectionPoolType ?: ConnectionPoolType.ROUND_ROBIN
+ def connectionPoolMonitor = props.connectionPoolMonitor ?: new Slf4jConnectionPoolMonitorImpl()
+ def discoveryType = props.discoveryType ?: NodeDiscoveryType.NONE
def retryCount = props.retryCount ?: 3
def retryPolicy = props.retryPolicy ?: new RetryNTimes(retryCount)
View
@@ -1,4 +1,4 @@
-<plugin name='cassandra-astyanax' version='0.4.3' grailsVersion='2.0.0 &gt; *'>
+<plugin name='cassandra-astyanax' version='0.4.4' grailsVersion='2.0.0 &gt; *'>
<author>Bob Florian</author>
<authorEmail>bob.florian@reachlocal.com</authorEmail>
<title>Astyanax Cassandra Client</title>
@@ -22,8 +22,8 @@ Note that this plugin does not implement the GORM API.
</test>
<compile>
<dependency group='com.netflix.astyanax' name='astyanax-cassandra' version='1.56.42' />
- <dependency group='com.netflix.astyanax' name='astyanax-core' version='1.56.42' />
<dependency group='com.netflix.astyanax' name='astyanax-thrift' version='1.56.42' />
+ <dependency group='com.netflix.astyanax' name='astyanax-core' version='1.56.42' />
</compile>
<runtime>
<dependency group='com.github.stephenc.eaio-uuid' name='uuid' version='3.2.0' />

0 comments on commit 233549a

Please sign in to comment.