*/
@VisibleForTesting
public List<ServiceInstanceData> actionRegistryList(
ActionRegistryArgs registryArgs)
throws YarnException, IOException {
SliderRegistryService registryService = getRegistry();
String serviceType = registryArgs.serviceType;
String name = registryArgs.name;
List<CuratorServiceInstance<ServiceInstanceData>> instances =
registryService.findInstances(serviceType, name);
int size = instances.size();
if (size == 0) {
throw new FileNotFoundException("No entries for servicetype "
+ serviceType
+ " name " + name);