View Javadoc

1   // Autogenerated Jamon proxy
2   // /Users/misty/git/hbase/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/common/TaskMonitorTmpl.jamon
3   
4   package org.apache.hadoop.hbase.tmpl.common;
5   
6   // 20, 1
7   import java.util.*;
8   // 21, 1
9   import org.apache.hadoop.hbase.monitoring.*;
10  // 22, 1
11  import org.apache.hadoop.util.StringUtils;
12  
13  @org.jamon.annotations.Template(
14    signature = "82BD81568AA42B0CFD47F9446183F197",
15    optionalArguments = {
16      @org.jamon.annotations.Argument(name = "format", type = "String"),
17      @org.jamon.annotations.Argument(name = "filter", type = "String"),
18      @org.jamon.annotations.Argument(name = "taskMonitor", type = "TaskMonitor")})
19  public class TaskMonitorTmpl
20    extends org.jamon.AbstractTemplateProxy
21  {
22    
23    public TaskMonitorTmpl(org.jamon.TemplateManager p_manager)
24    {
25       super(p_manager);
26    }
27    
28    public TaskMonitorTmpl()
29    {
30       super("/org/apache/hadoop/hbase/tmpl/common/TaskMonitorTmpl");
31    }
32    
33    protected interface Intf
34      extends org.jamon.AbstractTemplateProxy.Intf{
35      
36      void renderNoFlush(final java.io.Writer jamonWriter) throws java.io.IOException;
37      
38    }
39    public static class ImplData
40      extends org.jamon.AbstractTemplateProxy.ImplData
41    {
42      // 27, 1
43      public void setFormat(String format)
44      {
45        // 27, 1
46        m_format = format;
47        m_format__IsNotDefault = true;
48      }
49      public String getFormat()
50      {
51        return m_format;
52      }
53      private String m_format;
54      public boolean getFormat__IsNotDefault()
55      {
56        return m_format__IsNotDefault;
57      }
58      private boolean m_format__IsNotDefault;
59      // 26, 1
60      public void setFilter(String filter)
61      {
62        // 26, 1
63        m_filter = filter;
64        m_filter__IsNotDefault = true;
65      }
66      public String getFilter()
67      {
68        return m_filter;
69      }
70      private String m_filter;
71      public boolean getFilter__IsNotDefault()
72      {
73        return m_filter__IsNotDefault;
74      }
75      private boolean m_filter__IsNotDefault;
76      // 25, 1
77      public void setTaskMonitor(TaskMonitor taskMonitor)
78      {
79        // 25, 1
80        m_taskMonitor = taskMonitor;
81        m_taskMonitor__IsNotDefault = true;
82      }
83      public TaskMonitor getTaskMonitor()
84      {
85        return m_taskMonitor;
86      }
87      private TaskMonitor m_taskMonitor;
88      public boolean getTaskMonitor__IsNotDefault()
89      {
90        return m_taskMonitor__IsNotDefault;
91      }
92      private boolean m_taskMonitor__IsNotDefault;
93    }
94    @Override
95    protected ImplData makeImplData()
96    {
97      return new ImplData();
98    }
99    @Override @SuppressWarnings("unchecked") public ImplData getImplData()
100   {
101     return (ImplData) super.getImplData();
102   }
103   
104   protected String format;
105   public final org.apache.hadoop.hbase.tmpl.common.TaskMonitorTmpl setFormat(String p_format)
106   {
107     (getImplData()).setFormat(p_format);
108     return this;
109   }
110   
111   protected String filter;
112   public final org.apache.hadoop.hbase.tmpl.common.TaskMonitorTmpl setFilter(String p_filter)
113   {
114     (getImplData()).setFilter(p_filter);
115     return this;
116   }
117   
118   protected TaskMonitor taskMonitor;
119   public final org.apache.hadoop.hbase.tmpl.common.TaskMonitorTmpl setTaskMonitor(TaskMonitor p_taskMonitor)
120   {
121     (getImplData()).setTaskMonitor(p_taskMonitor);
122     return this;
123   }
124   
125   
126   @Override
127   public org.jamon.AbstractTemplateImpl constructImpl(Class<? extends org.jamon.AbstractTemplateImpl> p_class){
128     try
129     {
130       return p_class
131         .getConstructor(new Class [] { org.jamon.TemplateManager.class, ImplData.class })
132         .newInstance(new Object [] { getTemplateManager(), getImplData()});
133     }
134     catch (RuntimeException e)
135     {
136       throw e;
137     }
138     catch (Exception e)
139     {
140       throw new RuntimeException(e);
141     }
142   }
143   
144   @Override
145   protected org.jamon.AbstractTemplateImpl constructImpl(){
146     return new TaskMonitorTmplImpl(getTemplateManager(), getImplData());
147   }
148   public org.jamon.Renderer makeRenderer()
149   {
150     return new org.jamon.AbstractRenderer() {
151       @Override
152       public void renderTo(final java.io.Writer jamonWriter)
153         throws java.io.IOException
154       {
155         render(jamonWriter);
156       }
157     };
158   }
159   
160   public void render(final java.io.Writer jamonWriter)
161     throws java.io.IOException
162   {
163     renderNoFlush(jamonWriter);
164     jamonWriter.flush();
165   }
166   public void renderNoFlush(final java.io.Writer jamonWriter)
167     throws java.io.IOException
168   {
169     Intf instance = (Intf) getTemplateManager().constructImpl(this);
170     instance.renderNoFlush(jamonWriter);
171     reset();
172   }
173   
174   
175 }