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