apache/incubator-reef — pull request #24 by johnyangk (2014-11-22 03:57:43+00:00)
Title: [REEF-33]: Support pushing Task messages from Evaluator to Driver.

Addresses https://issues.apache.org/jira/browse/REEF-33

This PR creates HeartBeatTriggerManager that Task can inject and use to immediately send a heartbeat to Driver.

Used together with TaskMessageSource, Task can push urgent messages to Driver.

I tested it by injecting the class into HelloTask and triggering the heartbeat every 0.5 seconds. I could see the Driver receiving a heartbeat every 0.5 seconds in addition to the regular 5 second interval heartbeats.