@Override public synchronized EnumSet<YarnApplicationState> getApplicationStates() { initApplicationStates(); return this.applicationStates; }
@Override public Set<String> getApplicationTags() { initApplicationTags(); return this.applicationTags; }
@Override public synchronized Set<String> getApplicationTypes() { initApplicationTypes(); return this.applicationTypes; }
private void mergeLocalToProto() { if (viaProto) maybeInitBuilder(); mergeLocalToBuilder(); proto = builder.build(); viaProto = true; }
request.setScope(scope); GetApplicationsRequest requestFromProto = new GetApplicationsRequestPBImpl( ((GetApplicationsRequestPBImpl)request).getProto());
@Override public GetApplicationsResponseProto getApplications(RpcController controller, GetApplicationsRequestProto proto) throws ServiceException { GetApplicationsRequestPBImpl request = new GetApplicationsRequestPBImpl(proto); try { GetApplicationsResponse response = real.getApplications(request); return ((GetApplicationsResponsePBImpl) response).getProto(); } catch (YarnException e) { throw new ServiceException(e); } catch (IOException e) { throw new ServiceException(e); } }
@Override public synchronized void setLimit(long limit) { maybeInitBuilder(); this.limit = limit; }
@Override public synchronized Set<String> getUsers() { initUsers(); return this.users; }
@Override public synchronized Set<String> getQueues() { initQueues(); return this.queues; }
@Override public synchronized ApplicationsRequestScope getScope() { initScope(); return this.scope; }
request.setScope(scope); GetApplicationsRequest requestFromProto = new GetApplicationsRequestPBImpl( ((GetApplicationsRequestPBImpl)request).getProto());
@Override public GetApplicationsResponseProto getApplications( RpcController controller, GetApplicationsRequestProto proto) throws ServiceException { GetApplicationsRequestPBImpl request = new GetApplicationsRequestPBImpl(proto); try { GetApplicationsResponse response = real.getApplications(request); return ((GetApplicationsResponsePBImpl)response).getProto(); } catch (YarnException e) { throw new ServiceException(e); } catch (IOException e) { throw new ServiceException(e); } }
@Override public void setLimit(long limit) { maybeInitBuilder(); this.limit = limit; }
private void mergeLocalToProto() { if (viaProto) maybeInitBuilder(); mergeLocalToBuilder(); proto = builder.build(); viaProto = true; }
@Override public Set<String> getUsers() { initUsers(); return this.users; }
@Override public Set<String> getQueues() { initQueues(); return this.queues; }
@Override public ApplicationsRequestScope getScope() { initScope(); return this.scope; }