public class MasterContext extends Object
Constructor and Description |
---|
MasterContext(JournalSystem journalSystem)
Creates a new master context, using the global server UserState.
|
MasterContext(JournalSystem journalSystem,
UserState userState)
Creates a new master context.
|
Modifier and Type | Method and Description |
---|---|
JournalSystem |
getJournalSystem() |
StateLockManager |
getStateLockManager() |
UserState |
getUserState() |
public MasterContext(JournalSystem journalSystem)
journalSystem
- the journal system to use for tracking master operationspublic MasterContext(JournalSystem journalSystem, UserState userState)
journalSystem
- the journal system to use for tracking master operationsuserState
- the user state of the server. If null, will use the global server user statepublic JournalSystem getJournalSystem()
public UserState getUserState()
public StateLockManager getStateLockManager()
Copyright © 2023. All Rights Reserved.