001// Autogenerated Jamon proxy 002// /Users/petersomogyi/projects/hbase-upstream/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/master/RegionServerListTmpl.jamon 003 004package org.apache.hadoop.hbase.tmpl.master; 005 006// 27, 9 007import java.util.*; 008// 28, 9 009import org.apache.hadoop.hbase.master.HMaster; 010// 29, 9 011import org.apache.hadoop.hbase.procedure2.util.StringUtils; 012// 30, 9 013import org.apache.hadoop.hbase.replication.ReplicationLoadSource; 014// 31, 9 015import org.apache.hadoop.hbase.RegionMetrics; 016// 32, 9 017import org.apache.hadoop.hbase.ServerMetrics; 018// 33, 9 019import org.apache.hadoop.hbase.ServerName; 020// 34, 9 021import org.apache.hadoop.hbase.Size; 022// 35, 9 023import org.apache.hadoop.hbase.util.VersionInfo; 024// 36, 9 025import org.apache.hadoop.hbase.util.Pair; 026// 37, 9 027import org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix; 028 029@org.jamon.annotations.Template( 030 signature = "3014D59EE1D8FE3441AA4C8A712CFE31", 031 requiredArguments = { 032 @org.jamon.annotations.Argument(name = "master", type = "HMaster")}, 033 optionalArguments = { 034 @org.jamon.annotations.Argument(name = "servers", type = "List<ServerName>")}) 035public class RegionServerListTmpl 036 extends org.jamon.AbstractTemplateProxy 037{ 038 039 public RegionServerListTmpl(org.jamon.TemplateManager p_manager) 040 { 041 super(p_manager); 042 } 043 044 protected RegionServerListTmpl(String p_path) 045 { 046 super(p_path); 047 } 048 049 public RegionServerListTmpl() 050 { 051 super("/org/apache/hadoop/hbase/tmpl/master/RegionServerListTmpl"); 052 } 053 054 public interface Intf 055 extends org.jamon.AbstractTemplateProxy.Intf 056 { 057 058 void renderNoFlush(final java.io.Writer jamonWriter) throws java.io.IOException; 059 060 } 061 public static class ImplData 062 extends org.jamon.AbstractTemplateProxy.ImplData 063 { 064 // 23, 1 065 public void setMaster(HMaster master) 066 { 067 // 23, 1 068 m_master = master; 069 } 070 public HMaster getMaster() 071 { 072 return m_master; 073 } 074 private HMaster m_master; 075 // 22, 1 076 public void setServers(List<ServerName> servers) 077 { 078 // 22, 1 079 m_servers = servers; 080 m_servers__IsNotDefault = true; 081 } 082 public List<ServerName> getServers() 083 { 084 return m_servers; 085 } 086 private List<ServerName> m_servers; 087 public boolean getServers__IsNotDefault() 088 { 089 return m_servers__IsNotDefault; 090 } 091 private boolean m_servers__IsNotDefault; 092 } 093 @Override 094 protected org.jamon.AbstractTemplateProxy.ImplData makeImplData() 095 { 096 return new ImplData(); 097 } 098 @Override public ImplData getImplData() 099 { 100 return (ImplData) super.getImplData(); 101 } 102 103 protected List<ServerName> servers; 104 public final org.apache.hadoop.hbase.tmpl.master.RegionServerListTmpl setServers(List<ServerName> p_servers) 105 { 106 (getImplData()).setServers(p_servers); 107 return this; 108 } 109 110 111 @Override 112 public org.jamon.AbstractTemplateImpl constructImpl(Class<? extends org.jamon.AbstractTemplateImpl> p_class){ 113 try 114 { 115 return p_class 116 .getConstructor(new Class [] { org.jamon.TemplateManager.class, ImplData.class }) 117 .newInstance(new Object [] { getTemplateManager(), getImplData()}); 118 } 119 catch (RuntimeException e) 120 { 121 throw e; 122 } 123 catch (Exception e) 124 { 125 throw new RuntimeException(e); 126 } 127 } 128 129 @Override 130 protected org.jamon.AbstractTemplateImpl constructImpl(){ 131 return new RegionServerListTmplImpl(getTemplateManager(), getImplData()); 132 } 133 public org.jamon.Renderer makeRenderer(final HMaster master) 134 { 135 return new org.jamon.AbstractRenderer() { 136 @Override 137 public void renderTo(final java.io.Writer jamonWriter) 138 throws java.io.IOException 139 { 140 render(jamonWriter, master); 141 } 142 }; 143 } 144 145 public void render(final java.io.Writer jamonWriter, final HMaster master) 146 throws java.io.IOException 147 { 148 renderNoFlush(jamonWriter, master); 149 jamonWriter.flush(); 150 } 151 public void renderNoFlush(final java.io.Writer jamonWriter, final HMaster master) 152 throws java.io.IOException 153 { 154 ImplData implData = getImplData(); 155 implData.setMaster(master); 156 Intf instance = (Intf) getTemplateManager().constructImpl(this); 157 instance.renderNoFlush(jamonWriter); 158 reset(); 159 } 160 161 162}