org.apache.hadoop.hbase.tmpl.master.MasterStatusTmpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hbase-server Show documentation
Show all versions of hbase-server Show documentation
Server functionality for HBase
// Autogenerated Jamon proxy
// /home/apurtell/RM/hbase/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/master/MasterStatusTmpl.jamon
package org.apache.hadoop.hbase.tmpl.master;
// 32, 1
import java.util.*;
// 33, 1
import java.net.URLEncoder;
// 34, 1
import java.io.IOException;
// 35, 1
import org.apache.hadoop.hbase.client.replication.ReplicationPeerConfigUtil;
// 36, 1
import org.apache.hadoop.hbase.client.RegionInfo;
// 37, 1
import org.apache.hadoop.hbase.client.TableDescriptor;
// 38, 1
import org.apache.hadoop.hbase.replication.ReplicationPeerConfig;
// 39, 1
import org.apache.hadoop.hbase.replication.ReplicationPeerDescription;
// 40, 1
import org.apache.hadoop.hbase.HBaseConfiguration;
// 41, 1
import org.apache.hadoop.hbase.HConstants;
// 42, 1
import org.apache.hadoop.hbase.HTableDescriptor;
// 43, 1
import org.apache.hadoop.hbase.NamespaceDescriptor;
// 44, 1
import org.apache.hadoop.hbase.ServerName;
// 45, 1
import org.apache.hadoop.hbase.TableName;
// 46, 1
import org.apache.hadoop.hbase.client.Admin;
// 47, 1
import org.apache.hadoop.hbase.client.MasterSwitchType;
// 48, 1
import org.apache.hadoop.hbase.client.TableState;
// 49, 1
import org.apache.hadoop.hbase.master.assignment.AssignmentManager;
// 50, 1
import org.apache.hadoop.hbase.master.DeadServer;
// 51, 1
import org.apache.hadoop.hbase.master.HMaster;
// 52, 1
import org.apache.hadoop.hbase.master.RegionState;
// 53, 1
import org.apache.hadoop.hbase.master.ServerManager;
// 54, 1
import org.apache.hadoop.hbase.protobuf.ProtobufUtil;
// 55, 1
import org.apache.hadoop.hbase.quotas.QuotaUtil;
// 56, 1
import org.apache.hadoop.hbase.security.access.PermissionStorage;
// 57, 1
import org.apache.hadoop.hbase.security.visibility.VisibilityConstants;
// 58, 1
import org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotDescription;
// 59, 1
import org.apache.hadoop.hbase.tool.CanaryTool;
// 60, 1
import org.apache.hadoop.hbase.util.Bytes;
// 61, 1
import org.apache.hadoop.hbase.util.CommonFSUtils;
// 62, 1
import org.apache.hadoop.hbase.util.JvmVersion;
// 63, 1
import org.apache.hadoop.hbase.util.PrettyPrinter;
// 64, 1
import org.apache.hadoop.util.StringUtils;
@org.jamon.annotations.Template(
signature = "767EF6CBA3457ABF31A306ADBA3A7715",
requiredArguments = {
@org.jamon.annotations.Argument(name = "master", type = "HMaster")},
optionalArguments = {
@org.jamon.annotations.Argument(name = "assignmentManager", type = "AssignmentManager"),
@org.jamon.annotations.Argument(name = "catalogJanitorEnabled", type = "boolean"),
@org.jamon.annotations.Argument(name = "deadServers", type = "Set"),
@org.jamon.annotations.Argument(name = "filter", type = "String"),
@org.jamon.annotations.Argument(name = "format", type = "String"),
@org.jamon.annotations.Argument(name = "frags", type = "Map"),
@org.jamon.annotations.Argument(name = "metaLocation", type = "ServerName"),
@org.jamon.annotations.Argument(name = "serverManager", type = "ServerManager"),
@org.jamon.annotations.Argument(name = "servers", type = "List")})
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;
// 29, 1
public void setAssignmentManager(AssignmentManager assignmentManager)
{
// 29, 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;
// 25, 1
public void setCatalogJanitorEnabled(boolean catalogJanitorEnabled)
{
// 25, 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;
// 24, 1
public void setDeadServers(Set deadServers)
{
// 24, 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;
// 26, 1
public void setFilter(String filter)
{
// 26, 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;
// 27, 1
public void setFormat(String format)
{
// 27, 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;
// 21, 1
public void setFrags(Map frags)
{
// 21, 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;
// 22, 1
public void setMetaLocation(ServerName metaLocation)
{
// 22, 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;
// 28, 1
public void setServerManager(ServerManager serverManager)
{
// 28, 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;
// 23, 1
public void setServers(List servers)
{
// 23, 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;
}
@Override
protected org.jamon.AbstractTemplateProxy.ImplData makeImplData()
{
return new ImplData();
}
@Override public ImplData getImplData()
{
return (ImplData) super.getImplData();
}
protected AssignmentManager assignmentManager;
public final org.apache.hadoop.hbase.tmpl.master.MasterStatusTmpl setAssignmentManager(AssignmentManager p_assignmentManager)
{
(getImplData()).setAssignmentManager(p_assignmentManager);
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 Set deadServers;
public final org.apache.hadoop.hbase.tmpl.master.MasterStatusTmpl setDeadServers(Set p_deadServers)
{
(getImplData()).setDeadServers(p_deadServers);
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 String format;
public final org.apache.hadoop.hbase.tmpl.master.MasterStatusTmpl setFormat(String p_format)
{
(getImplData()).setFormat(p_format);
return this;
}
protected Map frags;
public final org.apache.hadoop.hbase.tmpl.master.MasterStatusTmpl setFrags(Map p_frags)
{
(getImplData()).setFrags(p_frags);
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 ServerManager serverManager;
public final org.apache.hadoop.hbase.tmpl.master.MasterStatusTmpl setServerManager(ServerManager p_serverManager)
{
(getImplData()).setServerManager(p_serverManager);
return this;
}
protected List servers;
public final org.apache.hadoop.hbase.tmpl.master.MasterStatusTmpl setServers(List p_servers)
{
(getImplData()).setServers(p_servers);
return this;
}
@Override
public org.jamon.AbstractTemplateImpl constructImpl(Class extends org.jamon.AbstractTemplateImpl> 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)
{
return new org.jamon.AbstractRenderer() {
@Override
public void renderTo(final java.io.Writer jamonWriter)
throws java.io.IOException
{
render(jamonWriter, master);
}
};
}
public void render(final java.io.Writer jamonWriter, final HMaster master)
throws java.io.IOException
{
renderNoFlush(jamonWriter, master);
jamonWriter.flush();
}
public void renderNoFlush(final java.io.Writer jamonWriter, final HMaster master)
throws java.io.IOException
{
ImplData implData = getImplData();
implData.setMaster(master);
Intf instance = (Intf) getTemplateManager().constructImpl(this);
instance.renderNoFlush(jamonWriter);
reset();
}
}