@@ -0,0 +1,909 @@
+package com.neverwinterdp.vm.environment.yarn;%0A%0Aimport java.util.concurrent.atomic.AtomicLong;%0A%0Aimport org.apache.hadoop.yarn.api.records.Priority;%0Aimport org.apache.hadoop.yarn.api.records.Resource;%0A%0Aimport com.neverwinterdp.vm.environment.yarn.YarnManager.ContainerRequestCallback;%0A%0Apublic class ContainerRequest extends org.apache.hadoop.yarn.client.api.AMRMClient.ContainerRequest %7B%0A  static public AtomicLong idTracker = new AtomicLong() ;%0A  private long id ;%0A  private ContainerRequestCallback callback ;%0A  %0A  public ContainerRequest(Resource capability, String%5B%5D nodes, String%5B%5D racks, Priority priority) %7B%0A    super(capability, nodes, racks, priority);%0A    id = idTracker.getAndIncrement();%0A  %7D%0A%0A  public long getId() %7B return id; %7D%0A%0A  public ContainerRequestCallback getCallback() %7B return callback; %7D%0A  public void setCallback(ContainerRequestCallback callback) %7B%0A    this.callback = callback;%0A  %7D%0A%7D

refactor and clean code