View Javadoc

1   // Autogenerated Jamon proxy
2   // /Users/stack/checkouts/hbase.git/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.hbase.master.HMaster;
10  // 29, 9
11  import org.apache.hadoop.hbase.ServerLoad;
12  // 30, 9
13  import org.apache.hadoop.hbase.ServerName;
14  // 31, 9
15  import org.apache.hadoop.hbase.client.HBaseAdmin;
16  // 32, 9
17  import org.apache.hadoop.hbase.client.HConnectionManager;
18  // 33, 9
19  import org.apache.hadoop.hbase.HTableDescriptor;
20  // 34, 9
21  import org.apache.hadoop.hbase.HBaseConfiguration;
22  // 35, 9
23  import org.apache.hadoop.hbase.util.VersionInfo;
24  
25  @org.jamon.annotations.Template(
26    signature = "3014D59EE1D8FE3441AA4C8A712CFE31",
27    requiredArguments = {
28      @org.jamon.annotations.Argument(name = "master", type = "HMaster")},
29    optionalArguments = {
30      @org.jamon.annotations.Argument(name = "servers", type = "List<ServerName>")})
31  public class RegionServerListTmpl
32    extends org.jamon.AbstractTemplateProxy
33  {
34    
35    public RegionServerListTmpl(org.jamon.TemplateManager p_manager)
36    {
37       super(p_manager);
38    }
39    
40    protected RegionServerListTmpl(String p_path)
41    {
42      super(p_path);
43    }
44    
45    public RegionServerListTmpl()
46    {
47       super("/org/apache/hadoop/hbase/tmpl/master/RegionServerListTmpl");
48    }
49    
50    public interface Intf
51      extends org.jamon.AbstractTemplateProxy.Intf
52    {
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 org.jamon.AbstractTemplateProxy.ImplData makeImplData()
91    {
92      return new ImplData();
93    }
94    @Override 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 }