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