001// Autogenerated Jamon proxy
002// /Users/peter.somogyi/Cloudera/repos/hbase-upstream/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/regionserver/RSStatusTmpl.jamon
003
004package org.apache.hadoop.hbase.tmpl.regionserver;
005
006// 27, 1
007import java.util.*;
008// 28, 1
009import org.apache.hadoop.hbase.regionserver.HRegionServer;
010// 29, 1
011import org.apache.hadoop.hbase.client.RegionInfo;
012// 30, 1
013import org.apache.hadoop.hbase.ServerName;
014// 31, 1
015import org.apache.hadoop.hbase.HBaseConfiguration;
016// 32, 1
017import org.apache.hadoop.hbase.shaded.protobuf.ProtobufUtil;
018// 33, 1
019import org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.ServerInfo;
020// 34, 1
021import org.apache.hadoop.hbase.zookeeper.MasterAddressTracker;
022
023@org.jamon.annotations.Template(
024  signature = "223F582EC45E4EC7316F767108E87B08",
025  requiredArguments = {
026    @org.jamon.annotations.Argument(name = "regionServer", type = "HRegionServer")},
027  optionalArguments = {
028    @org.jamon.annotations.Argument(name = "bcn", type = "String"),
029    @org.jamon.annotations.Argument(name = "bcv", type = "String"),
030    @org.jamon.annotations.Argument(name = "filter", type = "String"),
031    @org.jamon.annotations.Argument(name = "format", type = "String")})
032public class RSStatusTmpl
033  extends org.jamon.AbstractTemplateProxy
034{
035  
036  public RSStatusTmpl(org.jamon.TemplateManager p_manager)
037  {
038     super(p_manager);
039  }
040  
041  protected RSStatusTmpl(String p_path)
042  {
043    super(p_path);
044  }
045  
046  public RSStatusTmpl()
047  {
048     super("/org/apache/hadoop/hbase/tmpl/regionserver/RSStatusTmpl");
049  }
050  
051  public interface Intf
052    extends org.jamon.AbstractTemplateProxy.Intf
053  {
054    
055    void renderNoFlush(final java.io.Writer jamonWriter) throws java.io.IOException;
056    
057  }
058  public static class ImplData
059    extends org.jamon.AbstractTemplateProxy.ImplData
060  {
061    // 20, 1
062    public void setRegionServer(HRegionServer regionServer)
063    {
064      // 20, 1
065      m_regionServer = regionServer;
066    }
067    public HRegionServer getRegionServer()
068    {
069      return m_regionServer;
070    }
071    private HRegionServer m_regionServer;
072    // 23, 1
073    public void setBcn(String bcn)
074    {
075      // 23, 1
076      m_bcn = bcn;
077      m_bcn__IsNotDefault = true;
078    }
079    public String getBcn()
080    {
081      return m_bcn;
082    }
083    private String m_bcn;
084    public boolean getBcn__IsNotDefault()
085    {
086      return m_bcn__IsNotDefault;
087    }
088    private boolean m_bcn__IsNotDefault;
089    // 24, 1
090    public void setBcv(String bcv)
091    {
092      // 24, 1
093      m_bcv = bcv;
094      m_bcv__IsNotDefault = true;
095    }
096    public String getBcv()
097    {
098      return m_bcv;
099    }
100    private String m_bcv;
101    public boolean getBcv__IsNotDefault()
102    {
103      return m_bcv__IsNotDefault;
104    }
105    private boolean m_bcv__IsNotDefault;
106    // 21, 1
107    public void setFilter(String filter)
108    {
109      // 21, 1
110      m_filter = filter;
111      m_filter__IsNotDefault = true;
112    }
113    public String getFilter()
114    {
115      return m_filter;
116    }
117    private String m_filter;
118    public boolean getFilter__IsNotDefault()
119    {
120      return m_filter__IsNotDefault;
121    }
122    private boolean m_filter__IsNotDefault;
123    // 22, 1
124    public void setFormat(String format)
125    {
126      // 22, 1
127      m_format = format;
128      m_format__IsNotDefault = true;
129    }
130    public String getFormat()
131    {
132      return m_format;
133    }
134    private String m_format;
135    public boolean getFormat__IsNotDefault()
136    {
137      return m_format__IsNotDefault;
138    }
139    private boolean m_format__IsNotDefault;
140  }
141  @Override
142  protected org.jamon.AbstractTemplateProxy.ImplData makeImplData()
143  {
144    return new ImplData();
145  }
146  @Override public ImplData getImplData()
147  {
148    return (ImplData) super.getImplData();
149  }
150  
151  protected String bcn;
152  public final org.apache.hadoop.hbase.tmpl.regionserver.RSStatusTmpl setBcn(String p_bcn)
153  {
154    (getImplData()).setBcn(p_bcn);
155    return this;
156  }
157  
158  protected String bcv;
159  public final org.apache.hadoop.hbase.tmpl.regionserver.RSStatusTmpl setBcv(String p_bcv)
160  {
161    (getImplData()).setBcv(p_bcv);
162    return this;
163  }
164  
165  protected String filter;
166  public final org.apache.hadoop.hbase.tmpl.regionserver.RSStatusTmpl setFilter(String p_filter)
167  {
168    (getImplData()).setFilter(p_filter);
169    return this;
170  }
171  
172  protected String format;
173  public final org.apache.hadoop.hbase.tmpl.regionserver.RSStatusTmpl setFormat(String p_format)
174  {
175    (getImplData()).setFormat(p_format);
176    return this;
177  }
178  
179  
180  @Override
181  public org.jamon.AbstractTemplateImpl constructImpl(Class<? extends org.jamon.AbstractTemplateImpl> p_class){
182    try
183    {
184      return p_class
185        .getConstructor(new Class [] { org.jamon.TemplateManager.class, ImplData.class })
186        .newInstance(new Object [] { getTemplateManager(), getImplData()});
187    }
188    catch (RuntimeException e)
189    {
190      throw e;
191    }
192    catch (Exception e)
193    {
194      throw new RuntimeException(e);
195    }
196  }
197  
198  @Override
199  protected org.jamon.AbstractTemplateImpl constructImpl(){
200    return new RSStatusTmplImpl(getTemplateManager(), getImplData());
201  }
202  public org.jamon.Renderer makeRenderer(final HRegionServer regionServer)
203  {
204    return new org.jamon.AbstractRenderer() {
205      @Override
206      public void renderTo(final java.io.Writer jamonWriter)
207        throws java.io.IOException
208      {
209        render(jamonWriter, regionServer);
210      }
211    };
212  }
213  
214  public void render(final java.io.Writer jamonWriter, final HRegionServer regionServer)
215    throws java.io.IOException
216  {
217    renderNoFlush(jamonWriter, regionServer);
218    jamonWriter.flush();
219  }
220  public void renderNoFlush(final java.io.Writer jamonWriter, final HRegionServer regionServer)
221    throws java.io.IOException
222  {
223    ImplData implData = getImplData();
224    implData.setRegionServer(regionServer);
225    Intf instance = (Intf) getTemplateManager().constructImpl(this);
226    instance.renderNoFlush(jamonWriter);
227    reset();
228  }
229  
230  
231}