Mercurial > hg > Members > shoshi > jungle > bulletinboard
changeset 9:5383ee926c6f
Added Consistency Level ANY
author | Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 28 Jan 2014 22:04:32 +0900 |
parents | 2deeb26967e4 |
children | a5a706618c9d |
files | src/main/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/bbs/App.java |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/bbs/App.java Tue Jan 28 06:22:51 2014 +0900 +++ b/src/main/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/bbs/App.java Tue Jan 28 22:04:32 2014 +0900 @@ -9,6 +9,7 @@ import org.mortbay.jetty.servlet.ServletHolder; + /** * Hello world! * @@ -31,6 +32,8 @@ cLevel = HConsistencyLevel.ONE; }else if(args[i].equals("-quorum")){ cLevel = HConsistencyLevel.QUORUM; + }else if(args[i].equals("-any")){ + cLevel = HConsistencyLevel.ANY; }else if(args[i].equals("-rep")){ i++; rep_factor = Integer.parseInt(args[i]); @@ -66,6 +69,8 @@ String editMessageUseGetPath = "/editMessageUseGet"; Servlet editMessageUseGet = new EditMessageUseGetServlet(cassaBBS); context.addServletWithMapping(new ServletHolder(editMessageUseGet), editMessageUseGetPath); + + serv.addHandler(context); serv.start(); }