@Override
	public void reload() throws RemoteException {
		// TODO Auto-generated method stub
		// determine the configure file is existed or not
		if (isExistedFile(midwarePath + "conf", confFile) == false) {
			throw new RemoteException("There is no " + confFile
					+ "and can't reload");
		}
		// determine the server is running or not
		if (isRunning() == false) {
			start();
		} else {

			ArrayList<String> result = new ArrayList<String>(0);
			ArrayList<String> errorResult = new ArrayList<String>(0);
			String cmd = midwarePath + "sbin/nginx -s reload";

			// reload the nginx
			this.reauthInfo.execCommand(conncontroller, cmd, result,
					errorResult);
			if (result.isEmpty()) {
				if (!errorResult.isEmpty()) {
					throw new RemoteException(errorResult.toString());
				} else {
					// System.out.println("Reload sucessfully.");
				}
			}
		}
	}