001// Autogenerated Jamon proxy
002// /home/vagrant/repos/hbase/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/master/AssignmentManagerStatusTmpl.jamon
003
004package org.apache.hadoop.hbase.tmpl.master;
005
006// 20, 1
007import java.util.Map;
008// 21, 1
009import java.util.Set;
010// 22, 1
011import java.util.SortedSet;
012// 23, 1
013import java.util.concurrent.atomic.AtomicInteger;
014// 24, 1
015import java.util.stream.Collectors;
016// 25, 1
017import org.apache.hadoop.conf.Configuration;
018// 26, 1
019import org.apache.hadoop.hbase.HBaseConfiguration;
020// 27, 1
021import org.apache.hadoop.hbase.HConstants;
022// 28, 1
023import org.apache.hadoop.hbase.ServerName;
024// 29, 1
025import org.apache.hadoop.hbase.client.RegionInfo;
026// 30, 1
027import org.apache.hadoop.hbase.client.RegionInfoDisplay;
028// 31, 1
029import org.apache.hadoop.hbase.master.RegionState;
030// 32, 1
031import org.apache.hadoop.hbase.master.assignment.AssignmentManager;
032// 33, 1
033import org.apache.hadoop.hbase.master.assignment.AssignmentManager.RegionInTransitionStat;
034// 34, 1
035import org.apache.hadoop.hbase.master.assignment.RegionStates.RegionFailedOpen;
036// 35, 1
037import org.apache.hadoop.hbase.util.Pair;
038
039@org.jamon.annotations.Template(
040  signature = "954C68465765CFCD20F71EC9BAAF1CD1",
041  requiredArguments = {
042    @org.jamon.annotations.Argument(name = "assignmentManager", type = "AssignmentManager")},
043  optionalArguments = {
044    @org.jamon.annotations.Argument(name = "limit", type = "int")})
045public class AssignmentManagerStatusTmpl
046  extends org.jamon.AbstractTemplateProxy
047{
048  
049  public AssignmentManagerStatusTmpl(org.jamon.TemplateManager p_manager)
050  {
051     super(p_manager);
052  }
053  
054  protected AssignmentManagerStatusTmpl(String p_path)
055  {
056    super(p_path);
057  }
058  
059  public AssignmentManagerStatusTmpl()
060  {
061     super("/org/apache/hadoop/hbase/tmpl/master/AssignmentManagerStatusTmpl");
062  }
063  
064  public interface Intf
065    extends org.jamon.AbstractTemplateProxy.Intf
066  {
067    
068    void renderNoFlush(final java.io.Writer jamonWriter) throws java.io.IOException;
069    
070  }
071  public static class ImplData
072    extends org.jamon.AbstractTemplateProxy.ImplData
073  {
074    // 38, 1
075    public void setAssignmentManager(AssignmentManager assignmentManager)
076    {
077      // 38, 1
078      m_assignmentManager = assignmentManager;
079    }
080    public AssignmentManager getAssignmentManager()
081    {
082      return m_assignmentManager;
083    }
084    private AssignmentManager m_assignmentManager;
085    // 39, 1
086    public void setLimit(int limit)
087    {
088      // 39, 1
089      m_limit = limit;
090      m_limit__IsNotDefault = true;
091    }
092    public int getLimit()
093    {
094      return m_limit;
095    }
096    private int m_limit;
097    public boolean getLimit__IsNotDefault()
098    {
099      return m_limit__IsNotDefault;
100    }
101    private boolean m_limit__IsNotDefault;
102  }
103  @Override
104  protected org.jamon.AbstractTemplateProxy.ImplData makeImplData()
105  {
106    return new ImplData();
107  }
108  @Override public ImplData getImplData()
109  {
110    return (ImplData) super.getImplData();
111  }
112  
113  protected int limit;
114  public final org.apache.hadoop.hbase.tmpl.master.AssignmentManagerStatusTmpl setLimit(int p_limit)
115  {
116    (getImplData()).setLimit(p_limit);
117    return this;
118  }
119  
120  
121  @Override
122  public org.jamon.AbstractTemplateImpl constructImpl(Class<? extends org.jamon.AbstractTemplateImpl> p_class){
123    try
124    {
125      return p_class
126        .getConstructor(new Class [] { org.jamon.TemplateManager.class, ImplData.class })
127        .newInstance(new Object [] { getTemplateManager(), getImplData()});
128    }
129    catch (RuntimeException e)
130    {
131      throw e;
132    }
133    catch (Exception e)
134    {
135      throw new RuntimeException(e);
136    }
137  }
138  
139  @Override
140  protected org.jamon.AbstractTemplateImpl constructImpl(){
141    return new AssignmentManagerStatusTmplImpl(getTemplateManager(), getImplData());
142  }
143  public org.jamon.Renderer makeRenderer(final AssignmentManager assignmentManager)
144  {
145    return new org.jamon.AbstractRenderer() {
146      @Override
147      public void renderTo(final java.io.Writer jamonWriter)
148        throws java.io.IOException
149      {
150        render(jamonWriter, assignmentManager);
151      }
152    };
153  }
154  
155  public void render(final java.io.Writer jamonWriter, final AssignmentManager assignmentManager)
156    throws java.io.IOException
157  {
158    renderNoFlush(jamonWriter, assignmentManager);
159    jamonWriter.flush();
160  }
161  public void renderNoFlush(final java.io.Writer jamonWriter, final AssignmentManager assignmentManager)
162    throws java.io.IOException
163  {
164    ImplData implData = getImplData();
165    implData.setAssignmentManager(assignmentManager);
166    Intf instance = (Intf) getTemplateManager().constructImpl(this);
167    instance.renderNoFlush(jamonWriter);
168    reset();
169  }
170  
171  
172}