public static class CoreMasterContext.Builder extends Object
CoreMasterContext
s.Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CoreMasterContext |
build() |
CoreMasterContext.Builder |
setBackupManager(BackupManager backupManager) |
CoreMasterContext.Builder |
setBlockStoreFactory(BlockMetaStore.Factory blockStoreFactory) |
CoreMasterContext.Builder |
setInodeStoreFactory(InodeStore.Factory inodeStoreFactory) |
CoreMasterContext.Builder |
setJournalSystem(JournalSystem journalSystem) |
CoreMasterContext.Builder |
setPort(int port) |
CoreMasterContext.Builder |
setPrimarySelector(PrimarySelector primarySelector) |
CoreMasterContext.Builder |
setSafeModeManager(SafeModeManager safeModeManager) |
CoreMasterContext.Builder |
setStartTimeMs(long startTimeMs) |
CoreMasterContext.Builder |
setUfsManager(MasterUfsManager ufsManager) |
CoreMasterContext.Builder |
setUserState(UserState userState) |
public CoreMasterContext.Builder setJournalSystem(JournalSystem journalSystem)
journalSystem
- journal systempublic CoreMasterContext.Builder setPrimarySelector(PrimarySelector primarySelector)
primarySelector
- the primary selectorpublic CoreMasterContext.Builder setUserState(UserState userState)
userState
- the user statepublic CoreMasterContext.Builder setSafeModeManager(SafeModeManager safeModeManager)
safeModeManager
- safe mode managerpublic CoreMasterContext.Builder setBackupManager(BackupManager backupManager)
backupManager
- backup managerpublic CoreMasterContext.Builder setBlockStoreFactory(BlockMetaStore.Factory blockStoreFactory)
blockStoreFactory
- factory for creating a block storepublic CoreMasterContext.Builder setInodeStoreFactory(InodeStore.Factory inodeStoreFactory)
inodeStoreFactory
- factory for creating an inode storepublic CoreMasterContext.Builder setStartTimeMs(long startTimeMs)
startTimeMs
- start time in millisecondspublic CoreMasterContext.Builder setPort(int port)
port
- portpublic CoreMasterContext.Builder setUfsManager(MasterUfsManager ufsManager)
ufsManager
- ufsManagerpublic CoreMasterContext build()
Copyright © 2023. All Rights Reserved.