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