001// Autogenerated Jamon proxy
002// /Users/petersomogyi/projects/hbase-upstream/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/master/RSGroupListTmpl.jamon
003
004package org.apache.hadoop.hbase.tmpl.master;
005
006// 27, 5
007import java.util.Collections;
008// 28, 5
009import java.util.List;
010// 29, 5
011import java.util.Map;
012// 30, 5
013import java.util.Set;
014// 31, 5
015import java.util.stream.Collectors;
016// 32, 5
017import org.apache.hadoop.hbase.master.HMaster;
018// 33, 5
019import org.apache.hadoop.hbase.RegionMetrics;
020// 34, 5
021import org.apache.hadoop.hbase.ServerMetrics;
022// 35, 5
023import org.apache.hadoop.hbase.Size;
024// 36, 5
025import org.apache.hadoop.hbase.RSGroupTableAccessor;
026// 37, 5
027import org.apache.hadoop.hbase.master.ServerManager;
028// 38, 5
029import org.apache.hadoop.hbase.net.Address;
030// 39, 5
031import org.apache.hadoop.hbase.rsgroup.RSGroupInfo;
032// 40, 5
033import org.apache.hadoop.util.StringUtils;
034// 41, 5
035import org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix;
036
037@org.jamon.annotations.Template(
038  signature = "7D9222DA869F721FABDA6206A97B5374",
039  requiredArguments = {
040    @org.jamon.annotations.Argument(name = "master", type = "HMaster"),
041    @org.jamon.annotations.Argument(name = "serverManager", type = "ServerManager")})
042public class RSGroupListTmpl
043  extends org.jamon.AbstractTemplateProxy
044{
045  
046  public RSGroupListTmpl(org.jamon.TemplateManager p_manager)
047  {
048     super(p_manager);
049  }
050  
051  protected RSGroupListTmpl(String p_path)
052  {
053    super(p_path);
054  }
055  
056  public RSGroupListTmpl()
057  {
058     super("/org/apache/hadoop/hbase/tmpl/master/RSGroupListTmpl");
059  }
060  
061  public interface Intf
062    extends org.jamon.AbstractTemplateProxy.Intf
063  {
064    
065    void renderNoFlush(final java.io.Writer jamonWriter) throws java.io.IOException;
066    
067  }
068  public static class ImplData
069    extends org.jamon.AbstractTemplateProxy.ImplData
070  {
071    // 22, 1
072    public void setMaster(HMaster master)
073    {
074      // 22, 1
075      m_master = master;
076    }
077    public HMaster getMaster()
078    {
079      return m_master;
080    }
081    private HMaster m_master;
082    // 23, 1
083    public void setServerManager(ServerManager serverManager)
084    {
085      // 23, 1
086      m_serverManager = serverManager;
087    }
088    public ServerManager getServerManager()
089    {
090      return m_serverManager;
091    }
092    private ServerManager m_serverManager;
093  }
094  @Override
095  protected org.jamon.AbstractTemplateProxy.ImplData makeImplData()
096  {
097    return new ImplData();
098  }
099  @Override public ImplData getImplData()
100  {
101    return (ImplData) super.getImplData();
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 RSGroupListTmplImpl(getTemplateManager(), getImplData());
126  }
127  public org.jamon.Renderer makeRenderer(final HMaster master, final ServerManager serverManager)
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, serverManager);
135      }
136    };
137  }
138  
139  public void render(final java.io.Writer jamonWriter, final HMaster master, final ServerManager serverManager)
140    throws java.io.IOException
141  {
142    renderNoFlush(jamonWriter, master, serverManager);
143    jamonWriter.flush();
144  }
145  public void renderNoFlush(final java.io.Writer jamonWriter, final HMaster master, final ServerManager serverManager)
146    throws java.io.IOException
147  {
148    ImplData implData = getImplData();
149    implData.setMaster(master);
150    implData.setServerManager(serverManager);
151    Intf instance = (Intf) getTemplateManager().constructImpl(this);
152    instance.renderNoFlush(jamonWriter);
153    reset();
154  }
155  
156  
157}