View Javadoc

1   // Autogenerated Jamon proxy
2   // /var/tmp/hbase-0.94.16/src/main/jamon/org/apache/hadoop/hbase/tmpl/master/BackupMasterStatusTmpl.jamon
3   
4   package org.apache.hadoop.hbase.tmpl.master;
5   
6   // 23, 1
7   import java.util.*;
8   // 24, 1
9   import org.apache.hadoop.hbase.util.Bytes;
10  // 25, 1
11  import org.apache.hadoop.hbase.ServerName;
12  // 26, 1
13  import org.apache.hadoop.hbase.ClusterStatus;
14  // 27, 1
15  import org.apache.hadoop.hbase.master.HMaster;
16  // 28, 1
17  import org.apache.hadoop.hbase.master.ServerManager;
18  // 29, 1
19  import org.apache.hadoop.hbase.master.AssignmentManager;
20  // 30, 1
21  import org.apache.hadoop.hbase.master.ActiveMasterManager;
22  
23  @org.jamon.annotations.Template(
24    signature = "090F5CDDAD95701B0A531F343D263FA8",
25    requiredArguments = {
26      @org.jamon.annotations.Argument(name = "master", type = "HMaster")})
27  public class BackupMasterStatusTmpl
28    extends org.jamon.AbstractTemplateProxy
29  {
30    
31    public BackupMasterStatusTmpl(org.jamon.TemplateManager p_manager)
32    {
33       super(p_manager);
34    }
35    
36    public BackupMasterStatusTmpl()
37    {
38       super("/org/apache/hadoop/hbase/tmpl/master/BackupMasterStatusTmpl");
39    }
40    
41    protected interface Intf
42      extends org.jamon.AbstractTemplateProxy.Intf{
43      
44      void renderNoFlush(final java.io.Writer jamonWriter) throws java.io.IOException;
45      
46    }
47    public static class ImplData
48      extends org.jamon.AbstractTemplateProxy.ImplData
49    {
50      // 20, 1
51      public void setMaster(HMaster master)
52      {
53        // 20, 1
54        m_master = master;
55      }
56      public HMaster getMaster()
57      {
58        return m_master;
59      }
60      private HMaster m_master;
61    }
62    @Override
63    protected ImplData makeImplData()
64    {
65      return new ImplData();
66    }
67    @Override @SuppressWarnings("unchecked") public ImplData getImplData()
68    {
69      return (ImplData) super.getImplData();
70    }
71    
72    
73    @Override
74    public org.jamon.AbstractTemplateImpl constructImpl(Class<? extends org.jamon.AbstractTemplateImpl> p_class){
75      try
76      {
77        return p_class
78          .getConstructor(new Class [] { org.jamon.TemplateManager.class, ImplData.class })
79          .newInstance(new Object [] { getTemplateManager(), getImplData()});
80      }
81      catch (RuntimeException e)
82      {
83        throw e;
84      }
85      catch (Exception e)
86      {
87        throw new RuntimeException(e);
88      }
89    }
90    
91    @Override
92    protected org.jamon.AbstractTemplateImpl constructImpl(){
93      return new BackupMasterStatusTmplImpl(getTemplateManager(), getImplData());
94    }
95    public org.jamon.Renderer makeRenderer(final HMaster master)
96    {
97      return new org.jamon.AbstractRenderer() {
98        @Override
99        public void renderTo(final java.io.Writer jamonWriter)
100         throws java.io.IOException
101       {
102         render(jamonWriter, master);
103       }
104     };
105   }
106   
107   public void render(final java.io.Writer jamonWriter, final HMaster master)
108     throws java.io.IOException
109   {
110     renderNoFlush(jamonWriter, master);
111     jamonWriter.flush();
112   }
113   public void renderNoFlush(final java.io.Writer jamonWriter, final HMaster master)
114     throws java.io.IOException
115   {
116     ImplData implData = getImplData();
117     implData.setMaster(master);
118     Intf instance = (Intf) getTemplateManager().constructImpl(this);
119     instance.renderNoFlush(jamonWriter);
120     reset();
121   }
122   
123   
124 }