All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.hadoop.hbase.tmpl.master.MasterStatusTmpl Maven / Gradle / Ivy

There is a newer version: 3.0.0-beta-1
Show newest version
// Autogenerated Jamon proxy
// /home/apurtell/src/hbase/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/master/MasterStatusTmpl.jamon

package org.apache.hadoop.hbase.tmpl.master;

// 33, 1
import java.util.*;
// 34, 1
import org.apache.hadoop.util.StringUtils;
// 35, 1
import org.apache.hadoop.hbase.util.Bytes;
// 36, 1
import org.apache.hadoop.hbase.util.JvmVersion;
// 37, 1
import org.apache.hadoop.hbase.util.FSUtils;
// 38, 1
import org.apache.hadoop.hbase.master.HMaster;
// 39, 1
import org.apache.hadoop.hbase.master.AssignmentManager;
// 40, 1
import org.apache.hadoop.hbase.master.ServerManager;
// 41, 1
import org.apache.hadoop.hbase.HConstants;
// 42, 1
import org.apache.hadoop.hbase.NamespaceDescriptor;
// 43, 1
import org.apache.hadoop.hbase.ServerLoad;
// 44, 1
import org.apache.hadoop.hbase.ServerName;
// 45, 1
import org.apache.hadoop.hbase.client.HBaseAdmin;
// 46, 1
import org.apache.hadoop.hbase.client.HConnectionManager;
// 47, 1
import org.apache.hadoop.hbase.HRegionInfo;
// 48, 1
import org.apache.hadoop.hbase.master.RegionState;
// 49, 1
import org.apache.hadoop.hbase.HTableDescriptor;
// 50, 1
import org.apache.hadoop.hbase.HBaseConfiguration;
// 51, 1
import org.apache.hadoop.hbase.TableName;
// 52, 1
import org.apache.hadoop.hbase.tool.Canary;
// 53, 1
import org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription;
// 54, 1
import org.apache.hadoop.hbase.master.DeadServer;
// 55, 1
import org.apache.hadoop.hbase.protobuf.ProtobufUtil;
// 56, 1
import org.apache.hadoop.hbase.security.visibility.VisibilityConstants;
// 57, 1
import org.apache.hadoop.hbase.security.access.AccessControlLists;

@org.jamon.annotations.Template(
  signature = "C082601F33DF9A404CF9A5533CBEB8BB",
  requiredArguments = {
    @org.jamon.annotations.Argument(name = "master", type = "HMaster"),
    @org.jamon.annotations.Argument(name = "admin", type = "HBaseAdmin")},
  optionalArguments = {
    @org.jamon.annotations.Argument(name = "frags", type = "Map"),
    @org.jamon.annotations.Argument(name = "servers", type = "List"),
    @org.jamon.annotations.Argument(name = "serverManager", type = "ServerManager"),
    @org.jamon.annotations.Argument(name = "format", type = "String"),
    @org.jamon.annotations.Argument(name = "catalogJanitorEnabled", type = "boolean"),
    @org.jamon.annotations.Argument(name = "filter", type = "String"),
    @org.jamon.annotations.Argument(name = "assignmentManager", type = "AssignmentManager"),
    @org.jamon.annotations.Argument(name = "metaLocation", type = "ServerName"),
    @org.jamon.annotations.Argument(name = "deadServers", type = "Set")})
public class MasterStatusTmpl
  extends org.jamon.AbstractTemplateProxy
{
  
  public MasterStatusTmpl(org.jamon.TemplateManager p_manager)
  {
     super(p_manager);
  }
  
  protected MasterStatusTmpl(String p_path)
  {
    super(p_path);
  }
  
  public MasterStatusTmpl()
  {
     super("/org/apache/hadoop/hbase/tmpl/master/MasterStatusTmpl");
  }
  
  public interface Intf
    extends org.jamon.AbstractTemplateProxy.Intf
  {
    
    void renderNoFlush(final java.io.Writer jamonWriter) throws java.io.IOException;
    
  }
  public static class ImplData
    extends org.jamon.AbstractTemplateProxy.ImplData
  {
    // 20, 1
    public void setMaster(HMaster master)
    {
      // 20, 1
      m_master = master;
    }
    public HMaster getMaster()
    {
      return m_master;
    }
    private HMaster m_master;
    // 21, 1
    public void setAdmin(HBaseAdmin admin)
    {
      // 21, 1
      m_admin = admin;
    }
    public HBaseAdmin getAdmin()
    {
      return m_admin;
    }
    private HBaseAdmin m_admin;
    // 22, 1
    public void setFrags(Map frags)
    {
      // 22, 1
      m_frags = frags;
      m_frags__IsNotDefault = true;
    }
    public Map getFrags()
    {
      return m_frags;
    }
    private Map m_frags;
    public boolean getFrags__IsNotDefault()
    {
      return m_frags__IsNotDefault;
    }
    private boolean m_frags__IsNotDefault;
    // 24, 1
    public void setServers(List servers)
    {
      // 24, 1
      m_servers = servers;
      m_servers__IsNotDefault = true;
    }
    public List getServers()
    {
      return m_servers;
    }
    private List m_servers;
    public boolean getServers__IsNotDefault()
    {
      return m_servers__IsNotDefault;
    }
    private boolean m_servers__IsNotDefault;
    // 29, 1
    public void setServerManager(ServerManager serverManager)
    {
      // 29, 1
      m_serverManager = serverManager;
      m_serverManager__IsNotDefault = true;
    }
    public ServerManager getServerManager()
    {
      return m_serverManager;
    }
    private ServerManager m_serverManager;
    public boolean getServerManager__IsNotDefault()
    {
      return m_serverManager__IsNotDefault;
    }
    private boolean m_serverManager__IsNotDefault;
    // 28, 1
    public void setFormat(String format)
    {
      // 28, 1
      m_format = format;
      m_format__IsNotDefault = true;
    }
    public String getFormat()
    {
      return m_format;
    }
    private String m_format;
    public boolean getFormat__IsNotDefault()
    {
      return m_format__IsNotDefault;
    }
    private boolean m_format__IsNotDefault;
    // 26, 1
    public void setCatalogJanitorEnabled(boolean catalogJanitorEnabled)
    {
      // 26, 1
      m_catalogJanitorEnabled = catalogJanitorEnabled;
      m_catalogJanitorEnabled__IsNotDefault = true;
    }
    public boolean getCatalogJanitorEnabled()
    {
      return m_catalogJanitorEnabled;
    }
    private boolean m_catalogJanitorEnabled;
    public boolean getCatalogJanitorEnabled__IsNotDefault()
    {
      return m_catalogJanitorEnabled__IsNotDefault;
    }
    private boolean m_catalogJanitorEnabled__IsNotDefault;
    // 27, 1
    public void setFilter(String filter)
    {
      // 27, 1
      m_filter = filter;
      m_filter__IsNotDefault = true;
    }
    public String getFilter()
    {
      return m_filter;
    }
    private String m_filter;
    public boolean getFilter__IsNotDefault()
    {
      return m_filter__IsNotDefault;
    }
    private boolean m_filter__IsNotDefault;
    // 30, 1
    public void setAssignmentManager(AssignmentManager assignmentManager)
    {
      // 30, 1
      m_assignmentManager = assignmentManager;
      m_assignmentManager__IsNotDefault = true;
    }
    public AssignmentManager getAssignmentManager()
    {
      return m_assignmentManager;
    }
    private AssignmentManager m_assignmentManager;
    public boolean getAssignmentManager__IsNotDefault()
    {
      return m_assignmentManager__IsNotDefault;
    }
    private boolean m_assignmentManager__IsNotDefault;
    // 23, 1
    public void setMetaLocation(ServerName metaLocation)
    {
      // 23, 1
      m_metaLocation = metaLocation;
      m_metaLocation__IsNotDefault = true;
    }
    public ServerName getMetaLocation()
    {
      return m_metaLocation;
    }
    private ServerName m_metaLocation;
    public boolean getMetaLocation__IsNotDefault()
    {
      return m_metaLocation__IsNotDefault;
    }
    private boolean m_metaLocation__IsNotDefault;
    // 25, 1
    public void setDeadServers(Set deadServers)
    {
      // 25, 1
      m_deadServers = deadServers;
      m_deadServers__IsNotDefault = true;
    }
    public Set getDeadServers()
    {
      return m_deadServers;
    }
    private Set m_deadServers;
    public boolean getDeadServers__IsNotDefault()
    {
      return m_deadServers__IsNotDefault;
    }
    private boolean m_deadServers__IsNotDefault;
  }
  @Override
  protected org.jamon.AbstractTemplateProxy.ImplData makeImplData()
  {
    return new ImplData();
  }
  @Override public ImplData getImplData()
  {
    return (ImplData) super.getImplData();
  }
  
  protected Map frags;
  public final org.apache.hadoop.hbase.tmpl.master.MasterStatusTmpl setFrags(Map p_frags)
  {
    (getImplData()).setFrags(p_frags);
    return this;
  }
  
  protected List servers;
  public final org.apache.hadoop.hbase.tmpl.master.MasterStatusTmpl setServers(List p_servers)
  {
    (getImplData()).setServers(p_servers);
    return this;
  }
  
  protected ServerManager serverManager;
  public final org.apache.hadoop.hbase.tmpl.master.MasterStatusTmpl setServerManager(ServerManager p_serverManager)
  {
    (getImplData()).setServerManager(p_serverManager);
    return this;
  }
  
  protected String format;
  public final org.apache.hadoop.hbase.tmpl.master.MasterStatusTmpl setFormat(String p_format)
  {
    (getImplData()).setFormat(p_format);
    return this;
  }
  
  protected boolean catalogJanitorEnabled;
  public final org.apache.hadoop.hbase.tmpl.master.MasterStatusTmpl setCatalogJanitorEnabled(boolean p_catalogJanitorEnabled)
  {
    (getImplData()).setCatalogJanitorEnabled(p_catalogJanitorEnabled);
    return this;
  }
  
  protected String filter;
  public final org.apache.hadoop.hbase.tmpl.master.MasterStatusTmpl setFilter(String p_filter)
  {
    (getImplData()).setFilter(p_filter);
    return this;
  }
  
  protected AssignmentManager assignmentManager;
  public final org.apache.hadoop.hbase.tmpl.master.MasterStatusTmpl setAssignmentManager(AssignmentManager p_assignmentManager)
  {
    (getImplData()).setAssignmentManager(p_assignmentManager);
    return this;
  }
  
  protected ServerName metaLocation;
  public final org.apache.hadoop.hbase.tmpl.master.MasterStatusTmpl setMetaLocation(ServerName p_metaLocation)
  {
    (getImplData()).setMetaLocation(p_metaLocation);
    return this;
  }
  
  protected Set deadServers;
  public final org.apache.hadoop.hbase.tmpl.master.MasterStatusTmpl setDeadServers(Set p_deadServers)
  {
    (getImplData()).setDeadServers(p_deadServers);
    return this;
  }
  
  
  @Override
  public org.jamon.AbstractTemplateImpl constructImpl(Class p_class){
    try
    {
      return p_class
        .getConstructor(new Class [] { org.jamon.TemplateManager.class, ImplData.class })
        .newInstance(new Object [] { getTemplateManager(), getImplData()});
    }
    catch (RuntimeException e)
    {
      throw e;
    }
    catch (Exception e)
    {
      throw new RuntimeException(e);
    }
  }
  
  @Override
  protected org.jamon.AbstractTemplateImpl constructImpl(){
    return new MasterStatusTmplImpl(getTemplateManager(), getImplData());
  }
  public org.jamon.Renderer makeRenderer(final HMaster master, final HBaseAdmin admin)
  {
    return new org.jamon.AbstractRenderer() {
      @Override
      public void renderTo(final java.io.Writer jamonWriter)
        throws java.io.IOException
      {
        render(jamonWriter, master, admin);
      }
    };
  }
  
  public void render(final java.io.Writer jamonWriter, final HMaster master, final HBaseAdmin admin)
    throws java.io.IOException
  {
    renderNoFlush(jamonWriter, master, admin);
    jamonWriter.flush();
  }
  public void renderNoFlush(final java.io.Writer jamonWriter, final HMaster master, final HBaseAdmin admin)
    throws java.io.IOException
  {
    ImplData implData = getImplData();
    implData.setMaster(master);
    implData.setAdmin(admin);
    Intf instance = (Intf) getTemplateManager().constructImpl(this);
    instance.renderNoFlush(jamonWriter);
    reset();
  }
  
  
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy