protected void registerSelf ( ) { publishSelf ( ) ; serviceRegistry . get ( ) . registerService ( getServiceDescription ( ) ) ; serviceRegistry . get ( ) . subscribe ( ( pair , err ) -> { serviceEvent ( pair . car ( ) , pair . cdr ( ) , err ) ; } ) ; heartBeat ( ) ; Log . Info ( this , "registered at serviceRegistry." ) ; }
register at service registry