001// Autogenerated Jamon proxy
002// /Users/peter.somogyi/Cloudera/repos/hbase-upstream/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/master/RegionServerListTmpl.jamon
003
004package org.apache.hadoop.hbase.tmpl.master;
005
006// 27, 9
007import java.util.*;
008// 28, 9
009import org.apache.hadoop.hbase.master.HMaster;
010// 29, 9
011import org.apache.hadoop.hbase.RegionMetrics;
012// 30, 9
013import org.apache.hadoop.hbase.ServerMetrics;
014// 31, 9
015import org.apache.hadoop.hbase.ServerName;
016// 32, 9
017import org.apache.hadoop.hbase.Size;
018// 33, 9
019import org.apache.hadoop.hbase.util.VersionInfo;
020// 34, 9
021import org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix;
022
023@org.jamon.annotations.Template(
024  signature = "3014D59EE1D8FE3441AA4C8A712CFE31",
025  requiredArguments = {
026    @org.jamon.annotations.Argument(name = "master", type = "HMaster")},
027  optionalArguments = {
028    @org.jamon.annotations.Argument(name = "servers", type = "List<ServerName>")})
029public class RegionServerListTmpl
030  extends org.jamon.AbstractTemplateProxy
031{
032  
033  public RegionServerListTmpl(org.jamon.TemplateManager p_manager)
034  {
035     super(p_manager);
036  }
037  
038  protected RegionServerListTmpl(String p_path)
039  {
040    super(p_path);
041  }
042  
043  public RegionServerListTmpl()
044  {
045     super("/org/apache/hadoop/hbase/tmpl/master/RegionServerListTmpl");
046  }
047  
048  public interface Intf
049    extends org.jamon.AbstractTemplateProxy.Intf
050  {
051    
052    void renderNoFlush(final java.io.Writer jamonWriter) throws java.io.IOException;
053    
054  }
055  public static class ImplData
056    extends org.jamon.AbstractTemplateProxy.ImplData
057  {
058    // 23, 1
059    public void setMaster(HMaster master)
060    {
061      // 23, 1
062      m_master = master;
063    }
064    public HMaster getMaster()
065    {
066      return m_master;
067    }
068    private HMaster m_master;
069    // 22, 1
070    public void setServers(List<ServerName> servers)
071    {
072      // 22, 1
073      m_servers = servers;
074      m_servers__IsNotDefault = true;
075    }
076    public List<ServerName> getServers()
077    {
078      return m_servers;
079    }
080    private List<ServerName> m_servers;
081    public boolean getServers__IsNotDefault()
082    {
083      return m_servers__IsNotDefault;
084    }
085    private boolean m_servers__IsNotDefault;
086  }
087  @Override
088  protected org.jamon.AbstractTemplateProxy.ImplData makeImplData()
089  {
090    return new ImplData();
091  }
092  @Override public ImplData getImplData()
093  {
094    return (ImplData) super.getImplData();
095  }
096  
097  protected List<ServerName> servers;
098  public final org.apache.hadoop.hbase.tmpl.master.RegionServerListTmpl setServers(List<ServerName> p_servers)
099  {
100    (getImplData()).setServers(p_servers);
101    return this;
102  }
103  
104  
105  @Override
106  public org.jamon.AbstractTemplateImpl constructImpl(Class<? extends org.jamon.AbstractTemplateImpl> p_class){
107    try
108    {
109      return p_class
110        .getConstructor(new Class [] { org.jamon.TemplateManager.class, ImplData.class })
111        .newInstance(new Object [] { getTemplateManager(), getImplData()});
112    }
113    catch (RuntimeException e)
114    {
115      throw e;
116    }
117    catch (Exception e)
118    {
119      throw new RuntimeException(e);
120    }
121  }
122  
123  @Override
124  protected org.jamon.AbstractTemplateImpl constructImpl(){
125    return new RegionServerListTmplImpl(getTemplateManager(), getImplData());
126  }
127  public org.jamon.Renderer makeRenderer(final HMaster master)
128  {
129    return new org.jamon.AbstractRenderer() {
130      @Override
131      public void renderTo(final java.io.Writer jamonWriter)
132        throws java.io.IOException
133      {
134        render(jamonWriter, master);
135      }
136    };
137  }
138  
139  public void render(final java.io.Writer jamonWriter, final HMaster master)
140    throws java.io.IOException
141  {
142    renderNoFlush(jamonWriter, master);
143    jamonWriter.flush();
144  }
145  public void renderNoFlush(final java.io.Writer jamonWriter, final HMaster master)
146    throws java.io.IOException
147  {
148    ImplData implData = getImplData();
149    implData.setMaster(master);
150    Intf instance = (Intf) getTemplateManager().constructImpl(this);
151    instance.renderNoFlush(jamonWriter);
152    reset();
153  }
154  
155  
156}