Package org.apache.accumulo.core.client.admin

Examples of org.apache.accumulo.core.client.admin.ActiveScan


          String tserver = conn.instanceOperations().getTabletServers().iterator().next();
          do {
            ArrayList<ActiveScan> scans = new ArrayList<ActiveScan>(conn.instanceOperations().getActiveScans(tserver));
            Iterator<ActiveScan> iter = scans.iterator();
            while (iter.hasNext()) {
              ActiveScan scan = iter.next();
              // Remove scans not against our table and not owned by us
              if (!"root".equals(scan.getUser()) || !tableName.equals(scan.getTable())) {
                iter.remove();
              }
            }

            if (!scans.isEmpty()) {
View Full Code Here

TOP

Related Classes of org.apache.accumulo.core.client.admin.ActiveScan

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.