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