Java Code Examples for org.apache.hadoop.yarn.api.records.impl.pb.ProtoUtils#convertFromProtoFormat()
The following examples show how to use
org.apache.hadoop.yarn.api.records.impl.pb.ProtoUtils#convertFromProtoFormat() .
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 big-c with Apache License 2.0 | 5 votes |
private void initScope() { if (this.scope != null) { return; } GetApplicationsRequestProtoOrBuilder p = viaProto ? proto : builder; this.scope = ProtoUtils.convertFromProtoFormat(p.getScope()); }
Example 2
Source File: ApplicationAttemptStateDataPBImpl.java From big-c with Apache License 2.0 | 5 votes |
@Override public Credentials getAppAttemptTokens() { ApplicationAttemptStateDataProtoOrBuilder p = viaProto ? proto : builder; if(appAttemptTokens != null) { return convertCredentialsFromByteBuffer(appAttemptTokens); } if(!p.hasAppAttemptTokens()) { return null; } this.appAttemptTokens = ProtoUtils.convertFromProtoFormat( p.getAppAttemptTokens()); return convertCredentialsFromByteBuffer(appAttemptTokens); }
Example 3
Source File: AllocateResponsePBImpl.java From big-c with Apache License 2.0 | 5 votes |
@Override public synchronized AMCommand getAMCommand() { AllocateResponseProtoOrBuilder p = viaProto ? proto : builder; if (!p.hasAMCommand()) { return null; } return ProtoUtils.convertFromProtoFormat(p.getAMCommand()); }
Example 4
Source File: GetApplicationsRequestPBImpl.java From hadoop with Apache License 2.0 | 5 votes |
private void initScope() { if (this.scope != null) { return; } GetApplicationsRequestProtoOrBuilder p = viaProto ? proto : builder; this.scope = ProtoUtils.convertFromProtoFormat(p.getScope()); }
Example 5
Source File: AllocateResponsePBImpl.java From hadoop with Apache License 2.0 | 5 votes |
@Override public synchronized AMCommand getAMCommand() { AllocateResponseProtoOrBuilder p = viaProto ? proto : builder; if (!p.hasAMCommand()) { return null; } return ProtoUtils.convertFromProtoFormat(p.getAMCommand()); }
Example 6
Source File: ApplicationAttemptStateDataPBImpl.java From hadoop with Apache License 2.0 | 5 votes |
@Override public Credentials getAppAttemptTokens() { ApplicationAttemptStateDataProtoOrBuilder p = viaProto ? proto : builder; if(appAttemptTokens != null) { return convertCredentialsFromByteBuffer(appAttemptTokens); } if(!p.hasAppAttemptTokens()) { return null; } this.appAttemptTokens = ProtoUtils.convertFromProtoFormat( p.getAppAttemptTokens()); return convertCredentialsFromByteBuffer(appAttemptTokens); }
Example 7
Source File: NMContainerStatusPBImpl.java From hadoop with Apache License 2.0 | 4 votes |
private ContainerState convertFromProtoFormat( ContainerStateProto containerState) { return ProtoUtils.convertFromProtoFormat(containerState); }
Example 8
Source File: FinishApplicationMasterRequestPBImpl.java From big-c with Apache License 2.0 | 4 votes |
private FinalApplicationStatus convertFromProtoFormat(FinalApplicationStatusProto s) { return ProtoUtils.convertFromProtoFormat(s); }
Example 9
Source File: ApplicationFinishDataPBImpl.java From big-c with Apache License 2.0 | 4 votes |
private YarnApplicationState convertFromProtoFormat( YarnApplicationStateProto yarnApplicationState) { return ProtoUtils.convertFromProtoFormat(yarnApplicationState); }
Example 10
Source File: ApplicationAttemptFinishDataPBImpl.java From hadoop with Apache License 2.0 | 4 votes |
private FinalApplicationStatus convertFromProtoFormat( FinalApplicationStatusProto finalApplicationStatus) { return ProtoUtils.convertFromProtoFormat(finalApplicationStatus); }
Example 11
Source File: ApplicationFinishDataPBImpl.java From hadoop with Apache License 2.0 | 4 votes |
private YarnApplicationState convertFromProtoFormat( YarnApplicationStateProto yarnApplicationState) { return ProtoUtils.convertFromProtoFormat(yarnApplicationState); }
Example 12
Source File: ContainerFinishDataPBImpl.java From big-c with Apache License 2.0 | 4 votes |
private ContainerState convertFromProtoFormat( ContainerStateProto containerState) { return ProtoUtils.convertFromProtoFormat(containerState); }
Example 13
Source File: ApplicationFinishDataPBImpl.java From big-c with Apache License 2.0 | 4 votes |
private FinalApplicationStatus convertFromProtoFormat( FinalApplicationStatusProto finalApplicationStatus) { return ProtoUtils.convertFromProtoFormat(finalApplicationStatus); }
Example 14
Source File: ApplicationAttemptStateDataPBImpl.java From hadoop with Apache License 2.0 | 4 votes |
private FinalApplicationStatus convertFromProtoFormat(FinalApplicationStatusProto s) { return ProtoUtils.convertFromProtoFormat(s); }
Example 15
Source File: ContainerFinishDataPBImpl.java From ambari-metrics with Apache License 2.0 | 4 votes |
private ContainerState convertFromProtoFormat( ContainerStateProto containerState) { return ProtoUtils.convertFromProtoFormat(containerState); }
Example 16
Source File: ApplicationAttemptFinishDataPBImpl.java From big-c with Apache License 2.0 | 4 votes |
private FinalApplicationStatus convertFromProtoFormat( FinalApplicationStatusProto finalApplicationStatus) { return ProtoUtils.convertFromProtoFormat(finalApplicationStatus); }
Example 17
Source File: StartContainersResponsePBImpl.java From hadoop with Apache License 2.0 | 4 votes |
protected final ByteBuffer convertFromProtoFormat(ByteString byteString) { return ProtoUtils.convertFromProtoFormat(byteString); }
Example 18
Source File: ApplicationAttemptFinishDataPBImpl.java From ambari-metrics with Apache License 2.0 | 4 votes |
private YarnApplicationAttemptState convertFromProtoFormat( YarnApplicationAttemptStateProto yarnApplicationAttemptState) { return ProtoUtils.convertFromProtoFormat(yarnApplicationAttemptState); }
Example 19
Source File: ApplicationFinishDataPBImpl.java From ambari-metrics with Apache License 2.0 | 4 votes |
private YarnApplicationState convertFromProtoFormat( YarnApplicationStateProto yarnApplicationState) { return ProtoUtils.convertFromProtoFormat(yarnApplicationState); }
Example 20
Source File: ApplicationAttemptFinishDataPBImpl.java From big-c with Apache License 2.0 | 4 votes |
private YarnApplicationAttemptState convertFromProtoFormat( YarnApplicationAttemptStateProto yarnApplicationAttemptState) { return ProtoUtils.convertFromProtoFormat(yarnApplicationAttemptState); }