public Operation(OperationType operationType) { this.failCounter = (operationType == OperationType.READ) ? Counter.READ_FAIL : Counter.WRITE_FAIL; this.operationType = operationType; this.stopWatchTagName = operationType.name(); }
public void setConsistencyLevelForCfOperation(HConsistencyLevel consistencyLevel, String columnFamily, OperationType operationType) { if (operationType == OperationType.READ) { readCfConsistencyLevels.put(columnFamily, consistencyLevel); } else { writeCfConsistencyLevels.put(columnFamily, consistencyLevel); } log.info("{} ConsistencyLevel set to {} for ColumnFamily {}", new Object[]{operationType.toString(),consistencyLevel.toString(),columnFamily}); }
public Operation(OperationType operationType, FailoverPolicy failoverPolicy, String keyspaceName, Map<String, String> credentials) { this.failCounter = (operationType == OperationType.READ) ? Counter.READ_FAIL : Counter.WRITE_FAIL; this.operationType = operationType; this.stopWatchTagName = operationType.name(); this.failoverPolicy = failoverPolicy; this.keyspaceName = keyspaceName; this.credentials = Collections.unmodifiableMap(credentials); }
public void setConsistencyLevelForCfOperation(HConsistencyLevel consistencyLevel, String columnFamily, OperationType operationType) { if (operationType == OperationType.READ) { readCfConsistencyLevels.put(columnFamily, consistencyLevel); } else { writeCfConsistencyLevels.put(columnFamily, consistencyLevel); } log.info("{} ConsistencyLevel set to {} for ColumnFamily {}", new Object[]{operationType.toString(),consistencyLevel.toString(),columnFamily}); }
public Operation(OperationType operationType) { this.failCounter = (operationType == OperationType.READ) ? Counter.READ_FAIL : Counter.WRITE_FAIL; this.operationType = operationType; this.stopWatchTagName = operationType.name(); }
public void setConsistencyLevelForCfOperation(HConsistencyLevel consistencyLevel, String columnFamily, OperationType operationType) { if (operationType == OperationType.READ) { readCfConsistencyLevels.put(columnFamily, consistencyLevel); } else { writeCfConsistencyLevels.put(columnFamily, consistencyLevel); } log.info("{} ConsistencyLevel set to {} for ColumnFamily {}", new Object[]{operationType.toString(),consistencyLevel.toString(),columnFamily}); }
public Operation(OperationType operationType) { this.failCounter = (operationType == OperationType.READ) ? Counter.READ_FAIL : Counter.WRITE_FAIL; this.operationType = operationType; this.stopWatchTagName = operationType.name(); }
public Operation(OperationType operationType, FailoverPolicy failoverPolicy, String keyspaceName, Map<String, String> credentials) { this.failCounter = (operationType == OperationType.READ) ? Counter.READ_FAIL : Counter.WRITE_FAIL; this.operationType = operationType; this.stopWatchTagName = operationType.name(); this.failoverPolicy = failoverPolicy; this.keyspaceName = keyspaceName; this.credentials = Collections.unmodifiableMap(credentials); }
public Operation(OperationType operationType, FailoverPolicy failoverPolicy, String keyspaceName, Map<String, String> credentials) { this.failCounter = (operationType == OperationType.READ) ? Counter.READ_FAIL : Counter.WRITE_FAIL; this.operationType = operationType; this.stopWatchTagName = operationType.name(); this.failoverPolicy = failoverPolicy; this.keyspaceName = keyspaceName; this.credentials = Collections.unmodifiableMap(credentials); }