static void registerDiscoveryClient ( UUID injectorId , ReadOnlyDiscoveryClient discoveryClient , DiscoveryJmsConfig config ) { DISCO_CLIENTS . put ( injectorId , discoveryClient ) ; CONFIGS . put ( injectorId , config ) ; LOG . info ( "Registered discovery client %s as %s" , injectorId , discoveryClient ) ; }
Register a discoveryClient under a unique id . This works around the TransportFactory s inherent staticness so that we may use the correct discovery client even in the presence of multiple injectors in the same JVM .