fixed paths

This commit is contained in:
Dhruv Parthasarathy 2013-08-08 16:10:31 -07:00
parent 3a298681e4
commit 0b24ea710c
3 changed files with 3 additions and 6 deletions

View File

@ -332,7 +332,6 @@ public class MasterMain
);
root.addFilter(GuiceFilter.class, "/info/*", 0);
root.addFilter(GuiceFilter.class, "/master/*", 0);
root.addFilter(GuiceFilter.class, "/masterSegmentSettings/*",0);
server.start();
server.join();

View File

@ -31,7 +31,7 @@ import javax.ws.rs.core.Response;
/**
*/
@Path("/masterSegmentSettings")
@Path("/master/config")
public class MasterSegmentSettingsResource
{
private final JacksonConfigManager manager;
@ -44,7 +44,6 @@ public class MasterSegmentSettingsResource
this.manager=manager;
}
@GET
@Path("/config")
@Produces("application/json")
public Response getDynamicConfigs()
{
@ -56,7 +55,6 @@ public class MasterSegmentSettingsResource
}
@POST
@Path("/config")
@Consumes("application/json")
public Response setDynamicConfigs(
final MasterSegmentSettings masterSegmentSettings

View File

@ -1,5 +1,5 @@
$(function () {
$.get('../masterSegmentSettings/config', function (data) {
$.get('../master/config', function (data) {
document.getElementById("millis").value=data["millisToWaitBeforeDeleting"];
document.getElementById("mergeBytes").value = data["mergeBytesLimit"];
document.getElementById("mergeSegments").value = data["mergeSegmentsLimit"];
@ -15,7 +15,7 @@ $(function () {
values[list[i]["name"]]=list[i]["value"];
}
$.ajax({
url:'../masterSegmentSettings/config',
url:'../master/config',
type:"POST",
data: JSON.stringify(values),
contentType:"application/json; charset=utf-8",