001// Autogenerated Jamon proxy 002// /Users/petersomogyi/projects/hbase-upstream/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/master/BackupMasterStatusTmpl.jamon 003 004package org.apache.hadoop.hbase.tmpl.master; 005 006// 23, 1 007import java.util.*; 008// 24, 1 009import org.apache.hadoop.hbase.ServerName; 010// 25, 1 011import org.apache.hadoop.hbase.ClusterMetrics; 012// 26, 1 013import org.apache.hadoop.hbase.master.HMaster; 014// 27, 1 015import org.apache.hadoop.hbase.zookeeper.MasterAddressTracker; 016 017@org.jamon.annotations.Template( 018 signature = "56C686819D246FC91403C879A3FAE8A3", 019 requiredArguments = { 020 @org.jamon.annotations.Argument(name = "master", type = "HMaster")}) 021public class BackupMasterStatusTmpl 022 extends org.jamon.AbstractTemplateProxy 023{ 024 025 public BackupMasterStatusTmpl(org.jamon.TemplateManager p_manager) 026 { 027 super(p_manager); 028 } 029 030 protected BackupMasterStatusTmpl(String p_path) 031 { 032 super(p_path); 033 } 034 035 public BackupMasterStatusTmpl() 036 { 037 super("/org/apache/hadoop/hbase/tmpl/master/BackupMasterStatusTmpl"); 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, 1 051 public void setMaster(HMaster master) 052 { 053 // 20, 1 054 m_master = master; 055 } 056 public HMaster getMaster() 057 { 058 return m_master; 059 } 060 private HMaster m_master; 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 BackupMasterStatusTmplImpl(getTemplateManager(), getImplData()); 094 } 095 public org.jamon.Renderer makeRenderer(final HMaster master) 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, master); 103 } 104 }; 105 } 106 107 public void render(final java.io.Writer jamonWriter, final HMaster master) 108 throws java.io.IOException 109 { 110 renderNoFlush(jamonWriter, master); 111 jamonWriter.flush(); 112 } 113 public void renderNoFlush(final java.io.Writer jamonWriter, final HMaster master) 114 throws java.io.IOException 115 { 116 ImplData implData = getImplData(); 117 implData.setMaster(master); 118 Intf instance = (Intf) getTemplateManager().constructImpl(this); 119 instance.renderNoFlush(jamonWriter); 120 reset(); 121 } 122 123 124}