Skip to content
Browse files

more refactoring

  • Loading branch information...
1 parent ff12aee commit 1651558e7daf38ebb64911c2cf75bfea2025793a @patricioe patricioe committed Jun 7, 2011
View
7 core/src/main/java/me/prettyprint/cassandra/model/ExecutingKeyspace.java
@@ -4,15 +4,16 @@
import java.util.Map;
import me.prettyprint.cassandra.connection.HConnectionManager;
-import me.prettyprint.cassandra.service.ExceptionsTranslator;
-import me.prettyprint.cassandra.service.ExceptionsTranslatorImpl;
+import me.prettyprint.cassandra.service.ExecutionResult;
import me.prettyprint.cassandra.service.FailoverPolicy;
import me.prettyprint.cassandra.service.KeyspaceService;
import me.prettyprint.cassandra.service.KeyspaceServiceImpl;
import me.prettyprint.cassandra.service.Operation;
import me.prettyprint.cassandra.utils.Assert;
import me.prettyprint.hector.api.ConsistencyLevelPolicy;
import me.prettyprint.hector.api.Keyspace;
+import me.prettyprint.hector.api.exceptions.ExceptionsTranslator;
+import me.prettyprint.hector.api.exceptions.ExceptionsTranslatorImpl;
import me.prettyprint.hector.api.exceptions.HectorException;
/**
@@ -31,7 +32,7 @@
protected final HConnectionManager connectionManager;
protected final String keyspace;
protected final Map<String, String> credentials;
- private final ExceptionsTranslator exceptionTranslator;
+ private final me.prettyprint.hector.api.exceptions.ExceptionsTranslator exceptionTranslator;
public ExecutingKeyspace(String keyspace,
HConnectionManager connectionManager,
View
1 core/src/main/java/me/prettyprint/cassandra/model/KeyspaceOperationCallback.java
@@ -1,5 +1,6 @@
package me.prettyprint.cassandra.model;
+import me.prettyprint.cassandra.service.ExecutionResult;
import me.prettyprint.cassandra.service.KeyspaceService;
import me.prettyprint.hector.api.exceptions.HectorException;
View
3 core/src/main/java/me/prettyprint/cassandra/service/AbstractCluster.java
@@ -10,10 +10,13 @@
import me.prettyprint.cassandra.connection.HConnectionManager;
import me.prettyprint.cassandra.connection.HConnectionManagerImpl;
import me.prettyprint.cassandra.connection.jmx.CassandraClientMonitor;
+import me.prettyprint.cassandra.connection.jmx.JmxMonitor;
import me.prettyprint.cassandra.service.clock.MicrosecondsSyncClockResolution;
import me.prettyprint.hector.api.ClockResolution;
import me.prettyprint.hector.api.Cluster;
import me.prettyprint.hector.api.ddl.KeyspaceDefinition;
+import me.prettyprint.hector.api.exceptions.ExceptionsTranslator;
+import me.prettyprint.hector.api.exceptions.ExceptionsTranslatorImpl;
import me.prettyprint.hector.api.exceptions.HectorException;
import org.apache.cassandra.thrift.Cassandra;
View
2 core/src/main/java/me/prettyprint/cassandra/service/KeyspaceService.java
@@ -4,7 +4,9 @@
import java.util.List;
import java.util.Map;
+import me.prettyprint.cassandra.connection.HCassandraHost;
import me.prettyprint.hector.api.HConsistencyLevel;
+import me.prettyprint.hector.api.OperationType;
import me.prettyprint.hector.api.exceptions.HNotFoundException;
import me.prettyprint.hector.api.exceptions.HectorException;
View
2 utils/src/test/java/me/prettyprint/cassandra/clock/ClockUtilsTest.java
@@ -10,8 +10,6 @@
import me.prettyprint.cassandra.clock.SecondsClockResolution;
import me.prettyprint.hector.api.ClockResolution;
-
-import org.junit.Before;
import org.junit.Test;
public class ClockUtilsTest {

0 comments on commit 1651558

Please sign in to comment.
Something went wrong with that request. Please try again.