me.prettyprint.hector.api
Interface ResultStatus

All Known Subinterfaces:
ColumnFamilyResult<K,N>, HColumnFamily<K,N>, MappedColumnFamilyResult<K,N,V>, MappedSuperCfResult<K,SN,N,V>, MutationResult, QueryResult<T>, SuperCfResult<K,SN,N>
All Known Implementing Classes:
AbstractResultWrapper, ColumnFamilyResultWrapper, ExecutionResult, HColumnFamilyImpl, MappedColumnFamilyResultWrapper, MappedSuperCfResultWrapper, MutationResultImpl, QueryResultImpl, SuperCfResultWrapper

public interface ResultStatus

Common interface for tracking the CassandraHost used for the execution of the operation and how long that operation took in micro seconds

Author:
zznate

Method Summary
 long getExecutionTimeMicro()
          How long the operation took to execute in MICRO-seconds.
 long getExecutionTimeNano()
           
 CassandraHost getHostUsed()
          The CassandraHost on which this operation was successful
 

Method Detail

getExecutionTimeMicro

long getExecutionTimeMicro()
How long the operation took to execute in MICRO-seconds. Internally this is usually the difference between two calls of System.nanoTime() divided by 1000

Returns:

getExecutionTimeNano

long getExecutionTimeNano()

getHostUsed

CassandraHost getHostUsed()
The CassandraHost on which this operation was successful



Copyright © 2011. All Rights Reserved.