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) { this.failCounter = (operationType == OperationType.READ) ? Counter.READ_FAIL : Counter.WRITE_FAIL; this.operationType = operationType; this.stopWatchTagName = operationType.name(); }
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); }