|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.netflix.astyanax.thrift.AbstractOperationImpl<R>
public abstract class AbstractOperationImpl<R>
Constructor Summary | |
---|---|
AbstractOperationImpl(CassandraOperationTracer tracer)
|
|
AbstractOperationImpl(CassandraOperationTracer tracer,
Host host)
|
Method Summary | |
---|---|
R |
execute(org.apache.cassandra.thrift.Cassandra.Client client)
Execute the operation on the client object and return the results |
String |
getKeyspace()
Return keyspace for this operation. |
Host |
getPinnedHost()
Return the host to run on or null to select a host using the load blancer. |
BigInteger |
getToken()
Return the unique key on which the operation is performed or null if the operation is performed on multiple keys. |
protected abstract R |
internalExecute(org.apache.cassandra.thrift.Cassandra.Client client)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractOperationImpl(CassandraOperationTracer tracer, Host host)
public AbstractOperationImpl(CassandraOperationTracer tracer)
Method Detail |
---|
public BigInteger getToken()
Operation
getToken
in interface Operation<org.apache.cassandra.thrift.Cassandra.Client,R>
public String getKeyspace()
Operation
getKeyspace
in interface Operation<org.apache.cassandra.thrift.Cassandra.Client,R>
public R execute(org.apache.cassandra.thrift.Cassandra.Client client) throws ConnectionException
Operation
execute
in interface Operation<org.apache.cassandra.thrift.Cassandra.Client,R>
OperationException
ConnectionException
public Host getPinnedHost()
Operation
getPinnedHost
in interface Operation<org.apache.cassandra.thrift.Cassandra.Client,R>
protected abstract R internalExecute(org.apache.cassandra.thrift.Cassandra.Client client) throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |