org.apache.hadoop.yarn.proto.YarnProtos.YarnApplicationStateProto Java Examples
The following examples show how to use
org.apache.hadoop.yarn.proto.YarnProtos.YarnApplicationStateProto.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: GetApplicationsRequestPBImpl.java From hadoop with Apache License 2.0 | 5 votes |
private void initApplicationStates() { if (this.applicationStates != null) { return; } GetApplicationsRequestProtoOrBuilder p = viaProto ? proto : builder; List<YarnApplicationStateProto> appStatesList = p.getApplicationStatesList(); this.applicationStates = EnumSet.noneOf(YarnApplicationState.class); for (YarnApplicationStateProto c : appStatesList) { this.applicationStates.add(ProtoUtils.convertFromProtoFormat(c)); } }
Example #2
Source File: GetApplicationsRequestPBImpl.java From big-c with Apache License 2.0 | 5 votes |
private void initApplicationStates() { if (this.applicationStates != null) { return; } GetApplicationsRequestProtoOrBuilder p = viaProto ? proto : builder; List<YarnApplicationStateProto> appStatesList = p.getApplicationStatesList(); this.applicationStates = EnumSet.noneOf(YarnApplicationState.class); for (YarnApplicationStateProto c : appStatesList) { this.applicationStates.add(ProtoUtils.convertFromProtoFormat(c)); } }
Example #3
Source File: ApplicationFinishDataPBImpl.java From hadoop with Apache License 2.0 | 4 votes |
private YarnApplicationState convertFromProtoFormat( YarnApplicationStateProto yarnApplicationState) { return ProtoUtils.convertFromProtoFormat(yarnApplicationState); }
Example #4
Source File: ApplicationFinishDataPBImpl.java From big-c with Apache License 2.0 | 4 votes |
private YarnApplicationState convertFromProtoFormat( YarnApplicationStateProto yarnApplicationState) { return ProtoUtils.convertFromProtoFormat(yarnApplicationState); }
Example #5
Source File: ApplicationFinishDataPBImpl.java From big-c with Apache License 2.0 | 4 votes |
private YarnApplicationStateProto convertToProtoFormat( YarnApplicationState state) { return ProtoUtils.convertToProtoFormat(state); }
Example #6
Source File: ApplicationReportPBImpl.java From big-c with Apache License 2.0 | 4 votes |
private YarnApplicationStateProto convertToProtoFormat(YarnApplicationState s) { return ProtoUtils.convertToProtoFormat(s); }
Example #7
Source File: ApplicationReportPBImpl.java From big-c with Apache License 2.0 | 4 votes |
private YarnApplicationState convertFromProtoFormat(YarnApplicationStateProto s) { return ProtoUtils.convertFromProtoFormat(s); }
Example #8
Source File: ProtoUtils.java From big-c with Apache License 2.0 | 4 votes |
public static YarnApplicationState convertFromProtoFormat(YarnApplicationStateProto e) { return YarnApplicationState.valueOf(e.name()); }
Example #9
Source File: ProtoUtils.java From big-c with Apache License 2.0 | 4 votes |
public static YarnApplicationStateProto convertToProtoFormat(YarnApplicationState e) { return YarnApplicationStateProto.valueOf(e.name()); }
Example #10
Source File: GetApplicationsRequestPBImpl.java From big-c with Apache License 2.0 | 4 votes |
private void mergeLocalToBuilder() { if (applicationTypes != null && !applicationTypes.isEmpty()) { builder.clearApplicationTypes(); builder.addAllApplicationTypes(applicationTypes); } if (applicationStates != null && !applicationStates.isEmpty()) { builder.clearApplicationStates(); builder.addAllApplicationStates(Iterables.transform(applicationStates, new Function<YarnApplicationState, YarnApplicationStateProto>() { @Override public YarnApplicationStateProto apply(YarnApplicationState input) { return ProtoUtils.convertToProtoFormat(input); } })); } if (applicationTags != null && !applicationTags.isEmpty()) { builder.clearApplicationTags(); builder.addAllApplicationTags(this.applicationTags); } if (scope != null) { builder.setScope(ProtoUtils.convertToProtoFormat(scope)); } if (start != null) { builder.setStartBegin(start.getMinimumLong()); builder.setStartEnd(start.getMaximumLong()); } if (finish != null) { builder.setFinishBegin(finish.getMinimumLong()); builder.setFinishEnd(finish.getMaximumLong()); } if (limit != Long.MAX_VALUE) { builder.setLimit(limit); } if (users != null && !users.isEmpty()) { builder.clearUsers(); builder.addAllUsers(users); } if (queues != null && !queues.isEmpty()) { builder.clearQueues(); builder.addAllQueues(queues); } }
Example #11
Source File: ApplicationFinishDataPBImpl.java From ambari-metrics with Apache License 2.0 | 4 votes |
private YarnApplicationStateProto convertToProtoFormat( YarnApplicationState state) { return ProtoUtils.convertToProtoFormat(state); }
Example #12
Source File: ApplicationFinishDataPBImpl.java From hadoop with Apache License 2.0 | 4 votes |
private YarnApplicationStateProto convertToProtoFormat( YarnApplicationState state) { return ProtoUtils.convertToProtoFormat(state); }
Example #13
Source File: ApplicationReportPBImpl.java From hadoop with Apache License 2.0 | 4 votes |
private YarnApplicationStateProto convertToProtoFormat(YarnApplicationState s) { return ProtoUtils.convertToProtoFormat(s); }
Example #14
Source File: ApplicationReportPBImpl.java From hadoop with Apache License 2.0 | 4 votes |
private YarnApplicationState convertFromProtoFormat(YarnApplicationStateProto s) { return ProtoUtils.convertFromProtoFormat(s); }
Example #15
Source File: ProtoUtils.java From hadoop with Apache License 2.0 | 4 votes |
public static YarnApplicationState convertFromProtoFormat(YarnApplicationStateProto e) { return YarnApplicationState.valueOf(e.name()); }
Example #16
Source File: ProtoUtils.java From hadoop with Apache License 2.0 | 4 votes |
public static YarnApplicationStateProto convertToProtoFormat(YarnApplicationState e) { return YarnApplicationStateProto.valueOf(e.name()); }
Example #17
Source File: GetApplicationsRequestPBImpl.java From hadoop with Apache License 2.0 | 4 votes |
private void mergeLocalToBuilder() { if (applicationTypes != null && !applicationTypes.isEmpty()) { builder.clearApplicationTypes(); builder.addAllApplicationTypes(applicationTypes); } if (applicationStates != null && !applicationStates.isEmpty()) { builder.clearApplicationStates(); builder.addAllApplicationStates(Iterables.transform(applicationStates, new Function<YarnApplicationState, YarnApplicationStateProto>() { @Override public YarnApplicationStateProto apply(YarnApplicationState input) { return ProtoUtils.convertToProtoFormat(input); } })); } if (applicationTags != null && !applicationTags.isEmpty()) { builder.clearApplicationTags(); builder.addAllApplicationTags(this.applicationTags); } if (scope != null) { builder.setScope(ProtoUtils.convertToProtoFormat(scope)); } if (start != null) { builder.setStartBegin(start.getMinimumLong()); builder.setStartEnd(start.getMaximumLong()); } if (finish != null) { builder.setFinishBegin(finish.getMinimumLong()); builder.setFinishEnd(finish.getMaximumLong()); } if (limit != Long.MAX_VALUE) { builder.setLimit(limit); } if (users != null && !users.isEmpty()) { builder.clearUsers(); builder.addAllUsers(users); } if (queues != null && !queues.isEmpty()) { builder.clearQueues(); builder.addAllQueues(queues); } }
Example #18
Source File: ApplicationFinishDataPBImpl.java From ambari-metrics with Apache License 2.0 | 4 votes |
private YarnApplicationState convertFromProtoFormat( YarnApplicationStateProto yarnApplicationState) { return ProtoUtils.convertFromProtoFormat(yarnApplicationState); }