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/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  // 28, 1
23  import java.util.List;
24  // 29, 1
25  import java.util.ArrayList;
26  // 30, 1
27  import java.util.Map.Entry;
28  // 31, 1
29  import java.util.Arrays;
30  
31  @org.jamon.annotations.Template(
32    signature = "954C68465765CFCD20F71EC9BAAF1CD1",
33    requiredArguments = {
34      @org.jamon.annotations.Argument(name = "assignmentManager", type = "AssignmentManager")},
35    optionalArguments = {
36      @org.jamon.annotations.Argument(name = "limit", type = "int")})
37  public class AssignmentManagerStatusTmpl
38    extends org.jamon.AbstractTemplateProxy
39  {
40    
41    public AssignmentManagerStatusTmpl(org.jamon.TemplateManager p_manager)
42    {
43       super(p_manager);
44    }
45    
46    protected AssignmentManagerStatusTmpl(String p_path)
47    {
48      super(p_path);
49    }
50    
51    public AssignmentManagerStatusTmpl()
52    {
53       super("/org/apache/hadoop/hbase/tmpl/master/AssignmentManagerStatusTmpl");
54    }
55    
56    public interface Intf
57      extends org.jamon.AbstractTemplateProxy.Intf
58    {
59      
60      void renderNoFlush(final java.io.Writer jamonWriter) throws java.io.IOException;
61      
62    }
63    public static class ImplData
64      extends org.jamon.AbstractTemplateProxy.ImplData
65    {
66      // 34, 1
67      public void setAssignmentManager(AssignmentManager assignmentManager)
68      {
69        // 34, 1
70        m_assignmentManager = assignmentManager;
71      }
72      public AssignmentManager getAssignmentManager()
73      {
74        return m_assignmentManager;
75      }
76      private AssignmentManager m_assignmentManager;
77      // 35, 1
78      public void setLimit(int limit)
79      {
80        // 35, 1
81        m_limit = limit;
82        m_limit__IsNotDefault = true;
83      }
84      public int getLimit()
85      {
86        return m_limit;
87      }
88      private int m_limit;
89      public boolean getLimit__IsNotDefault()
90      {
91        return m_limit__IsNotDefault;
92      }
93      private boolean m_limit__IsNotDefault;
94    }
95    @Override
96    protected org.jamon.AbstractTemplateProxy.ImplData makeImplData()
97    {
98      return new ImplData();
99    }
100   @Override public ImplData getImplData()
101   {
102     return (ImplData) super.getImplData();
103   }
104   
105   protected int limit;
106   public final org.apache.hadoop.hbase.tmpl.master.AssignmentManagerStatusTmpl setLimit(int p_limit)
107   {
108     (getImplData()).setLimit(p_limit);
109     return this;
110   }
111   
112   
113   @Override
114   public org.jamon.AbstractTemplateImpl constructImpl(Class<? extends org.jamon.AbstractTemplateImpl> p_class){
115     try
116     {
117       return p_class
118         .getConstructor(new Class [] { org.jamon.TemplateManager.class, ImplData.class })
119         .newInstance(new Object [] { getTemplateManager(), getImplData()});
120     }
121     catch (RuntimeException e)
122     {
123       throw e;
124     }
125     catch (Exception e)
126     {
127       throw new RuntimeException(e);
128     }
129   }
130   
131   @Override
132   protected org.jamon.AbstractTemplateImpl constructImpl(){
133     return new AssignmentManagerStatusTmplImpl(getTemplateManager(), getImplData());
134   }
135   public org.jamon.Renderer makeRenderer(final AssignmentManager assignmentManager)
136   {
137     return new org.jamon.AbstractRenderer() {
138       @Override
139       public void renderTo(final java.io.Writer jamonWriter)
140         throws java.io.IOException
141       {
142         render(jamonWriter, assignmentManager);
143       }
144     };
145   }
146   
147   public void render(final java.io.Writer jamonWriter, final AssignmentManager assignmentManager)
148     throws java.io.IOException
149   {
150     renderNoFlush(jamonWriter, assignmentManager);
151     jamonWriter.flush();
152   }
153   public void renderNoFlush(final java.io.Writer jamonWriter, final AssignmentManager assignmentManager)
154     throws java.io.IOException
155   {
156     ImplData implData = getImplData();
157     implData.setAssignmentManager(assignmentManager);
158     Intf instance = (Intf) getTemplateManager().constructImpl(this);
159     instance.renderNoFlush(jamonWriter);
160     reset();
161   }
162   
163   
164 }