public void register ( final long masterId , final List < ConfigProperty > configList ) throws IOException { retryRPC ( ( ) -> { mClient . registerMaster ( RegisterMasterPRequest . newBuilder ( ) . setMasterId ( masterId ) . setOptions ( RegisterMasterPOptions . newBuilder ( ) . addAllConfigs ( configList ) . build ( ) ) . build ( ) ) ; return null ; } ) ; }
Registers with the leader master .