View Javadoc

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