Search in sources :

Example 1 with ICcAddressedMessage

use of org.apache.asterix.common.messaging.api.ICcAddressedMessage in project asterixdb by apache.

the class CCMessageBroker method receivedMessage.

@Override
public void receivedMessage(IMessage message, String nodeId) throws Exception {
    ICcAddressedMessage msg = (ICcAddressedMessage) message;
    if (LOGGER.isLoggable(Level.INFO)) {
        LOGGER.info("Received message: " + msg);
    }
    ICcApplicationContext appCtx = (ICcApplicationContext) ccs.getApplicationContext();
    msg.handle(appCtx);
}
Also used : ICcApplicationContext(org.apache.asterix.common.dataflow.ICcApplicationContext) ICcAddressedMessage(org.apache.asterix.common.messaging.api.ICcAddressedMessage)

Aggregations

ICcApplicationContext (org.apache.asterix.common.dataflow.ICcApplicationContext)1 ICcAddressedMessage (org.apache.asterix.common.messaging.api.ICcAddressedMessage)1