private int handleStopApi(String parstr,  ChannelHandlerContext ctx, HttpRequest req) {
		if (parstr == null)
			return -1;
		String pid = parstr;
		String ret = new StopApp(pid).stopApp();
		ChannelBuffer content;
			content = ChannelBuffers.copiedBuffer(ret,
					CharsetUtil.UTF_8);
		HttpResponse res = new DefaultHttpResponse(HTTP_1_1, OK);
		res.setHeader(CONTENT_TYPE, "text/html; charset=UTF-8");
		setContentLength(res, content.readableBytes());
		res.setContent(content);
		sendHttpResponse(ctx, req, res);
		return 0;
	}