Interface PartitionContext
- All Known Subinterfaces:
PartitionTransitionContext
- All Known Implementing Classes:
PartitionStartupAndTransitionContextImpl
public interface PartitionContext
Interface encapsulating all the information about a partition that are needed at runtime (i.e.
after the transition to the current role has completed)
-
Method Summary
Modifier and TypeMethodDescriptionlongintnotifyListenersOfBecomingFollower(long newTerm) Deprecated.voidDeprecated.notifyListenersOfBecomingLeader(long newTerm) Deprecated.voidsetDiskSpaceAvailable(boolean b) Deprecated.boolean
-
Method Details
-
getPartitionId
int getPartitionId() -
getRaftPartition
RaftPartition getRaftPartition() -
notifyListenersOfBecomingLeader
Deprecated. -
notifyListenersOfBecomingFollower
Deprecated. -
notifyListenersOfBecomingInactive
Deprecated. -
getCurrentRole
RaftServer.Role getCurrentRole() -
getCurrentTerm
long getCurrentTerm() -
getComponentHealthMonitor
HealthMonitor getComponentHealthMonitor() -
getStreamProcessor
StreamProcessor getStreamProcessor() -
getExporterDirector
ExporterDirector getExporterDirector() -
shouldProcess
boolean shouldProcess() -
setDiskSpaceAvailable
Deprecated. -
getTopologyManager
TopologyManager getTopologyManager()
-