/** * @return the externally resolvable address of the master */ public InetSocketAddress getAddress() { return mMasterProcess.getRpcAddress(); }
/** * Gets the actual port that the RPC service is listening on. * * @return the RPC local port */ public int getRpcLocalPort() { return mMasterProcess.getRpcAddress().getPort(); }
@Override public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { request.setAttribute("masterNodeAddress", mMasterProcess.getRpcAddress().toString()); request.setAttribute("filePath", request.getParameter("filePath")); request.setAttribute("error", ""); List<String> parentFileNames = new ArrayList<>(); List<String> childrenFileNames = new ArrayList<>(); Collections.sort(parentFileNames); Collections.sort(childrenFileNames); request.setAttribute("parentFileNames", parentFileNames); request.setAttribute("childrenFileNames", childrenFileNames); }
/** * @summary get the master rpc address * @return the response object * @deprecated since version 1.4 and will be removed in version 2.0 * @see #getInfo(Boolean) */ @GET @Path(GET_RPC_ADDRESS) @ReturnType("java.lang.String") @Deprecated public Response getRpcAddress() { return RestUtils.call(() -> mMasterProcess.getRpcAddress().toString()); }
request.setAttribute("masterNodeAddress", mMasterProcess.getRpcAddress().toString());
AuthenticatedClientUser.set(LoginUser.get().getName()); request.setAttribute("masterNodeAddress", mMasterProcess.getRpcAddress().toString()); request.setAttribute("fatalError", ""); request.setAttribute("showPermissions",
Configuration.getBoolean(PropertyKey.SECURITY_AUTHORIZATION_PERMISSION_ENABLED)); request.setAttribute("masterNodeAddress", mMasterProcess.getRpcAddress().toString()); request.setAttribute("invalidPathError", ""); List<FileInfo> filesInfo;