public void registerService ( ProvidedServiceInstance serviceInstance ) { getServiceDirectoryClient ( ) . registerServiceInstance ( serviceInstance ) ; getCacheServiceInstances ( ) . put ( new ServiceInstanceToken ( serviceInstance . getServiceName ( ) , serviceInstance . getProviderId ( ) ) , new InstanceHealthPair ( null ) ) ; }
Register a ProvidedServiceInstance .