T
- the type of ufsManager to be usedpublic class MasterContext<T extends UfsManager> extends Object
Constructor and Description |
---|
MasterContext(JournalSystem journalSystem,
PrimarySelector primarySelector,
T ufsManager)
Creates a new master context, using the global server UserState.
|
MasterContext(JournalSystem journalSystem,
PrimarySelector primarySelector,
UserState userState,
T ufsManager)
Creates a new master context.
|
Modifier and Type | Method and Description |
---|---|
JournalSystem |
getJournalSystem() |
PrimarySelector |
getPrimarySelector() |
StateLockManager |
getStateLockManager() |
T |
getUfsManager() |
UserState |
getUserState() |
public MasterContext(JournalSystem journalSystem, PrimarySelector primarySelector, T ufsManager)
journalSystem
- the journal system to use for tracking master operationsprimarySelector
- the primary selector for selecting the leading masterufsManager
- the UFS managerpublic MasterContext(JournalSystem journalSystem, PrimarySelector primarySelector, @Nullable UserState userState, T ufsManager)
journalSystem
- the journal system to use for tracking master operationsprimarySelector
- the primary selector for selecting the leading masteruserState
- the user state of the server. If null, will use the global server user stateufsManager
- the UFS managerpublic JournalSystem getJournalSystem()
public PrimarySelector getPrimarySelector()
public UserState getUserState()
public StateLockManager getStateLockManager()
public T getUfsManager()
Copyright © 2023. All Rights Reserved.