private synchronized void onContextStatusMessage ( final ContextStatusPOJO contextStatus , final boolean notifyClientOnNewActiveContext ) { LOG . log ( Level . FINER , "Processing context status message for context {0}" , contextStatus . getContextId ( ) ) ; switch ( contextStatus . getContextState ( ) ) { case READY : this . onContextReady ( contextStatus , notifyClientOnNewActiveContext ) ; break ; case FAIL : this . onContextFailed ( contextStatus ) ; break ; case DONE : this . onContextDone ( contextStatus ) ; break ; default : this . onUnknownContextStatus ( contextStatus ) ; break ; } LOG . log ( Level . FINER , "Done processing context status message for context {0}" , contextStatus . getContextId ( ) ) ; }
Process a heartbeat from a context .