View Javadoc

1   // Autogenerated Jamon proxy
2   // /var/tmp/hbase-0.94.16/src/main/jamon/org/apache/hadoop/hbase/tmpl/master/AssignmentManagerStatusTmpl.jamon
3   
4   package org.apache.hadoop.hbase.tmpl.master;
5   
6   // 21, 1
7   import org.apache.hadoop.hbase.HRegionInfo;
8   // 22, 1
9   import org.apache.hadoop.hbase.master.AssignmentManager;
10  // 23, 1
11  import org.apache.hadoop.hbase.master.AssignmentManager.RegionState;
12  // 24, 1
13  import java.util.Iterator;
14  // 25, 1
15  import java.util.Map;
16  
17  @org.jamon.annotations.Template(
18    signature = "3C49EE1B6C5A45F59779801683F3057B",
19    requiredArguments = {
20      @org.jamon.annotations.Argument(name = "assignmentManager", type = "AssignmentManager")},
21    optionalArguments = {
22      @org.jamon.annotations.Argument(name = "limit", type = "int")})
23  public class AssignmentManagerStatusTmpl
24    extends org.jamon.AbstractTemplateProxy
25  {
26    
27    public AssignmentManagerStatusTmpl(org.jamon.TemplateManager p_manager)
28    {
29       super(p_manager);
30    }
31    
32    public AssignmentManagerStatusTmpl()
33    {
34       super("/org/apache/hadoop/hbase/tmpl/master/AssignmentManagerStatusTmpl");
35    }
36    
37    protected interface Intf
38      extends org.jamon.AbstractTemplateProxy.Intf{
39      
40      void renderNoFlush(final java.io.Writer jamonWriter) throws java.io.IOException;
41      
42    }
43    public static class ImplData
44      extends org.jamon.AbstractTemplateProxy.ImplData
45    {
46      // 28, 1
47      public void setAssignmentManager(AssignmentManager assignmentManager)
48      {
49        // 28, 1
50        m_assignmentManager = assignmentManager;
51      }
52      public AssignmentManager getAssignmentManager()
53      {
54        return m_assignmentManager;
55      }
56      private AssignmentManager m_assignmentManager;
57      // 29, 1
58      public void setLimit(int limit)
59      {
60        // 29, 1
61        m_limit = limit;
62        m_limit__IsNotDefault = true;
63      }
64      public int getLimit()
65      {
66        return m_limit;
67      }
68      private int m_limit;
69      public boolean getLimit__IsNotDefault()
70      {
71        return m_limit__IsNotDefault;
72      }
73      private boolean m_limit__IsNotDefault;
74    }
75    @Override
76    protected ImplData makeImplData()
77    {
78      return new ImplData();
79    }
80    @Override @SuppressWarnings("unchecked") public ImplData getImplData()
81    {
82      return (ImplData) super.getImplData();
83    }
84    
85    protected int limit;
86    public final org.apache.hadoop.hbase.tmpl.master.AssignmentManagerStatusTmpl setLimit(int p_limit)
87    {
88      (getImplData()).setLimit(p_limit);
89      return this;
90    }
91    
92    
93    @Override
94    public org.jamon.AbstractTemplateImpl constructImpl(Class<? extends org.jamon.AbstractTemplateImpl> p_class){
95      try
96      {
97        return p_class
98          .getConstructor(new Class [] { org.jamon.TemplateManager.class, ImplData.class })
99          .newInstance(new Object [] { getTemplateManager(), getImplData()});
100     }
101     catch (RuntimeException e)
102     {
103       throw e;
104     }
105     catch (Exception e)
106     {
107       throw new RuntimeException(e);
108     }
109   }
110   
111   @Override
112   protected org.jamon.AbstractTemplateImpl constructImpl(){
113     return new AssignmentManagerStatusTmplImpl(getTemplateManager(), getImplData());
114   }
115   public org.jamon.Renderer makeRenderer(final AssignmentManager assignmentManager)
116   {
117     return new org.jamon.AbstractRenderer() {
118       @Override
119       public void renderTo(final java.io.Writer jamonWriter)
120         throws java.io.IOException
121       {
122         render(jamonWriter, assignmentManager);
123       }
124     };
125   }
126   
127   public void render(final java.io.Writer jamonWriter, final AssignmentManager assignmentManager)
128     throws java.io.IOException
129   {
130     renderNoFlush(jamonWriter, assignmentManager);
131     jamonWriter.flush();
132   }
133   public void renderNoFlush(final java.io.Writer jamonWriter, final AssignmentManager assignmentManager)
134     throws java.io.IOException
135   {
136     ImplData implData = getImplData();
137     implData.setAssignmentManager(assignmentManager);
138     Intf instance = (Intf) getTemplateManager().constructImpl(this);
139     instance.renderNoFlush(jamonWriter);
140     reset();
141   }
142   
143   
144 }