public class NoopMaster extends Object implements Master
Constructor and Description |
---|
NoopMaster()
Creates a new
NoopMaster . |
NoopMaster(String name)
Creates a new
NoopMaster with the given name. |
Modifier and Type | Method and Description |
---|---|
JournalContext |
createJournalContext() |
Set<Class<? extends Server>> |
getDependencies() |
Iterator<Journal.JournalEntry> |
getJournalEntryIterator() |
String |
getName() |
Map<String,org.apache.thrift.TProcessor> |
getServices() |
void |
processJournalEntry(Journal.JournalEntry entry)
Applies a journal entry to the state machine.
|
void |
resetState()
Resets the journaled internal state of the state machine.
|
void |
start(Boolean options)
Starts the Alluxio server.
|
void |
stop()
Stops the Alluxio server.
|
public NoopMaster()
NoopMaster
.public NoopMaster(String name)
NoopMaster
with the given name.name
- the master namepublic Set<Class<? extends Server>> getDependencies()
getDependencies
in interface Server<Boolean>
public String getName()
getName
in interface JournalEntryStateMachine
getName
in interface Server<Boolean>
public Map<String,org.apache.thrift.TProcessor> getServices()
getServices
in interface Server<Boolean>
TProcessor
s that serve RPCs for this serverpublic void start(Boolean options) throws IOException
Server
start
in interface Server<Boolean>
options
- the start optionsIOException
public void stop() throws IOException
Server
#start(T)
should be
cleaned up and shutdown.stop
in interface Server<Boolean>
IOException
public Iterator<Journal.JournalEntry> getJournalEntryIterator()
getJournalEntryIterator
in interface JournalEntryIterable
Iterator
that iterates all the journal entriespublic void processJournalEntry(Journal.JournalEntry entry) throws IOException
JournalEntryStateMachine
processJournalEntry
in interface JournalEntryStateMachine
entry
- the entry to process to update the state of the state machineIOException
public void resetState()
JournalEntryStateMachine
resetState
in interface JournalEntryStateMachine
public JournalContext createJournalContext()
createJournalContext
in interface Master
Copyright © 2023. All Rights Reserved.