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/regionserver/RSStatusTmpl.jamon
3   
4   package org.apache.hadoop.hbase.tmpl.regionserver;
5   
6   // 27, 1
7   import java.util.*;
8   // 28, 1
9   import org.apache.hadoop.hbase.regionserver.HRegionServer;
10  // 29, 1
11  import org.apache.hadoop.hbase.HRegionInfo;
12  // 30, 1
13  import org.apache.hadoop.hbase.ServerName;
14  // 31, 1
15  import org.apache.hadoop.hbase.HBaseConfiguration;
16  // 32, 1
17  import org.apache.hadoop.hbase.protobuf.ProtobufUtil;
18  // 33, 1
19  import org.apache.hadoop.hbase.protobuf.generated.AdminProtos.ServerInfo;
20  // 34, 1
21  import org.apache.hadoop.hbase.zookeeper.MasterAddressTracker;
22  
23  @org.jamon.annotations.Template(
24    signature = "223F582EC45E4EC7316F767108E87B08",
25    requiredArguments = {
26      @org.jamon.annotations.Argument(name = "regionServer", type = "HRegionServer")},
27    optionalArguments = {
28      @org.jamon.annotations.Argument(name = "format", type = "String"),
29      @org.jamon.annotations.Argument(name = "filter", type = "String"),
30      @org.jamon.annotations.Argument(name = "bcv", type = "String"),
31      @org.jamon.annotations.Argument(name = "bcn", type = "String")})
32  public class RSStatusTmpl
33    extends org.jamon.AbstractTemplateProxy
34  {
35    
36    public RSStatusTmpl(org.jamon.TemplateManager p_manager)
37    {
38       super(p_manager);
39    }
40    
41    protected RSStatusTmpl(String p_path)
42    {
43      super(p_path);
44    }
45    
46    public RSStatusTmpl()
47    {
48       super("/org/apache/hadoop/hbase/tmpl/regionserver/RSStatusTmpl");
49    }
50    
51    public interface Intf
52      extends org.jamon.AbstractTemplateProxy.Intf
53    {
54      
55      void renderNoFlush(final java.io.Writer jamonWriter) throws java.io.IOException;
56      
57    }
58    public static class ImplData
59      extends org.jamon.AbstractTemplateProxy.ImplData
60    {
61      // 20, 1
62      public void setRegionServer(HRegionServer regionServer)
63      {
64        // 20, 1
65        m_regionServer = regionServer;
66      }
67      public HRegionServer getRegionServer()
68      {
69        return m_regionServer;
70      }
71      private HRegionServer m_regionServer;
72      // 22, 1
73      public void setFormat(String format)
74      {
75        // 22, 1
76        m_format = format;
77        m_format__IsNotDefault = true;
78      }
79      public String getFormat()
80      {
81        return m_format;
82      }
83      private String m_format;
84      public boolean getFormat__IsNotDefault()
85      {
86        return m_format__IsNotDefault;
87      }
88      private boolean m_format__IsNotDefault;
89      // 21, 1
90      public void setFilter(String filter)
91      {
92        // 21, 1
93        m_filter = filter;
94        m_filter__IsNotDefault = true;
95      }
96      public String getFilter()
97      {
98        return m_filter;
99      }
100     private String m_filter;
101     public boolean getFilter__IsNotDefault()
102     {
103       return m_filter__IsNotDefault;
104     }
105     private boolean m_filter__IsNotDefault;
106     // 24, 1
107     public void setBcv(String bcv)
108     {
109       // 24, 1
110       m_bcv = bcv;
111       m_bcv__IsNotDefault = true;
112     }
113     public String getBcv()
114     {
115       return m_bcv;
116     }
117     private String m_bcv;
118     public boolean getBcv__IsNotDefault()
119     {
120       return m_bcv__IsNotDefault;
121     }
122     private boolean m_bcv__IsNotDefault;
123     // 23, 1
124     public void setBcn(String bcn)
125     {
126       // 23, 1
127       m_bcn = bcn;
128       m_bcn__IsNotDefault = true;
129     }
130     public String getBcn()
131     {
132       return m_bcn;
133     }
134     private String m_bcn;
135     public boolean getBcn__IsNotDefault()
136     {
137       return m_bcn__IsNotDefault;
138     }
139     private boolean m_bcn__IsNotDefault;
140   }
141   @Override
142   protected org.jamon.AbstractTemplateProxy.ImplData makeImplData()
143   {
144     return new ImplData();
145   }
146   @Override public ImplData getImplData()
147   {
148     return (ImplData) super.getImplData();
149   }
150   
151   protected String format;
152   public final org.apache.hadoop.hbase.tmpl.regionserver.RSStatusTmpl setFormat(String p_format)
153   {
154     (getImplData()).setFormat(p_format);
155     return this;
156   }
157   
158   protected String filter;
159   public final org.apache.hadoop.hbase.tmpl.regionserver.RSStatusTmpl setFilter(String p_filter)
160   {
161     (getImplData()).setFilter(p_filter);
162     return this;
163   }
164   
165   protected String bcv;
166   public final org.apache.hadoop.hbase.tmpl.regionserver.RSStatusTmpl setBcv(String p_bcv)
167   {
168     (getImplData()).setBcv(p_bcv);
169     return this;
170   }
171   
172   protected String bcn;
173   public final org.apache.hadoop.hbase.tmpl.regionserver.RSStatusTmpl setBcn(String p_bcn)
174   {
175     (getImplData()).setBcn(p_bcn);
176     return this;
177   }
178   
179   
180   @Override
181   public org.jamon.AbstractTemplateImpl constructImpl(Class<? extends org.jamon.AbstractTemplateImpl> p_class){
182     try
183     {
184       return p_class
185         .getConstructor(new Class [] { org.jamon.TemplateManager.class, ImplData.class })
186         .newInstance(new Object [] { getTemplateManager(), getImplData()});
187     }
188     catch (RuntimeException e)
189     {
190       throw e;
191     }
192     catch (Exception e)
193     {
194       throw new RuntimeException(e);
195     }
196   }
197   
198   @Override
199   protected org.jamon.AbstractTemplateImpl constructImpl(){
200     return new RSStatusTmplImpl(getTemplateManager(), getImplData());
201   }
202   public org.jamon.Renderer makeRenderer(final HRegionServer regionServer)
203   {
204     return new org.jamon.AbstractRenderer() {
205       @Override
206       public void renderTo(final java.io.Writer jamonWriter)
207         throws java.io.IOException
208       {
209         render(jamonWriter, regionServer);
210       }
211     };
212   }
213   
214   public void render(final java.io.Writer jamonWriter, final HRegionServer regionServer)
215     throws java.io.IOException
216   {
217     renderNoFlush(jamonWriter, regionServer);
218     jamonWriter.flush();
219   }
220   public void renderNoFlush(final java.io.Writer jamonWriter, final HRegionServer regionServer)
221     throws java.io.IOException
222   {
223     ImplData implData = getImplData();
224     implData.setRegionServer(regionServer);
225     Intf instance = (Intf) getTemplateManager().constructImpl(this);
226     instance.renderNoFlush(jamonWriter);
227     reset();
228   }
229   
230   
231 }