View Javadoc

1   // Autogenerated Jamon proxy
2   // /home/jenkins/jenkins-slave/workspace/hbase_generate_website/hbase/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/master/MasterStatusTmpl.jamon
3   
4   package org.apache.hadoop.hbase.tmpl.master;
5   
6   // 32, 1
7   import java.util.*;
8   // 33, 1
9   import org.apache.hadoop.hbase.HBaseConfiguration;
10  // 34, 1
11  import org.apache.hadoop.hbase.HConstants;
12  // 35, 1
13  import org.apache.hadoop.hbase.HRegionInfo;
14  // 36, 1
15  import org.apache.hadoop.hbase.HTableDescriptor;
16  // 37, 1
17  import org.apache.hadoop.hbase.NamespaceDescriptor;
18  // 38, 1
19  import org.apache.hadoop.hbase.ServerLoad;
20  // 39, 1
21  import org.apache.hadoop.hbase.ServerName;
22  // 40, 1
23  import org.apache.hadoop.hbase.TableName;
24  // 41, 1
25  import org.apache.hadoop.hbase.client.Admin;
26  // 42, 1
27  import org.apache.hadoop.hbase.master.AssignmentManager;
28  // 43, 1
29  import org.apache.hadoop.hbase.master.DeadServer;
30  // 44, 1
31  import org.apache.hadoop.hbase.master.HMaster;
32  // 45, 1
33  import org.apache.hadoop.hbase.master.RegionState;
34  // 46, 1
35  import org.apache.hadoop.hbase.master.ServerManager;
36  // 47, 1
37  import org.apache.hadoop.hbase.protobuf.ProtobufUtil;
38  // 48, 1
39  import org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription;
40  // 49, 1
41  import org.apache.hadoop.hbase.quotas.QuotaUtil;
42  // 50, 1
43  import org.apache.hadoop.hbase.security.access.AccessControlLists;
44  // 51, 1
45  import org.apache.hadoop.hbase.security.visibility.VisibilityConstants;
46  // 52, 1
47  import org.apache.hadoop.hbase.tool.Canary;
48  // 53, 1
49  import org.apache.hadoop.hbase.util.Bytes;
50  // 54, 1
51  import org.apache.hadoop.hbase.util.FSUtils;
52  // 55, 1
53  import org.apache.hadoop.hbase.util.JvmVersion;
54  // 56, 1
55  import org.apache.hadoop.util.StringUtils;
56  
57  @org.jamon.annotations.Template(
58    signature = "767EF6CBA3457ABF31A306ADBA3A7715",
59    requiredArguments = {
60      @org.jamon.annotations.Argument(name = "master", type = "HMaster")},
61    optionalArguments = {
62      @org.jamon.annotations.Argument(name = "servers", type = "List<ServerName>"),
63      @org.jamon.annotations.Argument(name = "catalogJanitorEnabled", type = "boolean"),
64      @org.jamon.annotations.Argument(name = "format", type = "String"),
65      @org.jamon.annotations.Argument(name = "filter", type = "String"),
66      @org.jamon.annotations.Argument(name = "serverManager", type = "ServerManager"),
67      @org.jamon.annotations.Argument(name = "deadServers", type = "Set<ServerName>"),
68      @org.jamon.annotations.Argument(name = "assignmentManager", type = "AssignmentManager"),
69      @org.jamon.annotations.Argument(name = "frags", type = "Map<String,Integer>"),
70      @org.jamon.annotations.Argument(name = "metaLocation", type = "ServerName")})
71  public class MasterStatusTmpl
72    extends org.jamon.AbstractTemplateProxy
73  {
74    
75    public MasterStatusTmpl(org.jamon.TemplateManager p_manager)
76    {
77       super(p_manager);
78    }
79    
80    protected MasterStatusTmpl(String p_path)
81    {
82      super(p_path);
83    }
84    
85    public MasterStatusTmpl()
86    {
87       super("/org/apache/hadoop/hbase/tmpl/master/MasterStatusTmpl");
88    }
89    
90    public interface Intf
91      extends org.jamon.AbstractTemplateProxy.Intf
92    {
93      
94      void renderNoFlush(final java.io.Writer jamonWriter) throws java.io.IOException;
95      
96    }
97    public static class ImplData
98      extends org.jamon.AbstractTemplateProxy.ImplData
99    {
100     // 20, 1
101     public void setMaster(HMaster master)
102     {
103       // 20, 1
104       m_master = master;
105     }
106     public HMaster getMaster()
107     {
108       return m_master;
109     }
110     private HMaster m_master;
111     // 23, 1
112     public void setServers(List<ServerName> servers)
113     {
114       // 23, 1
115       m_servers = servers;
116       m_servers__IsNotDefault = true;
117     }
118     public List<ServerName> getServers()
119     {
120       return m_servers;
121     }
122     private List<ServerName> m_servers;
123     public boolean getServers__IsNotDefault()
124     {
125       return m_servers__IsNotDefault;
126     }
127     private boolean m_servers__IsNotDefault;
128     // 25, 1
129     public void setCatalogJanitorEnabled(boolean catalogJanitorEnabled)
130     {
131       // 25, 1
132       m_catalogJanitorEnabled = catalogJanitorEnabled;
133       m_catalogJanitorEnabled__IsNotDefault = true;
134     }
135     public boolean getCatalogJanitorEnabled()
136     {
137       return m_catalogJanitorEnabled;
138     }
139     private boolean m_catalogJanitorEnabled;
140     public boolean getCatalogJanitorEnabled__IsNotDefault()
141     {
142       return m_catalogJanitorEnabled__IsNotDefault;
143     }
144     private boolean m_catalogJanitorEnabled__IsNotDefault;
145     // 27, 1
146     public void setFormat(String format)
147     {
148       // 27, 1
149       m_format = format;
150       m_format__IsNotDefault = true;
151     }
152     public String getFormat()
153     {
154       return m_format;
155     }
156     private String m_format;
157     public boolean getFormat__IsNotDefault()
158     {
159       return m_format__IsNotDefault;
160     }
161     private boolean m_format__IsNotDefault;
162     // 26, 1
163     public void setFilter(String filter)
164     {
165       // 26, 1
166       m_filter = filter;
167       m_filter__IsNotDefault = true;
168     }
169     public String getFilter()
170     {
171       return m_filter;
172     }
173     private String m_filter;
174     public boolean getFilter__IsNotDefault()
175     {
176       return m_filter__IsNotDefault;
177     }
178     private boolean m_filter__IsNotDefault;
179     // 28, 1
180     public void setServerManager(ServerManager serverManager)
181     {
182       // 28, 1
183       m_serverManager = serverManager;
184       m_serverManager__IsNotDefault = true;
185     }
186     public ServerManager getServerManager()
187     {
188       return m_serverManager;
189     }
190     private ServerManager m_serverManager;
191     public boolean getServerManager__IsNotDefault()
192     {
193       return m_serverManager__IsNotDefault;
194     }
195     private boolean m_serverManager__IsNotDefault;
196     // 24, 1
197     public void setDeadServers(Set<ServerName> deadServers)
198     {
199       // 24, 1
200       m_deadServers = deadServers;
201       m_deadServers__IsNotDefault = true;
202     }
203     public Set<ServerName> getDeadServers()
204     {
205       return m_deadServers;
206     }
207     private Set<ServerName> m_deadServers;
208     public boolean getDeadServers__IsNotDefault()
209     {
210       return m_deadServers__IsNotDefault;
211     }
212     private boolean m_deadServers__IsNotDefault;
213     // 29, 1
214     public void setAssignmentManager(AssignmentManager assignmentManager)
215     {
216       // 29, 1
217       m_assignmentManager = assignmentManager;
218       m_assignmentManager__IsNotDefault = true;
219     }
220     public AssignmentManager getAssignmentManager()
221     {
222       return m_assignmentManager;
223     }
224     private AssignmentManager m_assignmentManager;
225     public boolean getAssignmentManager__IsNotDefault()
226     {
227       return m_assignmentManager__IsNotDefault;
228     }
229     private boolean m_assignmentManager__IsNotDefault;
230     // 21, 1
231     public void setFrags(Map<String,Integer> frags)
232     {
233       // 21, 1
234       m_frags = frags;
235       m_frags__IsNotDefault = true;
236     }
237     public Map<String,Integer> getFrags()
238     {
239       return m_frags;
240     }
241     private Map<String,Integer> m_frags;
242     public boolean getFrags__IsNotDefault()
243     {
244       return m_frags__IsNotDefault;
245     }
246     private boolean m_frags__IsNotDefault;
247     // 22, 1
248     public void setMetaLocation(ServerName metaLocation)
249     {
250       // 22, 1
251       m_metaLocation = metaLocation;
252       m_metaLocation__IsNotDefault = true;
253     }
254     public ServerName getMetaLocation()
255     {
256       return m_metaLocation;
257     }
258     private ServerName m_metaLocation;
259     public boolean getMetaLocation__IsNotDefault()
260     {
261       return m_metaLocation__IsNotDefault;
262     }
263     private boolean m_metaLocation__IsNotDefault;
264   }
265   @Override
266   protected org.jamon.AbstractTemplateProxy.ImplData makeImplData()
267   {
268     return new ImplData();
269   }
270   @Override public ImplData getImplData()
271   {
272     return (ImplData) super.getImplData();
273   }
274   
275   protected List<ServerName> servers;
276   public final org.apache.hadoop.hbase.tmpl.master.MasterStatusTmpl setServers(List<ServerName> p_servers)
277   {
278     (getImplData()).setServers(p_servers);
279     return this;
280   }
281   
282   protected boolean catalogJanitorEnabled;
283   public final org.apache.hadoop.hbase.tmpl.master.MasterStatusTmpl setCatalogJanitorEnabled(boolean p_catalogJanitorEnabled)
284   {
285     (getImplData()).setCatalogJanitorEnabled(p_catalogJanitorEnabled);
286     return this;
287   }
288   
289   protected String format;
290   public final org.apache.hadoop.hbase.tmpl.master.MasterStatusTmpl setFormat(String p_format)
291   {
292     (getImplData()).setFormat(p_format);
293     return this;
294   }
295   
296   protected String filter;
297   public final org.apache.hadoop.hbase.tmpl.master.MasterStatusTmpl setFilter(String p_filter)
298   {
299     (getImplData()).setFilter(p_filter);
300     return this;
301   }
302   
303   protected ServerManager serverManager;
304   public final org.apache.hadoop.hbase.tmpl.master.MasterStatusTmpl setServerManager(ServerManager p_serverManager)
305   {
306     (getImplData()).setServerManager(p_serverManager);
307     return this;
308   }
309   
310   protected Set<ServerName> deadServers;
311   public final org.apache.hadoop.hbase.tmpl.master.MasterStatusTmpl setDeadServers(Set<ServerName> p_deadServers)
312   {
313     (getImplData()).setDeadServers(p_deadServers);
314     return this;
315   }
316   
317   protected AssignmentManager assignmentManager;
318   public final org.apache.hadoop.hbase.tmpl.master.MasterStatusTmpl setAssignmentManager(AssignmentManager p_assignmentManager)
319   {
320     (getImplData()).setAssignmentManager(p_assignmentManager);
321     return this;
322   }
323   
324   protected Map<String,Integer> frags;
325   public final org.apache.hadoop.hbase.tmpl.master.MasterStatusTmpl setFrags(Map<String,Integer> p_frags)
326   {
327     (getImplData()).setFrags(p_frags);
328     return this;
329   }
330   
331   protected ServerName metaLocation;
332   public final org.apache.hadoop.hbase.tmpl.master.MasterStatusTmpl setMetaLocation(ServerName p_metaLocation)
333   {
334     (getImplData()).setMetaLocation(p_metaLocation);
335     return this;
336   }
337   
338   
339   @Override
340   public org.jamon.AbstractTemplateImpl constructImpl(Class<? extends org.jamon.AbstractTemplateImpl> p_class){
341     try
342     {
343       return p_class
344         .getConstructor(new Class [] { org.jamon.TemplateManager.class, ImplData.class })
345         .newInstance(new Object [] { getTemplateManager(), getImplData()});
346     }
347     catch (RuntimeException e)
348     {
349       throw e;
350     }
351     catch (Exception e)
352     {
353       throw new RuntimeException(e);
354     }
355   }
356   
357   @Override
358   protected org.jamon.AbstractTemplateImpl constructImpl(){
359     return new MasterStatusTmplImpl(getTemplateManager(), getImplData());
360   }
361   public org.jamon.Renderer makeRenderer(final HMaster master)
362   {
363     return new org.jamon.AbstractRenderer() {
364       @Override
365       public void renderTo(final java.io.Writer jamonWriter)
366         throws java.io.IOException
367       {
368         render(jamonWriter, master);
369       }
370     };
371   }
372   
373   public void render(final java.io.Writer jamonWriter, final HMaster master)
374     throws java.io.IOException
375   {
376     renderNoFlush(jamonWriter, master);
377     jamonWriter.flush();
378   }
379   public void renderNoFlush(final java.io.Writer jamonWriter, final HMaster master)
380     throws java.io.IOException
381   {
382     ImplData implData = getImplData();
383     implData.setMaster(master);
384     Intf instance = (Intf) getTemplateManager().constructImpl(this);
385     instance.renderNoFlush(jamonWriter);
386     reset();
387   }
388   
389   
390 }