View Javadoc

1   // Autogenerated Jamon proxy
2   // /Users/misty/git/hbase/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/master/AssignmentManagerStatusTmpl.jamon
3   
4   package org.apache.hadoop.hbase.tmpl.master;
5   
6   // 20, 1
7   import org.apache.hadoop.hbase.HRegionInfo;
8   // 21, 1
9   import org.apache.hadoop.hbase.master.AssignmentManager;
10  // 22, 1
11  import org.apache.hadoop.hbase.master.RegionState;
12  // 23, 1
13  import org.apache.hadoop.conf.Configuration;
14  // 24, 1
15  import org.apache.hadoop.hbase.HBaseConfiguration;
16  // 25, 1
17  import org.apache.hadoop.hbase.HConstants;
18  // 26, 1
19  import java.util.Iterator;
20  // 27, 1
21  import java.util.Map;
22  
23  @org.jamon.annotations.Template(
24    signature = "3C49EE1B6C5A45F59779801683F3057B",
25    requiredArguments = {
26      @org.jamon.annotations.Argument(name = "assignmentManager", type = "AssignmentManager")},
27    optionalArguments = {
28      @org.jamon.annotations.Argument(name = "limit", type = "int")})
29  public class AssignmentManagerStatusTmpl
30    extends org.jamon.AbstractTemplateProxy
31  {
32    
33    public AssignmentManagerStatusTmpl(org.jamon.TemplateManager p_manager)
34    {
35       super(p_manager);
36    }
37    
38    public AssignmentManagerStatusTmpl()
39    {
40       super("/org/apache/hadoop/hbase/tmpl/master/AssignmentManagerStatusTmpl");
41    }
42    
43    protected interface Intf
44      extends org.jamon.AbstractTemplateProxy.Intf{
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      // 30, 1
53      public void setAssignmentManager(AssignmentManager assignmentManager)
54      {
55        // 30, 1
56        m_assignmentManager = assignmentManager;
57      }
58      public AssignmentManager getAssignmentManager()
59      {
60        return m_assignmentManager;
61      }
62      private AssignmentManager m_assignmentManager;
63      // 31, 1
64      public void setLimit(int limit)
65      {
66        // 31, 1
67        m_limit = limit;
68        m_limit__IsNotDefault = true;
69      }
70      public int getLimit()
71      {
72        return m_limit;
73      }
74      private int m_limit;
75      public boolean getLimit__IsNotDefault()
76      {
77        return m_limit__IsNotDefault;
78      }
79      private boolean m_limit__IsNotDefault;
80    }
81    @Override
82    protected ImplData makeImplData()
83    {
84      return new ImplData();
85    }
86    @Override @SuppressWarnings("unchecked") public ImplData getImplData()
87    {
88      return (ImplData) super.getImplData();
89    }
90    
91    protected int limit;
92    public final org.apache.hadoop.hbase.tmpl.master.AssignmentManagerStatusTmpl setLimit(int p_limit)
93    {
94      (getImplData()).setLimit(p_limit);
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 AssignmentManagerStatusTmplImpl(getTemplateManager(), getImplData());
120   }
121   public org.jamon.Renderer makeRenderer(final AssignmentManager assignmentManager)
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, assignmentManager);
129       }
130     };
131   }
132   
133   public void render(final java.io.Writer jamonWriter, final AssignmentManager assignmentManager)
134     throws java.io.IOException
135   {
136     renderNoFlush(jamonWriter, assignmentManager);
137     jamonWriter.flush();
138   }
139   public void renderNoFlush(final java.io.Writer jamonWriter, final AssignmentManager assignmentManager)
140     throws java.io.IOException
141   {
142     ImplData implData = getImplData();
143     implData.setAssignmentManager(assignmentManager);
144     Intf instance = (Intf) getTemplateManager().constructImpl(this);
145     instance.renderNoFlush(jamonWriter);
146     reset();
147   }
148   
149   
150 }