View Javadoc

1   // Autogenerated Jamon proxy
2   // /Users/ndimiduk/repos/hbase/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/master/RegionServerListTmpl.jamon
3   
4   package org.apache.hadoop.hbase.tmpl.master;
5   
6   // 27, 9
7   import java.util.*;
8   // 28, 9
9   import org.apache.hadoop.util.StringUtils;
10  // 29, 9
11  import org.apache.hadoop.hbase.util.Bytes;
12  // 30, 9
13  import org.apache.hadoop.hbase.util.JvmVersion;
14  // 31, 9
15  import org.apache.hadoop.hbase.util.FSUtils;
16  // 32, 9
17  import org.apache.hadoop.hbase.master.HMaster;
18  // 33, 9
19  import org.apache.hadoop.hbase.HConstants;
20  // 34, 9
21  import org.apache.hadoop.hbase.ServerLoad;
22  // 35, 9
23  import org.apache.hadoop.hbase.ServerName;
24  // 36, 9
25  import org.apache.hadoop.hbase.client.HBaseAdmin;
26  // 37, 9
27  import org.apache.hadoop.hbase.HTableDescriptor;
28  // 38, 9
29  import org.apache.hadoop.hbase.HBaseConfiguration;
30  
31  @org.jamon.annotations.Template(
32    signature = "08880C07AE3A2063D0E84D234304C0C7",
33    requiredArguments = {
34      @org.jamon.annotations.Argument(name = "master", type = "HMaster")},
35    optionalArguments = {
36      @org.jamon.annotations.Argument(name = "servers", type = "List<ServerName>")})
37  public class RegionServerListTmpl
38    extends org.jamon.AbstractTemplateProxy
39  {
40    
41    public RegionServerListTmpl(org.jamon.TemplateManager p_manager)
42    {
43       super(p_manager);
44    }
45    
46    public RegionServerListTmpl()
47    {
48       super("/org/apache/hadoop/hbase/tmpl/master/RegionServerListTmpl");
49    }
50    
51    protected interface Intf
52      extends org.jamon.AbstractTemplateProxy.Intf{
53      
54      void renderNoFlush(final java.io.Writer jamonWriter) throws java.io.IOException;
55      
56    }
57    public static class ImplData
58      extends org.jamon.AbstractTemplateProxy.ImplData
59    {
60      // 23, 1
61      public void setMaster(HMaster master)
62      {
63        // 23, 1
64        m_master = master;
65      }
66      public HMaster getMaster()
67      {
68        return m_master;
69      }
70      private HMaster m_master;
71      // 22, 1
72      public void setServers(List<ServerName> servers)
73      {
74        // 22, 1
75        m_servers = servers;
76        m_servers__IsNotDefault = true;
77      }
78      public List<ServerName> getServers()
79      {
80        return m_servers;
81      }
82      private List<ServerName> m_servers;
83      public boolean getServers__IsNotDefault()
84      {
85        return m_servers__IsNotDefault;
86      }
87      private boolean m_servers__IsNotDefault;
88    }
89    @Override
90    protected ImplData makeImplData()
91    {
92      return new ImplData();
93    }
94    @Override @SuppressWarnings("unchecked") public ImplData getImplData()
95    {
96      return (ImplData) super.getImplData();
97    }
98    
99    protected List<ServerName> servers;
100   public final org.apache.hadoop.hbase.tmpl.master.RegionServerListTmpl setServers(List<ServerName> p_servers)
101   {
102     (getImplData()).setServers(p_servers);
103     return this;
104   }
105   
106   
107   @Override
108   public org.jamon.AbstractTemplateImpl constructImpl(Class<? extends org.jamon.AbstractTemplateImpl> p_class){
109     try
110     {
111       return p_class
112         .getConstructor(new Class [] { org.jamon.TemplateManager.class, ImplData.class })
113         .newInstance(new Object [] { getTemplateManager(), getImplData()});
114     }
115     catch (RuntimeException e)
116     {
117       throw e;
118     }
119     catch (Exception e)
120     {
121       throw new RuntimeException(e);
122     }
123   }
124   
125   @Override
126   protected org.jamon.AbstractTemplateImpl constructImpl(){
127     return new RegionServerListTmplImpl(getTemplateManager(), getImplData());
128   }
129   public org.jamon.Renderer makeRenderer(final HMaster master)
130   {
131     return new org.jamon.AbstractRenderer() {
132       @Override
133       public void renderTo(final java.io.Writer jamonWriter)
134         throws java.io.IOException
135       {
136         render(jamonWriter, master);
137       }
138     };
139   }
140   
141   public void render(final java.io.Writer jamonWriter, final HMaster master)
142     throws java.io.IOException
143   {
144     renderNoFlush(jamonWriter, master);
145     jamonWriter.flush();
146   }
147   public void renderNoFlush(final java.io.Writer jamonWriter, final HMaster master)
148     throws java.io.IOException
149   {
150     ImplData implData = getImplData();
151     implData.setMaster(master);
152     Intf instance = (Intf) getTemplateManager().constructImpl(this);
153     instance.renderNoFlush(jamonWriter);
154     reset();
155   }
156   
157   
158 }