Skip to content

Commit

Permalink
Implement consistent logging for setters in me.prettyprint.cassandra.…
Browse files Browse the repository at this point in the history
…model.ConfigurableConsistencyLevel #656
  • Loading branch information
Lewis John McGibbney committed Mar 7, 2014
1 parent a8d5795 commit 6517e38
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
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 6517e38

Please sign in to comment.