Examples of MasterMonitorInfo


Examples of com.taobao.top.analysis.node.monitor.MasterMonitorInfo

 
  @Override
  public MasterMonitorInfo sendMonitorInfo(
      SendMonitorInfoEvent sendSlaveMonitorInfoEvent) {
   
    MasterMonitorInfo info = null;

    try {
     
      final SendMonitorInfoEvent event = sendSlaveMonitorInfoEvent;
      if(logger.isInfoEnabled()) {
View Full Code Here

Examples of com.taobao.top.analysis.node.monitor.MasterMonitorInfo

    // 更新最新缓存数据
    updateCache(info);
    // 记录日志
    systemLogger.info(info);
    // 目前还没用, 暂且返回一个空的
    return new MasterMonitorInfo();
  }
View Full Code Here

Examples of com.taobao.top.analysis.node.monitor.MasterMonitorInfo

        monitor.report(((SendResultsRequestEvent)event).getJobTaskResult().getJobName(), ((SendResultsRequestEvent)event).getJobTaskResult().getTaskExecuteInfos().values());
        if (logger.isInfoEnabled())
          logger.info("Master process SEND_RESULT Event");
        break;
      case SEND_MONITOR_INFO:
        MasterMonitorInfo info = monitor.report(((SendMonitorInfoEvent)event).getSlaveMonitorInfo());
        this.echoSendMonitorInfo(event.getSequence(), info, event.getChannel());
        break;
      case RELOAD_JOBS:
        jobManager.getJobBuilder().setNeedRebuild(true);
        if (logger.isInfoEnabled())
View Full Code Here

Examples of org.apache.accumulo.core.master.thrift.MasterMonitorInfo

import org.apache.accumulo.server.security.SecurityConstants;

public class GetMasterStats {
  public static void main(String[] args) throws Exception {
    MasterClientService.Iface client = null;
    MasterMonitorInfo stats = null;
    try {
      client = MasterClient.getConnectionWithRetry(HdfsZooInstance.getInstance());
      stats = client.getMasterStats(Tracer.traceInfo(), SecurityConstants.getSystemCredentials());
    } finally {
      if (client != null)
View Full Code Here

Examples of org.apache.accumulo.core.master.thrift.MasterMonitorInfo

 
  private void doAccumuloTable(StringBuilder sb) throws IOException {
    // Accumulo
    Configuration conf = CachedConfiguration.getInstance();
    FileSystem fs = TraceFileSystem.wrap(FileUtil.getFileSystem(conf, ServerConfiguration.getSiteConfiguration()));
    MasterMonitorInfo info = Monitor.getMmi();
    sb.append("<table>\n");
    sb.append("<tr><th colspan='2'><a href='/master'>Accumulo Master</a></th></tr>\n");
    if (info == null) {
      sb.append("<tr><td colspan='2'><span class='error'>Master is Down</span></td></tr>\n");
    } else {
View Full Code Here

Examples of org.apache.accumulo.core.master.thrift.MasterMonitorInfo

      badTServerList.generate(req, sb);
    }
  }
 
  private void doDeadTserverList(HttpServletRequest req, StringBuilder sb) {
    MasterMonitorInfo mmi = Monitor.getMmi();
    if (mmi != null) {
      List<DeadServer> obit = mmi.deadTabletServers;
      Table deadTServerList = new Table("deaddtservers", "Dead&nbsp;Tablet&nbsp;Servers", "error");
      deadTServerList.setSubCaption("The following tablet servers are no longer reachable.");
      doDeadServerTable(req, sb, deadTServerList, obit);
View Full Code Here

Examples of org.apache.accumulo.core.master.thrift.MasterMonitorInfo

     
    }
   
    @Override
    public MasterMonitorInfo getMasterStats(TInfo info, TCredentials credentials) throws ThriftSecurityException, TException {
      final MasterMonitorInfo result = new MasterMonitorInfo();
     
      result.tServerInfo = new ArrayList<TabletServerStatus>();
      result.tableMap = new DefaultMap<String,TableInfo>(new TableInfo());
      for (Entry<TServerInstance,TabletServerStatus> serverEntry : tserverStatus.entrySet()) {
        final TabletServerStatus status = serverEntry.getValue();
View Full Code Here

Examples of org.apache.accumulo.core.master.thrift.MasterMonitorInfo

     
    }
   
    @Override
    public MasterMonitorInfo getMasterStats(TInfo info, AuthInfo credentials) throws ThriftSecurityException, TException {
      final MasterMonitorInfo result = new MasterMonitorInfo();
      result.loggers = new ArrayList<LoggerStatus>();
      for (String logger : loggers.getLoggersFromZooKeeper().values()) {
        result.loggers.add(new LoggerStatus(logger));
      }
      result.recovery = recovery.status();
View Full Code Here

Examples of org.apache.accumulo.core.master.thrift.MasterMonitorInfo

 
  private void doAccumuloTable(StringBuilder sb) throws IOException {
    // Accumulo
    Configuration conf = CachedConfiguration.getInstance();
    FileSystem fs = TraceFileSystem.wrap(FileUtil.getFileSystem(conf, ServerConfiguration.getSiteConfiguration()));
    MasterMonitorInfo info = Monitor.getMmi();
    sb.append("<table>\n");
    sb.append("<tr><th colspan='2'><a href='/master'>Accumulo Master</a></th></tr>\n");
    if (info == null) {
      sb.append("<tr><td colspan='2'><span class='error'>Master is Down</span></td></tr>\n");
    } else {
View Full Code Here

Examples of org.apache.accumulo.core.master.thrift.MasterMonitorInfo

   * @throws IOException
   * @throws TTransportException
   */
  public static void main(String[] args) throws Exception {
    MasterClientService.Iface client = null;
    MasterMonitorInfo stats = null;
    try {
      client = MasterClient.getConnectionWithRetry(HdfsZooInstance.getInstance());
      stats = client.getMasterStats(Tracer.traceInfo(), SecurityConstants.getSystemCredentials());
    } finally {
      if (client != null)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.