com.netflix.astyanax.test
Class TestOperation

java.lang.Object
  extended by com.netflix.astyanax.test.TestOperation
All Implemented Interfaces:
Operation<TestClient,java.lang.String>

public class TestOperation
extends java.lang.Object
implements Operation<TestClient,java.lang.String>


Constructor Summary
TestOperation()
           
 
Method Summary
 java.lang.String execute(TestClient client, ConnectionContext state)
          Execute the operation on the client object and return the results.
 java.lang.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.
 java.nio.ByteBuffer getRowKey()
          Return the unique key on which the operation is performed or null if the operation is performed on multiple keys.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestOperation

public TestOperation()
Method Detail

getRowKey

public java.nio.ByteBuffer getRowKey()
Description copied from interface: Operation
Return the unique key on which the operation is performed or null if the operation is performed on multiple keys.

Specified by:
getRowKey in interface Operation<TestClient,java.lang.String>
Returns:

getKeyspace

public java.lang.String getKeyspace()
Description copied from interface: Operation
Return keyspace for this operation. Return null if using the current keyspace, or a keyspace is not needed for the operation.

Specified by:
getKeyspace in interface Operation<TestClient,java.lang.String>
Returns:

getPinnedHost

public Host getPinnedHost()
Description copied from interface: Operation
Return the host to run on or null to select a host using the load blancer. Failover is disabled for this scenario.

Specified by:
getPinnedHost in interface Operation<TestClient,java.lang.String>
Returns:

execute

public java.lang.String execute(TestClient client,
                                ConnectionContext state)
                         throws ConnectionException
Description copied from interface: Operation
Execute the operation on the client object and return the results.

Specified by:
execute in interface Operation<TestClient,java.lang.String>
Parameters:
client - - The client object
state - - State and metadata specific to the connection
Returns:
Throws:
ConnectionException