Package org.apache.oozie.service

Examples of org.apache.oozie.service.JobsConcurrencyService


     * @throws IOException Signals that an I/O exception has occurred.
     */
    @SuppressWarnings("unchecked")
    public void updateShareLib(HttpServletRequest request, HttpServletResponse response) throws IOException {
        JSONArray jsonArray = new JSONArray();
        JobsConcurrencyService jc = Services.get().get(JobsConcurrencyService.class);
        if (jc.isAllServerRequest(request.getParameterMap())) {
            Map<String, String> servers = jc.getOtherServerUrls();
            for (String otherUrl : servers.values()) {
                // It's important that we specify ALL_SERVERS_PARAM=false, so that other oozie server should not call other oozie
                //servers to update sharelib (and creating an infinite recursion)
                String serverUrl = otherUrl + "/v2/admin/" + RestConstants.ADMIN_UPDATE_SHARELIB + "?"
                        + RestConstants.ALL_SERVER_REQUEST + "=false";
View Full Code Here

TOP

Related Classes of org.apache.oozie.service.JobsConcurrencyService

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.