001// Autogenerated Jamon proxy 002// /Users/peter.somogyi/Cloudera/repos/hbase-upstream/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/master/MasterStatusTmpl.jamon 003 004package org.apache.hadoop.hbase.tmpl.master; 005 006// 32, 1 007import java.util.*; 008// 33, 1 009import java.io.IOException; 010// 34, 1 011import org.apache.hadoop.hbase.client.RegionInfo; 012// 35, 1 013import org.apache.hadoop.hbase.client.TableDescriptor; 014// 36, 1 015import org.apache.hadoop.hbase.HBaseConfiguration; 016// 37, 1 017import org.apache.hadoop.hbase.HConstants; 018// 38, 1 019import org.apache.hadoop.hbase.HTableDescriptor; 020// 39, 1 021import org.apache.hadoop.hbase.NamespaceDescriptor; 022// 40, 1 023import org.apache.hadoop.hbase.ServerName; 024// 41, 1 025import org.apache.hadoop.hbase.TableName; 026// 42, 1 027import org.apache.hadoop.hbase.client.Admin; 028// 43, 1 029import org.apache.hadoop.hbase.client.MasterSwitchType; 030// 44, 1 031import org.apache.hadoop.hbase.master.assignment.AssignmentManager; 032// 45, 1 033import org.apache.hadoop.hbase.master.DeadServer; 034// 46, 1 035import org.apache.hadoop.hbase.master.HMaster; 036// 47, 1 037import org.apache.hadoop.hbase.master.RegionState; 038// 48, 1 039import org.apache.hadoop.hbase.master.ServerManager; 040// 49, 1 041import org.apache.hadoop.hbase.protobuf.ProtobufUtil; 042// 50, 1 043import org.apache.hadoop.hbase.quotas.QuotaUtil; 044// 51, 1 045import org.apache.hadoop.hbase.security.access.AccessControlLists; 046// 52, 1 047import org.apache.hadoop.hbase.security.visibility.VisibilityConstants; 048// 53, 1 049import org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotDescription; 050// 54, 1 051import org.apache.hadoop.hbase.tool.Canary; 052// 55, 1 053import org.apache.hadoop.hbase.util.Bytes; 054// 56, 1 055import org.apache.hadoop.hbase.util.FSUtils; 056// 57, 1 057import org.apache.hadoop.hbase.util.JvmVersion; 058// 58, 1 059import org.apache.hadoop.util.StringUtils; 060 061@org.jamon.annotations.Template( 062 signature = "767EF6CBA3457ABF31A306ADBA3A7715", 063 requiredArguments = { 064 @org.jamon.annotations.Argument(name = "master", type = "HMaster")}, 065 optionalArguments = { 066 @org.jamon.annotations.Argument(name = "assignmentManager", type = "AssignmentManager"), 067 @org.jamon.annotations.Argument(name = "catalogJanitorEnabled", type = "boolean"), 068 @org.jamon.annotations.Argument(name = "deadServers", type = "Set<ServerName>"), 069 @org.jamon.annotations.Argument(name = "filter", type = "String"), 070 @org.jamon.annotations.Argument(name = "format", type = "String"), 071 @org.jamon.annotations.Argument(name = "frags", type = "Map<String,Integer>"), 072 @org.jamon.annotations.Argument(name = "metaLocation", type = "ServerName"), 073 @org.jamon.annotations.Argument(name = "serverManager", type = "ServerManager"), 074 @org.jamon.annotations.Argument(name = "servers", type = "List<ServerName>")}) 075public class MasterStatusTmpl 076 extends org.jamon.AbstractTemplateProxy 077{ 078 079 public MasterStatusTmpl(org.jamon.TemplateManager p_manager) 080 { 081 super(p_manager); 082 } 083 084 protected MasterStatusTmpl(String p_path) 085 { 086 super(p_path); 087 } 088 089 public MasterStatusTmpl() 090 { 091 super("/org/apache/hadoop/hbase/tmpl/master/MasterStatusTmpl"); 092 } 093 094 public interface Intf 095 extends org.jamon.AbstractTemplateProxy.Intf 096 { 097 098 void renderNoFlush(final java.io.Writer jamonWriter) throws java.io.IOException; 099 100 } 101 public static class ImplData 102 extends org.jamon.AbstractTemplateProxy.ImplData 103 { 104 // 20, 1 105 public void setMaster(HMaster master) 106 { 107 // 20, 1 108 m_master = master; 109 } 110 public HMaster getMaster() 111 { 112 return m_master; 113 } 114 private HMaster m_master; 115 // 29, 1 116 public void setAssignmentManager(AssignmentManager assignmentManager) 117 { 118 // 29, 1 119 m_assignmentManager = assignmentManager; 120 m_assignmentManager__IsNotDefault = true; 121 } 122 public AssignmentManager getAssignmentManager() 123 { 124 return m_assignmentManager; 125 } 126 private AssignmentManager m_assignmentManager; 127 public boolean getAssignmentManager__IsNotDefault() 128 { 129 return m_assignmentManager__IsNotDefault; 130 } 131 private boolean m_assignmentManager__IsNotDefault; 132 // 25, 1 133 public void setCatalogJanitorEnabled(boolean catalogJanitorEnabled) 134 { 135 // 25, 1 136 m_catalogJanitorEnabled = catalogJanitorEnabled; 137 m_catalogJanitorEnabled__IsNotDefault = true; 138 } 139 public boolean getCatalogJanitorEnabled() 140 { 141 return m_catalogJanitorEnabled; 142 } 143 private boolean m_catalogJanitorEnabled; 144 public boolean getCatalogJanitorEnabled__IsNotDefault() 145 { 146 return m_catalogJanitorEnabled__IsNotDefault; 147 } 148 private boolean m_catalogJanitorEnabled__IsNotDefault; 149 // 24, 1 150 public void setDeadServers(Set<ServerName> deadServers) 151 { 152 // 24, 1 153 m_deadServers = deadServers; 154 m_deadServers__IsNotDefault = true; 155 } 156 public Set<ServerName> getDeadServers() 157 { 158 return m_deadServers; 159 } 160 private Set<ServerName> m_deadServers; 161 public boolean getDeadServers__IsNotDefault() 162 { 163 return m_deadServers__IsNotDefault; 164 } 165 private boolean m_deadServers__IsNotDefault; 166 // 26, 1 167 public void setFilter(String filter) 168 { 169 // 26, 1 170 m_filter = filter; 171 m_filter__IsNotDefault = true; 172 } 173 public String getFilter() 174 { 175 return m_filter; 176 } 177 private String m_filter; 178 public boolean getFilter__IsNotDefault() 179 { 180 return m_filter__IsNotDefault; 181 } 182 private boolean m_filter__IsNotDefault; 183 // 27, 1 184 public void setFormat(String format) 185 { 186 // 27, 1 187 m_format = format; 188 m_format__IsNotDefault = true; 189 } 190 public String getFormat() 191 { 192 return m_format; 193 } 194 private String m_format; 195 public boolean getFormat__IsNotDefault() 196 { 197 return m_format__IsNotDefault; 198 } 199 private boolean m_format__IsNotDefault; 200 // 21, 1 201 public void setFrags(Map<String,Integer> frags) 202 { 203 // 21, 1 204 m_frags = frags; 205 m_frags__IsNotDefault = true; 206 } 207 public Map<String,Integer> getFrags() 208 { 209 return m_frags; 210 } 211 private Map<String,Integer> m_frags; 212 public boolean getFrags__IsNotDefault() 213 { 214 return m_frags__IsNotDefault; 215 } 216 private boolean m_frags__IsNotDefault; 217 // 22, 1 218 public void setMetaLocation(ServerName metaLocation) 219 { 220 // 22, 1 221 m_metaLocation = metaLocation; 222 m_metaLocation__IsNotDefault = true; 223 } 224 public ServerName getMetaLocation() 225 { 226 return m_metaLocation; 227 } 228 private ServerName m_metaLocation; 229 public boolean getMetaLocation__IsNotDefault() 230 { 231 return m_metaLocation__IsNotDefault; 232 } 233 private boolean m_metaLocation__IsNotDefault; 234 // 28, 1 235 public void setServerManager(ServerManager serverManager) 236 { 237 // 28, 1 238 m_serverManager = serverManager; 239 m_serverManager__IsNotDefault = true; 240 } 241 public ServerManager getServerManager() 242 { 243 return m_serverManager; 244 } 245 private ServerManager m_serverManager; 246 public boolean getServerManager__IsNotDefault() 247 { 248 return m_serverManager__IsNotDefault; 249 } 250 private boolean m_serverManager__IsNotDefault; 251 // 23, 1 252 public void setServers(List<ServerName> servers) 253 { 254 // 23, 1 255 m_servers = servers; 256 m_servers__IsNotDefault = true; 257 } 258 public List<ServerName> getServers() 259 { 260 return m_servers; 261 } 262 private List<ServerName> m_servers; 263 public boolean getServers__IsNotDefault() 264 { 265 return m_servers__IsNotDefault; 266 } 267 private boolean m_servers__IsNotDefault; 268 } 269 @Override 270 protected org.jamon.AbstractTemplateProxy.ImplData makeImplData() 271 { 272 return new ImplData(); 273 } 274 @Override public ImplData getImplData() 275 { 276 return (ImplData) super.getImplData(); 277 } 278 279 protected AssignmentManager assignmentManager; 280 public final org.apache.hadoop.hbase.tmpl.master.MasterStatusTmpl setAssignmentManager(AssignmentManager p_assignmentManager) 281 { 282 (getImplData()).setAssignmentManager(p_assignmentManager); 283 return this; 284 } 285 286 protected boolean catalogJanitorEnabled; 287 public final org.apache.hadoop.hbase.tmpl.master.MasterStatusTmpl setCatalogJanitorEnabled(boolean p_catalogJanitorEnabled) 288 { 289 (getImplData()).setCatalogJanitorEnabled(p_catalogJanitorEnabled); 290 return this; 291 } 292 293 protected Set<ServerName> deadServers; 294 public final org.apache.hadoop.hbase.tmpl.master.MasterStatusTmpl setDeadServers(Set<ServerName> p_deadServers) 295 { 296 (getImplData()).setDeadServers(p_deadServers); 297 return this; 298 } 299 300 protected String filter; 301 public final org.apache.hadoop.hbase.tmpl.master.MasterStatusTmpl setFilter(String p_filter) 302 { 303 (getImplData()).setFilter(p_filter); 304 return this; 305 } 306 307 protected String format; 308 public final org.apache.hadoop.hbase.tmpl.master.MasterStatusTmpl setFormat(String p_format) 309 { 310 (getImplData()).setFormat(p_format); 311 return this; 312 } 313 314 protected Map<String,Integer> frags; 315 public final org.apache.hadoop.hbase.tmpl.master.MasterStatusTmpl setFrags(Map<String,Integer> p_frags) 316 { 317 (getImplData()).setFrags(p_frags); 318 return this; 319 } 320 321 protected ServerName metaLocation; 322 public final org.apache.hadoop.hbase.tmpl.master.MasterStatusTmpl setMetaLocation(ServerName p_metaLocation) 323 { 324 (getImplData()).setMetaLocation(p_metaLocation); 325 return this; 326 } 327 328 protected ServerManager serverManager; 329 public final org.apache.hadoop.hbase.tmpl.master.MasterStatusTmpl setServerManager(ServerManager p_serverManager) 330 { 331 (getImplData()).setServerManager(p_serverManager); 332 return this; 333 } 334 335 protected List<ServerName> servers; 336 public final org.apache.hadoop.hbase.tmpl.master.MasterStatusTmpl setServers(List<ServerName> p_servers) 337 { 338 (getImplData()).setServers(p_servers); 339 return this; 340 } 341 342 343 @Override 344 public org.jamon.AbstractTemplateImpl constructImpl(Class<? extends org.jamon.AbstractTemplateImpl> p_class){ 345 try 346 { 347 return p_class 348 .getConstructor(new Class [] { org.jamon.TemplateManager.class, ImplData.class }) 349 .newInstance(new Object [] { getTemplateManager(), getImplData()}); 350 } 351 catch (RuntimeException e) 352 { 353 throw e; 354 } 355 catch (Exception e) 356 { 357 throw new RuntimeException(e); 358 } 359 } 360 361 @Override 362 protected org.jamon.AbstractTemplateImpl constructImpl(){ 363 return new MasterStatusTmplImpl(getTemplateManager(), getImplData()); 364 } 365 public org.jamon.Renderer makeRenderer(final HMaster master) 366 { 367 return new org.jamon.AbstractRenderer() { 368 @Override 369 public void renderTo(final java.io.Writer jamonWriter) 370 throws java.io.IOException 371 { 372 render(jamonWriter, master); 373 } 374 }; 375 } 376 377 public void render(final java.io.Writer jamonWriter, final HMaster master) 378 throws java.io.IOException 379 { 380 renderNoFlush(jamonWriter, master); 381 jamonWriter.flush(); 382 } 383 public void renderNoFlush(final java.io.Writer jamonWriter, final HMaster master) 384 throws java.io.IOException 385 { 386 ImplData implData = getImplData(); 387 implData.setMaster(master); 388 Intf instance = (Intf) getTemplateManager().constructImpl(this); 389 instance.renderNoFlush(jamonWriter); 390 reset(); 391 } 392 393 394}