Package org.apache.nemo.runtime.master
Class BlockManagerMaster.BlockManagerMasterControlMessageReceiver
- java.lang.Object
-
- org.apache.nemo.runtime.master.BlockManagerMaster.BlockManagerMasterControlMessageReceiver
-
- All Implemented Interfaces:
MessageListener<ControlMessage.Message>
- Enclosing class:
- BlockManagerMaster
public final class BlockManagerMaster.BlockManagerMasterControlMessageReceiver extends java.lang.Object implements MessageListener<ControlMessage.Message>
Handler for control messages received.
-
-
Constructor Summary
Constructors Constructor Description BlockManagerMasterControlMessageReceiver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onMessage(ControlMessage.Message message)
Called back when a message is received.void
onMessageWithContext(ControlMessage.Message message, MessageContext messageContext)
Called back when a message is received, and return a response usingMessageContext
.
-
-
-
Method Detail
-
onMessage
public void onMessage(ControlMessage.Message message)
Description copied from interface:MessageListener
Called back when a message is received.- Specified by:
onMessage
in interfaceMessageListener<ControlMessage.Message>
- Parameters:
message
- a message
-
onMessageWithContext
public void onMessageWithContext(ControlMessage.Message message, MessageContext messageContext)
Description copied from interface:MessageListener
Called back when a message is received, and return a response usingMessageContext
.- Specified by:
onMessageWithContext
in interfaceMessageListener<ControlMessage.Message>
- Parameters:
message
- a messagemessageContext
- a message context
-
-