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