001// Autogenerated Jamon proxy
002// /home/vagrant/repos/hbase/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/regionserver/ReplicationStatusTmpl.jamon
003
004package org.apache.hadoop.hbase.tmpl.regionserver;
005
006// 23, 9
007import java.util.*;
008// 24, 9
009import java.util.Map.Entry;
010// 25, 9
011import org.apache.hadoop.hbase.procedure2.util.StringUtils;
012// 26, 9
013import org.apache.hadoop.hbase.regionserver.HRegionServer;
014// 27, 9
015import org.apache.hadoop.hbase.replication.regionserver.ReplicationStatus;
016
017@org.jamon.annotations.Template(
018  signature = "AA783364EF0882BC85BF660ED7A05252",
019  requiredArguments = {
020    @org.jamon.annotations.Argument(name = "regionServer", type = "HRegionServer")})
021public class ReplicationStatusTmpl
022  extends org.jamon.AbstractTemplateProxy
023{
024  
025  public ReplicationStatusTmpl(org.jamon.TemplateManager p_manager)
026  {
027     super(p_manager);
028  }
029  
030  protected ReplicationStatusTmpl(String p_path)
031  {
032    super(p_path);
033  }
034  
035  public ReplicationStatusTmpl()
036  {
037     super("/org/apache/hadoop/hbase/tmpl/regionserver/ReplicationStatusTmpl");
038  }
039  
040  public interface Intf
041    extends org.jamon.AbstractTemplateProxy.Intf
042  {
043    
044    void renderNoFlush(final java.io.Writer jamonWriter) throws java.io.IOException;
045    
046  }
047  public static class ImplData
048    extends org.jamon.AbstractTemplateProxy.ImplData
049  {
050    // 20, 9
051    public void setRegionServer(HRegionServer regionServer)
052    {
053      // 20, 9
054      m_regionServer = regionServer;
055    }
056    public HRegionServer getRegionServer()
057    {
058      return m_regionServer;
059    }
060    private HRegionServer m_regionServer;
061  }
062  @Override
063  protected org.jamon.AbstractTemplateProxy.ImplData makeImplData()
064  {
065    return new ImplData();
066  }
067  @Override public ImplData getImplData()
068  {
069    return (ImplData) super.getImplData();
070  }
071  
072  
073  @Override
074  public org.jamon.AbstractTemplateImpl constructImpl(Class<? extends org.jamon.AbstractTemplateImpl> p_class){
075    try
076    {
077      return p_class
078        .getConstructor(new Class [] { org.jamon.TemplateManager.class, ImplData.class })
079        .newInstance(new Object [] { getTemplateManager(), getImplData()});
080    }
081    catch (RuntimeException e)
082    {
083      throw e;
084    }
085    catch (Exception e)
086    {
087      throw new RuntimeException(e);
088    }
089  }
090  
091  @Override
092  protected org.jamon.AbstractTemplateImpl constructImpl(){
093    return new ReplicationStatusTmplImpl(getTemplateManager(), getImplData());
094  }
095  public org.jamon.Renderer makeRenderer(final HRegionServer regionServer)
096  {
097    return new org.jamon.AbstractRenderer() {
098      @Override
099      public void renderTo(final java.io.Writer jamonWriter)
100        throws java.io.IOException
101      {
102        render(jamonWriter, regionServer);
103      }
104    };
105  }
106  
107  public void render(final java.io.Writer jamonWriter, final HRegionServer regionServer)
108    throws java.io.IOException
109  {
110    renderNoFlush(jamonWriter, regionServer);
111    jamonWriter.flush();
112  }
113  public void renderNoFlush(final java.io.Writer jamonWriter, final HRegionServer regionServer)
114    throws java.io.IOException
115  {
116    ImplData implData = getImplData();
117    implData.setRegionServer(regionServer);
118    Intf instance = (Intf) getTemplateManager().constructImpl(this);
119    instance.renderNoFlush(jamonWriter);
120    reset();
121  }
122  
123  
124}