Package org.apache.accumulo.core.tabletserver.thrift.MutationLogger

Examples of org.apache.accumulo.core.tabletserver.thrift.MutationLogger.Iface


      final List<String> files = serverFiles.getValue();
      threadPool.submit(new Runnable() {
        @Override
        public void run() {
          try {
            Iface logger = ThriftUtil.getClient(new MutationLogger.Client.Factory(), server, Property.LOGGER_PORT, Property.TSERV_LOGGER_TIMEOUT,
                ServerConfiguration.getSystemConfiguration());
            try {
              count.addAndGet(files.size());
              log.debug(String.format("removing %d files from %s", files.size(), server));
              if (files.size() > 0) {
                log.debug("deleting files on logger " + server);
                for (String file : files) {
                  log.debug("Deleting " + file);
                }
                logger.remove(null, SecurityConstants.getSystemCredentials(), files);
                synchronized (status.currentLog) {
                  status.currentLog.deleted += files.size();
                }
              }
            } finally {
View Full Code Here


      String address = "no-data";
      count++;
      try {
        byte[] data = zk.getData(loggersDir + "/" + server, null);
        address = new String(data);
        Iface logger = ThriftUtil.getClient(new MutationLogger.Client.Factory(), address, Property.LOGGER_PORT, Property.TSERV_LOGGER_TIMEOUT,
            ServerConfiguration.getSystemConfiguration());
        for (String log : logger.getClosedLogs(null, SecurityConstants.getSystemCredentials())) {
          fileToServerMap.put(log, address);
        }
        ThriftUtil.returnClient(logger);
      } catch (TException err) {
        log.warn("Ignoring exception talking to logger " + address);
View Full Code Here

      final List<String> files = serverFiles.getValue();
      threadPool.submit(new Runnable() {
        @Override
        public void run() {
          try {
            Iface logger = ThriftUtil.getClient(new MutationLogger.Client.Factory(), server, Property.LOGGER_PORT, Property.TSERV_LOGGER_TIMEOUT,
                ServerConfiguration.getSystemConfiguration());
            try {
              count.addAndGet(files.size());
              log.debug(String.format("removing %d files from %s", files.size(), server));
              if (files.size() > 0) {
                log.debug("deleting files on logger " + server);
                for (String file : files) {
                  log.debug("Deleting " + file);
                }
                logger.remove(null, SecurityConstants.getSystemCredentials(), files);
                synchronized (status.currentLog) {
                  status.currentLog.deleted += files.size();
                }
              }
            } finally {
View Full Code Here

      String address = "no-data";
      count++;
      try {
        byte[] data = zk.getData(loggersDir + "/" + server, null);
        address = new String(data);
        Iface logger = ThriftUtil.getClient(new MutationLogger.Client.Factory(), address, Property.LOGGER_PORT, Property.TSERV_LOGGER_TIMEOUT,
            ServerConfiguration.getSystemConfiguration());
        for (String log : logger.getClosedLogs(null, SecurityConstants.getSystemCredentials())) {
          fileToServerMap.put(log, address);
        }
        ThriftUtil.returnClient(logger);
      } catch (TException err) {
        log.warn("Ignoring exception talking to logger " + address);
View Full Code Here

      final List<String> files = serverFiles.getValue();
      threadPool.submit(new Runnable() {
        @Override
        public void run() {
          try {
            Iface logger = ThriftUtil.getClient(new MutationLogger.Client.Factory(), server, Property.LOGGER_PORT, Property.TSERV_LOGGER_TIMEOUT,
                AccumuloConfiguration.getSystemConfiguration());
            try {
              count.addAndGet(files.size());
              log.debug(String.format("removing %d files from %s", files.size(), server));
              if (files.size() > 0) {
                log.debug("deleting files on logger " + server);
                for (String file : files) {
                  log.debug("Deleting " + file);
                }
                logger.remove(null, SecurityConstants.systemCredentials, files);
                synchronized (status.currentLog) {
                  status.currentLog.deleted += files.size();
                }
              }
            } finally {
View Full Code Here

      String address = "no-data";
      count++;
      try {
        byte[] data = zk.getData(loggersDir + "/" + server, null, null);
        address = new String(data);
        Iface logger = ThriftUtil.getClient(new MutationLogger.Client.Factory(), address, Property.LOGGER_PORT, Property.TSERV_LOGGER_TIMEOUT,
            AccumuloConfiguration.getSystemConfiguration());
        for (String log : logger.getClosedLogs(null, SecurityConstants.systemCredentials)) {
          fileToServerMap.put(log, address);
        }
        ThriftUtil.returnClient(logger);
      } catch (TException err) {
        log.warn("Ignoring exception talking to logger " + address);
View Full Code Here

TOP

Related Classes of org.apache.accumulo.core.tabletserver.thrift.MutationLogger.Iface

Copyright © 2018 www.massapicom. 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.