Gets Web UI workers page data.

@return the response object
10074
@GET
  @Path(WEBUI_WORKERS)
  @ReturnType("alluxio.wire.MasterWebUIWorkers")
  public Response getWebUIWorkers() {
    return RestUtils.call(() -> {
      MasterWebUIWorkers response = new MasterWebUIWorkers();

      response.setDebug(ServerConfiguration.getBoolean(PropertyKey.DEBUG));

      List<WorkerInfo> workerInfos = mBlockMaster.getWorkerInfoList();
      NodeInfo[] normalNodeInfos = WebUtils.generateOrderedNodeInfos(workerInfos);
      response.setNormalNodeInfos(normalNodeInfos);

      List<WorkerInfo> lostWorkerInfos = mBlockMaster.getLostWorkersInfoList();
      NodeInfo[] failedNodeInfos = WebUtils.generateOrderedNodeInfos(lostWorkerInfos);
      response.setFailedNodeInfos(failedNodeInfos);

      return response;
    }, ServerConfiguration.global());
  }
834931
public Observable<Page<ClusterInner>> listAsync() {
        return listWithServiceResponseAsync()
            .map(new Func1<ServiceResponse<Page<ClusterInner>>, Page<ClusterInner>>() {
                @Override
                public Page<ClusterInner> call(ServiceResponse<Page<ClusterInner>> response) {
                    return response.body();
                }
            });
    }
676172
public function ajaxGetVisits()
    {
        $data = Base::getVisitsRepository()->orderBy('created_at', 'desc')->take(300)->get(['url', 'browser', 'ip', 'created_at', 'country']);

        return \Response::json(array('data' => $data));
    }
380252
protected function _getPaginatorResponse()
    {
        $totalItems = $this->_getTotalItemsCount();
        $resource   = $this->getResource();
        $data       = $this->getData();

        return array(
            'current_page_number' => !empty($resource) ? $this->getResource('page') : null,
            'total_item_count'    => $totalItems,
            'item_count_per_page' => !empty($resource) ? $this->getResource('per_page') : null,
            'current_item_count'  => count($data),
            'page_count'          => !empty($resource) ? ceil($totalItems / $this->getResource('per_page')) : 0,
            'current_items'       => $data
        );
    }
249636
public Observable<Page<UsageInner>> listAsync() {
        return listWithServiceResponseAsync().map(new Func1<ServiceResponse<List<UsageInner>>, Page<UsageInner>>() {
            @Override
            public Page<UsageInner> call(ServiceResponse<List<UsageInner>> response) {
                PageImpl<UsageInner> page = new PageImpl<>();
                page.setItems(response.body());
                return page;
            }
        });
    }
615206
public GetQYAgentListResponse getAll(){
        GetQYAgentListResponse response;
        String url = BASE_API_URL + "cgi-bin/agent/list?access_token=#";
        BaseResponse r = executeGet(url);
        String jsonResult = isSuccess(r.getErrcode()) ? r.getErrmsg() : r.toJsonString();
        response = JSONUtil.toBean(jsonResult, GetQYAgentListResponse.class);
        return response;
    }
39189
public ApiSuccessResponse getWorkbins(CancelConsultData1 cancelConsultData) throws ApiException {
        ApiResponse<ApiSuccessResponse> resp = getWorkbinsWithHttpInfo(cancelConsultData);
        return resp.getData();
    }
546447
@Restricted(DoNotUse.class) // WebOnly
    public HttpResponse doIncompleteInstallStatus() {
        try {
        Map<String,String> jobs = InstallUtil.getPersistedInstallStatus();
        if(jobs == null) {
            jobs = Collections.emptyMap();
        }
            return HttpResponses.okJSON(jobs);
        } catch (Exception e) {
            return HttpResponses.errorJSON(String.format("ERROR: %s", e.getMessage()));
        }
    }
878722
public Observable<Page<TagDetailsInner>> listAsync() {
        return listWithServiceResponseAsync()
            .map(new Func1<ServiceResponse<Page<TagDetailsInner>>, Page<TagDetailsInner>>() {
                @Override
                public Page<TagDetailsInner> call(ServiceResponse<Page<TagDetailsInner>> response) {
                    return response.body();
                }
            });
    }
1011711
public static Page getCurrentPage()
	{
		final IRequestHandler requestHandler = RequestCycle.get().getActiveRequestHandler();
		final Page page = getPage(requestHandler);
		if (page != null)
		{
			return page;
		}
		if (requestHandler instanceof RequestSettingRequestHandler)
		{
			final RequestSettingRequestHandler requestSettingRequestHandler = (RequestSettingRequestHandler)requestHandler;
			return getPage(requestSettingRequestHandler.getDelegateHandler());
		}
		return null;
	}
743861
def get_all_jobtemplates(self):
        
        endpoint = self._build_url('jobTemplates', {
            'paginationPageSize': self.PAGE_SIZE
        })
        data = self._query_api('GET', endpoint)
        return data['results']
346766
public ServletResponse getServletResponse()
    {
        RequestContext reqContext = peekRequestContext();
        if (reqContext == null)
            return null;

        return  reqContext._response;
    }
1097912
private HostThreadData getData() {
        Thread thread = Thread.currentThread();
        if (!(thread instanceof XnioIoThread)) {
            throw UndertowMessages.MESSAGES.canOnlyBeCalledByIoThread();
        }
        XnioIoThread ioThread = (XnioIoThread) thread;
        HostThreadData data = hostThreadData.get(ioThread);
        if (data != null) {
            return data;
        }
        data = new HostThreadData();
        HostThreadData existing = hostThreadData.putIfAbsent(ioThread, data);
        if (existing != null) {
            return existing;
        }
        return data;
    }
898093
public Row getData()
    {
        for (MessageIn<ReadResponse> message : replies)
        {
            ReadResponse result = message.payload;
            if (!result.isDigestQuery())
                return result.row();
        }
        return null;
    }
1115902
public function getResponse()
	{
	    $name = 'web.response';
	    if (!Ioc::has($name)) {
	        Ioc::setShared($name, function () {
	            //$headers = new Headers(['Content-Type' => 'text/html; charset=UTF-8']);
	            $response = new Response(200);
	            return $response->withProtocolVersion(Config::getCommon('http.version'));
	        });
	    }
	    
	    return Ioc::get($name);
	}
1292314
public static IWorkbenchPage getActivePage()
	{
		IWorkbenchWindow w = getActiveWorkbenchWindow();
		if (w != null)
		{
			return w.getActivePage();
		}
		return null;
	}
857800
public static function getWorkerID()
    {
        if(null === static::$workerID)
        {
            $main = ServerManage::getServer('main');
            if($main)
            {
                $workerID = $main->getSwooleServer()->worker_id;
                if($workerID > -1)
                {
                    static::$workerID = $workerID;
                }
            }
        }
        return static::$workerID;
    }