Package org.apache.cassandra.repair
Interface SharedContext
- All Known Implementing Classes:
SharedContext.ForwardingSharedContext,SharedContext.Global
public interface SharedContext
Access methods to shared resources and services.
In many parts of the code base we reach into the global space to pull out singletons, but this makes testing much harder; the main goals for this type is to make users easier to test.
See SharedContext.Global.instance for the main production path
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classstatic class -
Method Summary
Modifier and TypeMethodDescriptionclock()gossiper()mbean()random()repair()repairManager(ColumnFamilyStore store) snitch()default SharedContextwithMessaging(MessageDelivery messaging)
-
Method Details
-
broadcastAddressAndPort
InetAddressAndPort broadcastAddressAndPort() -
random
-
clock
Clock clock() -
executorFactory
ExecutorFactory executorFactory() -
mbean
MBeanWrapper mbean() -
optionalTasks
ScheduledExecutorPlus optionalTasks() -
nonPeriodicTasks
ScheduledExecutorPlus nonPeriodicTasks() -
scheduledTasks
ScheduledExecutorPlus scheduledTasks() -
messaging
MessageDelivery messaging() -
withMessaging
-
failureDetector
IFailureDetector failureDetector() -
snitch
IEndpointSnitch snitch() -
gossiper
IGossiper gossiper() -
compactionManager
ICompactionManager compactionManager() -
repair
ActiveRepairService repair() -
validationManager
IValidationManager validationManager() -
repairManager
-
streamExecutor
StreamExecutor streamExecutor() -
pendingRangeCalculator
PendingRangeCalculatorService pendingRangeCalculator() -
paxosRepairState
PaxosRepairState paxosRepairState()
-