Package org.apache.hadoop.yarn.api.records.impl.pb

Examples of org.apache.hadoop.yarn.api.records.impl.pb.ContainerResourceIncreaseRequestPBImpl


    // to proto and get it back
    ContainerResourceIncreaseRequestProto proto =
        ((ContainerResourceIncreaseRequestPBImpl) context).getProto();
    ContainerResourceIncreaseRequest contextRecover =
        new ContainerResourceIncreaseRequestPBImpl(proto);

    // check value
    Assert.assertEquals(contextRecover.getContainerId(), containerId);
    Assert.assertEquals(contextRecover.getCapability(), resource);
  }
View Full Code Here


    // to proto and get it back
    ContainerResourceIncreaseRequestProto proto =
        ((ContainerResourceIncreaseRequestPBImpl) context).getProto();
    ContainerResourceIncreaseRequest contextRecover =
        new ContainerResourceIncreaseRequestPBImpl(proto);

    // check value
    Assert.assertNull(contextRecover.getContainerId());
    Assert.assertNull(contextRecover.getCapability());
  }
View Full Code Here

    return ((ResourceRequestPBImpl)t).getProto();
  }
 
  private ContainerResourceIncreaseRequestPBImpl convertFromProtoFormat(
      ContainerResourceIncreaseRequestProto p) {
    return new ContainerResourceIncreaseRequestPBImpl(p);
  }
View Full Code Here

    // to proto and get it back
    ContainerResourceIncreaseRequestProto proto =
        ((ContainerResourceIncreaseRequestPBImpl) context).getProto();
    ContainerResourceIncreaseRequest contextRecover =
        new ContainerResourceIncreaseRequestPBImpl(proto);

    // check value
    Assert.assertEquals(contextRecover.getContainerId(), containerId);
    Assert.assertEquals(contextRecover.getCapability(), resource);
  }
View Full Code Here

    // to proto and get it back
    ContainerResourceIncreaseRequestProto proto =
        ((ContainerResourceIncreaseRequestPBImpl) context).getProto();
    ContainerResourceIncreaseRequest contextRecover =
        new ContainerResourceIncreaseRequestPBImpl(proto);

    // check value
    Assert.assertNull(contextRecover.getContainerId());
    Assert.assertNull(contextRecover.getCapability());
  }
View Full Code Here

TOP

Related Classes of org.apache.hadoop.yarn.api.records.impl.pb.ContainerResourceIncreaseRequestPBImpl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.