You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@slider.apache.org by st...@apache.org on 2014/05/14 11:49:12 UTC
svn commit: r1594527 -
/incubator/slider/trunk/slider-core/src/main/java/org/apache/slider/server/services/registry/RegistryRestResources.java
Author: stevel
Date: Wed May 14 09:49:12 2014
New Revision: 1594527
URL: http://svn.apache.org/r1594527
Log:
SLIDER-50 use RestPaths for source of base registry path
Modified:
incubator/slider/trunk/slider-core/src/main/java/org/apache/slider/server/services/registry/RegistryRestResources.java
Modified: incubator/slider/trunk/slider-core/src/main/java/org/apache/slider/server/services/registry/RegistryRestResources.java
URL: http://svn.apache.org/viewvc/incubator/slider/trunk/slider-core/src/main/java/org/apache/slider/server/services/registry/RegistryRestResources.java?rev=1594527&r1=1594526&r2=1594527&view=diff
==============================================================================
--- incubator/slider/trunk/slider-core/src/main/java/org/apache/slider/server/services/registry/RegistryRestResources.java (original)
+++ incubator/slider/trunk/slider-core/src/main/java/org/apache/slider/server/services/registry/RegistryRestResources.java Wed May 14 09:49:12 2014
@@ -49,8 +49,8 @@ import java.util.Random;
@Singleton
@Path(RestPaths.SLIDER_PATH_REGISTRY)
public class RegistryRestResources extends DiscoveryResource<ServiceInstanceData> {
- public static final String SERVICE_NAME = "v1/service/{name}";
- public static final String SERVICE_NAME_ID = "v1/service/{name}/{id}";
+ public static final String SERVICE_NAME = RestPaths.REGISTRY_SERVICE +"/{name}";
+ public static final String SERVICE_NAME_ID = SERVICE_NAME + "/{id}";
protected static final Logger log =
LoggerFactory.getLogger(RegistryRestResources.class);
private final SliderRegistryService registry;