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