View Javadoc

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