public void registerService ( ProvidedServiceInstance serviceInstance , ServiceInstanceHealth registryHealth ) { registerService ( serviceInstance ) ; getCacheServiceInstances ( ) . put ( new ServiceInstanceToken ( serviceInstance . getServiceName ( ) , serviceInstance . getProviderId ( ) ) , new InstanceHealthPair ( registryHealth ) ) ; }
Register a ProvidedServiceInstance with the OperationalStatus and the ServiceInstanceHealth callback .