View Javadoc

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