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() |
UserState |
getUserState() |
Lock |
pauseStateLock() |
Lock |
stateChangeLock() |
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 Lock stateChangeLock()
public Lock pauseStateLock()
Copyright © 2023. All Rights Reserved.