Class GetPluginInfoResponseProtoTranslator<A,B>

java.lang.Object
org.apache.hadoop.yarn.csi.translator.GetPluginInfoResponseProtoTranslator<A,B>
All Implemented Interfaces:
ProtoTranslator<org.apache.hadoop.yarn.api.protocolrecords.GetPluginInfoResponse,csi.v0.Csi.GetPluginInfoResponse>

public class GetPluginInfoResponseProtoTranslator<A,B> extends Object implements ProtoTranslator<org.apache.hadoop.yarn.api.protocolrecords.GetPluginInfoResponse,csi.v0.Csi.GetPluginInfoResponse>
Protobuf message translator for GetPluginInfoResponse and Csi.GetPluginInfoResponse.
  • Constructor Details

    • GetPluginInfoResponseProtoTranslator

      public GetPluginInfoResponseProtoTranslator()
  • Method Details

    • convertTo

      public csi.v0.Csi.GetPluginInfoResponse convertTo(org.apache.hadoop.yarn.api.protocolrecords.GetPluginInfoResponse messageA) throws org.apache.hadoop.yarn.exceptions.YarnException
      Description copied from interface: ProtoTranslator
      Convert message from type A to type B.
      Specified by:
      convertTo in interface ProtoTranslator<A,B>
      Returns:
      messageB
      Throws:
      org.apache.hadoop.yarn.exceptions.YarnException
    • convertFrom

      public org.apache.hadoop.yarn.api.protocolrecords.GetPluginInfoResponse convertFrom(csi.v0.Csi.GetPluginInfoResponse messageB) throws org.apache.hadoop.yarn.exceptions.YarnException
      Description copied from interface: ProtoTranslator
      Convert message from type B to type A.
      Specified by:
      convertFrom in interface ProtoTranslator<A,B>
      Returns:
      messageA
      Throws:
      org.apache.hadoop.yarn.exceptions.YarnException