Navigation Menu

Skip to content

Commit

Permalink
Merge pull request #659 from lewismc/issue-656
Browse files Browse the repository at this point in the history
Implement consistent logging for setters in me.prettyprint.cassandra.mod...
  • Loading branch information
zznate committed Mar 12, 2014
2 parents a8d5795 + f030f98 commit 84dc335
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -2,7 +2,6 @@

import java.util.HashMap;
import java.util.Map;

import me.prettyprint.cassandra.service.OperationType;
import me.prettyprint.hector.api.HConsistencyLevel;
import me.prettyprint.hector.api.ConsistencyLevelPolicy;
Expand Down Expand Up @@ -40,10 +39,12 @@ public HConsistencyLevel get(OperationType op, String cfName) {

public void setReadCfConsistencyLevels(Map<String, HConsistencyLevel> columnFamilyConsistencyLevels) {
this.readCfConsistencyLevels = columnFamilyConsistencyLevels;
log.info("Read ColumnFamily ConsistencyLevels set to: {}", columnFamilyConsistencyLevels);
}

public void setWriteCfConsistencyLevels(Map<String, HConsistencyLevel> columnFamilyConsistencyLevels) {
this.writeCfConsistencyLevels = columnFamilyConsistencyLevels;
log.info("Write ColumnFamily ConsistencyLevels set to: {}", columnFamilyConsistencyLevels);
}

public void setConsistencyLevelForCfOperation(HConsistencyLevel consistencyLevel,
Expand All @@ -60,10 +61,12 @@ public void setConsistencyLevelForCfOperation(HConsistencyLevel consistencyLevel

public void setDefaultReadConsistencyLevel(HConsistencyLevel defaultReadConsistencyLevel) {
this.defaultReadConsistencyLevel = defaultReadConsistencyLevel;
log.info("Default read ConsistencyLevel set to: {}", defaultReadConsistencyLevel.toString() + ".");
}

public void setDefaultWriteConsistencyLevel(HConsistencyLevel defaultWriteConsistencyLevel) {
this.defaultWriteConsistencyLevel = defaultWriteConsistencyLevel;
log.info("Default write ConsistencyLevel set to: {}", defaultWriteConsistencyLevel.toString() + ".");
}


Expand Down

0 comments on commit 84dc335

Please sign in to comment.