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