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