/*
 * Copyright 2013-2015 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.springframework.cloud.client.discovery;

import java.util.List;

import org.springframework.cloud.client.ServiceInstance;

/**
 * DiscoveryClient represents operations commonly available to Discovery service
 * such as Netflix Eureka or consul.io
 * @author Spencer Gibb
 */
public interface DiscoveryClient {

	/**
	 * A human readable description of the implementation, used in HealthIndicator
	 * @return
	 */
	public String description();

	/**
	 * @return ServiceInstance with information used to register the local service
	 */
	public ServiceInstance getLocalServiceInstance();

	/**
	 * Get all ServiceInstance's associated with a particular serviceId
	 * @param serviceId the serviceId to query
	 * @return a List of ServiceInstance
	 */
	public List<ServiceInstance> getInstances(String serviceId);

	/**
	 * @return all known service id's
	 */
	public List<String> getServices();

}

@@ -838,19 +838,16 @@
 vice
-%0A *
  such as
  Net
@@ -842,16 +842,19 @@
  such as
+%0A *
  Netflix
@@ -1034,16 +1034,32 @@
  @return
+ the description
 %0A%09 */%0A%09p
@@ -1261,17 +1261,16 @@
 Instance
-'
 s associ
@@ -1449,32 +1449,32 @@
 rviceId);%0A%0A%09/**%0A
+
 %09 * @return all 
@@ -1493,9 +1493,8 @@
 e id
-'
 s%0A%09 

Remove grocer's apostrophes