class
CassandraConnectorSource extends Source
Instance Constructors
-
new
CassandraConnectorSource()
Value Members
-
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
def
+(other: String): String
-
-
-
final
def
==(arg0: Any): Boolean
-
final
def
asInstanceOf[T0]: T0
-
def
clone(): AnyRef
-
-
-
-
-
-
-
def
finalize(): Unit
-
def
formatted(fmtstr: String): String
-
final
def
getClass(): Class[_]
-
def
hashCode(): Int
-
final
def
isInstanceOf[T0]: Boolean
-
val
metricRegistry: MetricRegistry
-
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
val
readByteMeter: Meter
-
val
readRowMeter: Meter
-
val
readTaskTimer: Timer
-
val
sourceName: String
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toString(): String
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
-
val
writeBatchTimer: Timer
-
val
writeBatchWaitTimer: Timer
-
val
writeByteMeter: Meter
-
val
writeFailureCounter: Counter
-
val
writeRowMeter: Meter
-
val
writeSuccessCounter: Counter
-
val
writeTaskTimer: Timer
-
Shadowed Implicit Value Members
-
val
self: Any
-
val
self: Any
This class is a Source implementation for Cassandra Connector related Codahale metrics. It is automatically instantiated and registered by Spark metrics system if this source is specified in metrics configuration file.
Spark instantiates this class when SparkEnv is started. There can be only a single instance of SparkEnv so there can be at most a single active instance of CassandraConnectorSource. The active instance is assigned to
CassandraConnectorSource._instance
so that it can be retrieved from anywhere by CassandraConnectorSource.instance method. We need this because we have to access the meters from the task execution.