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