View Javadoc

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