private void hostSubscribe ( String eventName , boolean subscribe ) { if ( globalEventDispatcher != null ) { try { globalEventDispatcher . subscribeRemoteEvent ( eventName , subscribe ) ; } catch ( Throwable e ) { log . error ( "Error " + ( subscribe ? "subscribing to" : "unsubscribing from" ) + " remote event '" + eventName + "'" , e ) ; } } }
Registers or unregisters a subscription with the global event dispatcher if one is present .