Class CommandDispatcher.Builder
java.lang.Object
org.apache.hadoop.ozone.container.common.statemachine.commandhandler.CommandDispatcher.Builder
- Enclosing class:
CommandDispatcher
Helper class to construct command dispatcher.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddHandler(CommandHandler handler) Adds a handler.build()Builds a command Dispatcher.setConnectionManager(SCMConnectionManager scmConnectionManager) Set the Connection Manager.setContainer(OzoneContainer ozoneContainer) Add the OzoneContainer.setContext(StateContext stateContext) Sets the Context.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
addHandler
Adds a handler.- Parameters:
handler- - handler- Returns:
- Builder
-
setContainer
Add the OzoneContainer.- Parameters:
ozoneContainer- - ozone container.- Returns:
- Builder
-
setConnectionManager
Set the Connection Manager.- Parameters:
scmConnectionManager-- Returns:
- this
-
setContext
Sets the Context.- Parameters:
stateContext- - StateContext- Returns:
- this
-
build
Builds a command Dispatcher.- Returns:
- Command Dispatcher.
-