All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.hadoop.hbase.tmpl.tool.CanaryStatusTmpl Maven / Gradle / Ivy

There is a newer version: 3.0.0-beta-1
Show newest version
// Autogenerated Jamon proxy
// /home/apurtell/tmp/RM/hbase/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/tool/CanaryStatusTmpl.jamon

package org.apache.hadoop.hbase.tmpl.tool;

// 24, 1
import java.util.Map;
// 25, 1
import java.util.concurrent.atomic.LongAdder;
// 26, 1
import org.apache.hadoop.hbase.ServerName;
// 27, 1
import org.apache.hadoop.hbase.tool.CanaryTool.RegionStdOutSink;
// 28, 1
import org.apache.hadoop.hbase.util.JvmVersion;

@org.jamon.annotations.Template(
  signature = "EEA4FDF35446AB1A8CA6C131382BC35B",
  requiredArguments = {
    @org.jamon.annotations.Argument(name = "sink", type = "RegionStdOutSink")})
public class CanaryStatusTmpl
  extends org.jamon.AbstractTemplateProxy
{
  
  public CanaryStatusTmpl(org.jamon.TemplateManager p_manager)
  {
     super(p_manager);
  }
  
  protected CanaryStatusTmpl(String p_path)
  {
    super(p_path);
  }
  
  public CanaryStatusTmpl()
  {
     super("/org/apache/hadoop/hbase/tmpl/tool/CanaryStatusTmpl");
  }
  
  public interface Intf
    extends org.jamon.AbstractTemplateProxy.Intf
  {
    
    void renderNoFlush(final java.io.Writer jamonWriter) throws java.io.IOException;
    
  }
  public static class ImplData
    extends org.jamon.AbstractTemplateProxy.ImplData
  {
    // 21, 1
    public void setSink(RegionStdOutSink sink)
    {
      // 21, 1
      m_sink = sink;
    }
    public RegionStdOutSink getSink()
    {
      return m_sink;
    }
    private RegionStdOutSink m_sink;
  }
  @Override
  protected org.jamon.AbstractTemplateProxy.ImplData makeImplData()
  {
    return new ImplData();
  }
  @Override public ImplData getImplData()
  {
    return (ImplData) super.getImplData();
  }
  
  
  @Override
  public org.jamon.AbstractTemplateImpl constructImpl(Class p_class){
    try
    {
      return p_class
        .getConstructor(new Class [] { org.jamon.TemplateManager.class, ImplData.class })
        .newInstance(new Object [] { getTemplateManager(), getImplData()});
    }
    catch (RuntimeException e)
    {
      throw e;
    }
    catch (Exception e)
    {
      throw new RuntimeException(e);
    }
  }
  
  @Override
  protected org.jamon.AbstractTemplateImpl constructImpl(){
    return new CanaryStatusTmplImpl(getTemplateManager(), getImplData());
  }
  public org.jamon.Renderer makeRenderer(final RegionStdOutSink sink)
  {
    return new org.jamon.AbstractRenderer() {
      @Override
      public void renderTo(final java.io.Writer jamonWriter)
        throws java.io.IOException
      {
        render(jamonWriter, sink);
      }
    };
  }
  
  public void render(final java.io.Writer jamonWriter, final RegionStdOutSink sink)
    throws java.io.IOException
  {
    renderNoFlush(jamonWriter, sink);
    jamonWriter.flush();
  }
  public void renderNoFlush(final java.io.Writer jamonWriter, final RegionStdOutSink sink)
    throws java.io.IOException
  {
    ImplData implData = getImplData();
    implData.setSink(sink);
    Intf instance = (Intf) getTemplateManager().constructImpl(this);
    instance.renderNoFlush(jamonWriter);
    reset();
  }
  
  
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy