All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.hadoop.hbase.tmpl.master.AssignmentManagerStatusTmpl Maven / Gradle / Ivy

The newest version!
// Autogenerated Jamon proxy
// /Users/apurtell/src/hbase/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/master/AssignmentManagerStatusTmpl.jamon

package org.apache.hadoop.hbase.tmpl.master;

// 20, 1
import org.apache.hadoop.hbase.HRegionInfo;
// 21, 1
import org.apache.hadoop.hbase.master.AssignmentManager;
// 22, 1
import org.apache.hadoop.hbase.master.RegionState;
// 23, 1
import org.apache.hadoop.conf.Configuration;
// 24, 1
import org.apache.hadoop.hbase.HBaseConfiguration;
// 25, 1
import org.apache.hadoop.hbase.HConstants;
// 26, 1
import java.util.SortedSet;
// 27, 1
import java.util.Iterator;
// 28, 1
import java.util.List;
// 29, 1
import java.util.ArrayList;
// 30, 1
import java.util.Set;
// 31, 1
import java.util.HashSet;
// 32, 1
import java.lang.Integer;
// 33, 1
import java.util.Map;
// 34, 1
import java.util.concurrent.atomic.AtomicInteger;

@org.jamon.annotations.Template(
  signature = "954C68465765CFCD20F71EC9BAAF1CD1",
  requiredArguments = {
    @org.jamon.annotations.Argument(name = "assignmentManager", type = "AssignmentManager")},
  optionalArguments = {
    @org.jamon.annotations.Argument(name = "limit", type = "int")})
public class AssignmentManagerStatusTmpl
  extends org.jamon.AbstractTemplateProxy
{
  
  public AssignmentManagerStatusTmpl(org.jamon.TemplateManager p_manager)
  {
     super(p_manager);
  }
  
  protected AssignmentManagerStatusTmpl(String p_path)
  {
    super(p_path);
  }
  
  public AssignmentManagerStatusTmpl()
  {
     super("/org/apache/hadoop/hbase/tmpl/master/AssignmentManagerStatusTmpl");
  }
  
  public interface Intf
    extends org.jamon.AbstractTemplateProxy.Intf
  {
    
    void renderNoFlush(final java.io.Writer jamonWriter) throws java.io.IOException;
    
  }
  public static class ImplData
    extends org.jamon.AbstractTemplateProxy.ImplData
  {
    // 37, 1
    public void setAssignmentManager(AssignmentManager assignmentManager)
    {
      // 37, 1
      m_assignmentManager = assignmentManager;
    }
    public AssignmentManager getAssignmentManager()
    {
      return m_assignmentManager;
    }
    private AssignmentManager m_assignmentManager;
    // 38, 1
    public void setLimit(int limit)
    {
      // 38, 1
      m_limit = limit;
      m_limit__IsNotDefault = true;
    }
    public int getLimit()
    {
      return m_limit;
    }
    private int m_limit;
    public boolean getLimit__IsNotDefault()
    {
      return m_limit__IsNotDefault;
    }
    private boolean m_limit__IsNotDefault;
  }
  @Override
  protected org.jamon.AbstractTemplateProxy.ImplData makeImplData()
  {
    return new ImplData();
  }
  @Override public ImplData getImplData()
  {
    return (ImplData) super.getImplData();
  }
  
  protected int limit;
  public final org.apache.hadoop.hbase.tmpl.master.AssignmentManagerStatusTmpl setLimit(int p_limit)
  {
    (getImplData()).setLimit(p_limit);
    return this;
  }
  
  
  @Override
  public org.jamon.AbstractTemplateImpl constructImpl(Class p_class){
    try
    {
      return p_class
        .getConstructor(new Class [] { org.jamon.TemplateManager.class, ImplData.class })
        .newInstance(new Object [] { getTemplateManager(), getImplData()});
    }
    catch (RuntimeException e)
    {
      throw e;
    }
    catch (Exception e)
    {
      throw new RuntimeException(e);
    }
  }
  
  @Override
  protected org.jamon.AbstractTemplateImpl constructImpl(){
    return new AssignmentManagerStatusTmplImpl(getTemplateManager(), getImplData());
  }
  public org.jamon.Renderer makeRenderer(final AssignmentManager assignmentManager)
  {
    return new org.jamon.AbstractRenderer() {
      @Override
      public void renderTo(final java.io.Writer jamonWriter)
        throws java.io.IOException
      {
        render(jamonWriter, assignmentManager);
      }
    };
  }
  
  public void render(final java.io.Writer jamonWriter, final AssignmentManager assignmentManager)
    throws java.io.IOException
  {
    renderNoFlush(jamonWriter, assignmentManager);
    jamonWriter.flush();
  }
  public void renderNoFlush(final java.io.Writer jamonWriter, final AssignmentManager assignmentManager)
    throws java.io.IOException
  {
    ImplData implData = getImplData();
    implData.setAssignmentManager(assignmentManager);
    Intf instance = (Intf) getTemplateManager().constructImpl(this);
    instance.renderNoFlush(jamonWriter);
    reset();
  }
  
  
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy