public final class Acceptor
extends java.lang.Object
Constructor and Description |
---|
Acceptor(ServerCommunicationSystem communication,
MessageFactory factory,
LeaderModule lm,
ServerViewController controller)
Creates a new instance of Acceptor.
|
Modifier and Type | Method and Description |
---|---|
void |
deliver(PaxosMessage msg)
Called by communication layer to delivery Paxos messages.
|
MessageFactory |
getFactory() |
void |
processMessage(PaxosMessage msg)
Called when a Paxos message is received or when a out of context message must be processed.
|
void |
proposeReceived(Round round,
PaxosMessage msg)
Called when a PROPOSE message is received or when processing a formerly out of context propose which
is know belongs to the current execution.
|
void |
setExecutionManager(ExecutionManager manager)
Sets the execution manager for this acceptor
|
void |
setTOMLayer(TOMLayer tom)
Sets the TOM layer for this acceptor
|
public Acceptor(ServerCommunicationSystem communication, MessageFactory factory, LeaderModule lm, ServerViewController controller)
communication
- Replicas communication systemfactory
- Message factory for PaW messagesverifier
- Proof verifierconf
- TOM configurationpublic MessageFactory getFactory()
public void setExecutionManager(ExecutionManager manager)
manager
- Execution manager for this acceptorpublic void setTOMLayer(TOMLayer tom)
tom
- TOM layer for this acceptorpublic final void deliver(PaxosMessage msg)
msg
- Paxos messages delivered by the communication layerpublic final void processMessage(PaxosMessage msg)
msg
- The message to be processedpublic void proposeReceived(Round round, PaxosMessage msg)
msg
- The PROPOSE message to by processed