hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mi...@apache.org
Subject [03/51] [partial] hbase-site git commit: Published site at 25419d8b18dd8f35a102614cd31b274659f747ef.
Date Fri, 01 Apr 2016 15:16:47 GMT
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/ce2de59a/devapidocs/src-html/org/apache/hadoop/hbase/client/Admin.CompactType.html
----------------------------------------------------------------------
diff --git a/devapidocs/src-html/org/apache/hadoop/hbase/client/Admin.CompactType.html b/devapidocs/src-html/org/apache/hadoop/hbase/client/Admin.CompactType.html
index 1b9f607..31eac7c 100644
--- a/devapidocs/src-html/org/apache/hadoop/hbase/client/Admin.CompactType.html
+++ b/devapidocs/src-html/org/apache/hadoop/hbase/client/Admin.CompactType.html
@@ -1338,394 +1338,428 @@
 <span class="sourceLineNo">1330</span>  void restoreSnapshot(final String snapshotName) throws IOException, RestoreSnapshotException;<a name="line.1330"></a>
 <span class="sourceLineNo">1331</span><a name="line.1331"></a>
 <span class="sourceLineNo">1332</span>  /**<a name="line.1332"></a>
-<span class="sourceLineNo">1333</span>   * Restore the specified snapshot on the original table. (The table must be disabled) If<a name="line.1333"></a>
-<span class="sourceLineNo">1334</span>   * 'takeFailSafeSnapshot' is set to true, a snapshot of the current table is taken before<a name="line.1334"></a>
-<span class="sourceLineNo">1335</span>   * executing the restore operation. In case of restore failure, the failsafe snapshot will be<a name="line.1335"></a>
-<span class="sourceLineNo">1336</span>   * restored. If the restore completes without problem the failsafe snapshot is deleted. The<a name="line.1336"></a>
-<span class="sourceLineNo">1337</span>   * failsafe snapshot name is configurable by using the property<a name="line.1337"></a>
-<span class="sourceLineNo">1338</span>   * "hbase.snapshot.restore.failsafe.name".<a name="line.1338"></a>
-<span class="sourceLineNo">1339</span>   *<a name="line.1339"></a>
-<span class="sourceLineNo">1340</span>   * @param snapshotName name of the snapshot to restore<a name="line.1340"></a>
-<span class="sourceLineNo">1341</span>   * @param takeFailSafeSnapshot true if the failsafe snapshot should be taken<a name="line.1341"></a>
-<span class="sourceLineNo">1342</span>   * @throws IOException if a remote or network exception occurs<a name="line.1342"></a>
-<span class="sourceLineNo">1343</span>   * @throws RestoreSnapshotException if snapshot failed to be restored<a name="line.1343"></a>
-<span class="sourceLineNo">1344</span>   * @throws IllegalArgumentException if the restore request is formatted incorrectly<a name="line.1344"></a>
-<span class="sourceLineNo">1345</span>   */<a name="line.1345"></a>
-<span class="sourceLineNo">1346</span>  void restoreSnapshot(final byte[] snapshotName, final boolean takeFailSafeSnapshot)<a name="line.1346"></a>
-<span class="sourceLineNo">1347</span>      throws IOException, RestoreSnapshotException;<a name="line.1347"></a>
-<span class="sourceLineNo">1348</span><a name="line.1348"></a>
-<span class="sourceLineNo">1349</span>  /**<a name="line.1349"></a>
-<span class="sourceLineNo">1350</span>   * Restore the specified snapshot on the original table. (The table must be disabled) If<a name="line.1350"></a>
-<span class="sourceLineNo">1351</span>   * 'takeFailSafeSnapshot' is set to true, a snapshot of the current table is taken before<a name="line.1351"></a>
-<span class="sourceLineNo">1352</span>   * executing the restore operation. In case of restore failure, the failsafe snapshot will be<a name="line.1352"></a>
-<span class="sourceLineNo">1353</span>   * restored. If the restore completes without problem the failsafe snapshot is deleted. The<a name="line.1353"></a>
-<span class="sourceLineNo">1354</span>   * failsafe snapshot name is configurable by using the property<a name="line.1354"></a>
-<span class="sourceLineNo">1355</span>   * "hbase.snapshot.restore.failsafe.name".<a name="line.1355"></a>
-<span class="sourceLineNo">1356</span>   *<a name="line.1356"></a>
-<span class="sourceLineNo">1357</span>   * @param snapshotName name of the snapshot to restore<a name="line.1357"></a>
-<span class="sourceLineNo">1358</span>   * @param takeFailSafeSnapshot true if the failsafe snapshot should be taken<a name="line.1358"></a>
-<span class="sourceLineNo">1359</span>   * @throws IOException if a remote or network exception occurs<a name="line.1359"></a>
-<span class="sourceLineNo">1360</span>   * @throws RestoreSnapshotException if snapshot failed to be restored<a name="line.1360"></a>
-<span class="sourceLineNo">1361</span>   * @throws IllegalArgumentException if the restore request is formatted incorrectly<a name="line.1361"></a>
-<span class="sourceLineNo">1362</span>   */<a name="line.1362"></a>
-<span class="sourceLineNo">1363</span>  void restoreSnapshot(final String snapshotName, boolean takeFailSafeSnapshot)<a name="line.1363"></a>
-<span class="sourceLineNo">1364</span>      throws IOException, RestoreSnapshotException;<a name="line.1364"></a>
-<span class="sourceLineNo">1365</span><a name="line.1365"></a>
-<span class="sourceLineNo">1366</span>  /**<a name="line.1366"></a>
-<span class="sourceLineNo">1367</span>   * Create a new table by cloning the snapshot content.<a name="line.1367"></a>
-<span class="sourceLineNo">1368</span>   *<a name="line.1368"></a>
-<span class="sourceLineNo">1369</span>   * @param snapshotName name of the snapshot to be cloned<a name="line.1369"></a>
-<span class="sourceLineNo">1370</span>   * @param tableName name of the table where the snapshot will be restored<a name="line.1370"></a>
-<span class="sourceLineNo">1371</span>   * @throws IOException if a remote or network exception occurs<a name="line.1371"></a>
-<span class="sourceLineNo">1372</span>   * @throws TableExistsException if table to be created already exists<a name="line.1372"></a>
-<span class="sourceLineNo">1373</span>   * @throws RestoreSnapshotException if snapshot failed to be cloned<a name="line.1373"></a>
-<span class="sourceLineNo">1374</span>   * @throws IllegalArgumentException if the specified table has not a valid name<a name="line.1374"></a>
-<span class="sourceLineNo">1375</span>   */<a name="line.1375"></a>
-<span class="sourceLineNo">1376</span>  void cloneSnapshot(final byte[] snapshotName, final TableName tableName)<a name="line.1376"></a>
-<span class="sourceLineNo">1377</span>      throws IOException, TableExistsException, RestoreSnapshotException;<a name="line.1377"></a>
-<span class="sourceLineNo">1378</span><a name="line.1378"></a>
-<span class="sourceLineNo">1379</span>  /**<a name="line.1379"></a>
-<span class="sourceLineNo">1380</span>   * Create a new table by cloning the snapshot content.<a name="line.1380"></a>
-<span class="sourceLineNo">1381</span>   *<a name="line.1381"></a>
-<span class="sourceLineNo">1382</span>   * @param snapshotName name of the snapshot to be cloned<a name="line.1382"></a>
-<span class="sourceLineNo">1383</span>   * @param tableName name of the table where the snapshot will be restored<a name="line.1383"></a>
-<span class="sourceLineNo">1384</span>   * @throws IOException if a remote or network exception occurs<a name="line.1384"></a>
-<span class="sourceLineNo">1385</span>   * @throws TableExistsException if table to be created already exists<a name="line.1385"></a>
-<span class="sourceLineNo">1386</span>   * @throws RestoreSnapshotException if snapshot failed to be cloned<a name="line.1386"></a>
-<span class="sourceLineNo">1387</span>   * @throws IllegalArgumentException if the specified table has not a valid name<a name="line.1387"></a>
-<span class="sourceLineNo">1388</span>   */<a name="line.1388"></a>
-<span class="sourceLineNo">1389</span>  void cloneSnapshot(final String snapshotName, final TableName tableName)<a name="line.1389"></a>
-<span class="sourceLineNo">1390</span>      throws IOException, TableExistsException, RestoreSnapshotException;<a name="line.1390"></a>
-<span class="sourceLineNo">1391</span><a name="line.1391"></a>
-<span class="sourceLineNo">1392</span>  /**<a name="line.1392"></a>
-<span class="sourceLineNo">1393</span>   * Execute a distributed procedure on a cluster.<a name="line.1393"></a>
-<span class="sourceLineNo">1394</span>   *<a name="line.1394"></a>
-<span class="sourceLineNo">1395</span>   * @param signature A distributed procedure is uniquely identified by its signature (default the<a name="line.1395"></a>
-<span class="sourceLineNo">1396</span>   * root ZK node name of the procedure).<a name="line.1396"></a>
-<span class="sourceLineNo">1397</span>   * @param instance The instance name of the procedure. For some procedures, this parameter is<a name="line.1397"></a>
-<span class="sourceLineNo">1398</span>   * optional.<a name="line.1398"></a>
-<span class="sourceLineNo">1399</span>   * @param props Property/Value pairs of properties passing to the procedure<a name="line.1399"></a>
-<span class="sourceLineNo">1400</span>   * @throws IOException<a name="line.1400"></a>
-<span class="sourceLineNo">1401</span>   */<a name="line.1401"></a>
-<span class="sourceLineNo">1402</span>  void execProcedure(String signature, String instance, Map&lt;String, String&gt; props)<a name="line.1402"></a>
-<span class="sourceLineNo">1403</span>      throws IOException;<a name="line.1403"></a>
-<span class="sourceLineNo">1404</span><a name="line.1404"></a>
-<span class="sourceLineNo">1405</span>  /**<a name="line.1405"></a>
-<span class="sourceLineNo">1406</span>   * Execute a distributed procedure on a cluster.<a name="line.1406"></a>
-<span class="sourceLineNo">1407</span>   *<a name="line.1407"></a>
-<span class="sourceLineNo">1408</span>   * @param signature A distributed procedure is uniquely identified by its signature (default the<a name="line.1408"></a>
-<span class="sourceLineNo">1409</span>   * root ZK node name of the procedure).<a name="line.1409"></a>
-<span class="sourceLineNo">1410</span>   * @param instance The instance name of the procedure. For some procedures, this parameter is<a name="line.1410"></a>
-<span class="sourceLineNo">1411</span>   * optional.<a name="line.1411"></a>
-<span class="sourceLineNo">1412</span>   * @param props Property/Value pairs of properties passing to the procedure<a name="line.1412"></a>
-<span class="sourceLineNo">1413</span>   * @return data returned after procedure execution. null if no return data.<a name="line.1413"></a>
-<span class="sourceLineNo">1414</span>   * @throws IOException<a name="line.1414"></a>
-<span class="sourceLineNo">1415</span>   */<a name="line.1415"></a>
-<span class="sourceLineNo">1416</span>  byte[] execProcedureWithRet(String signature, String instance, Map&lt;String, String&gt; props)<a name="line.1416"></a>
-<span class="sourceLineNo">1417</span>      throws IOException;<a name="line.1417"></a>
-<span class="sourceLineNo">1418</span><a name="line.1418"></a>
-<span class="sourceLineNo">1419</span>  /**<a name="line.1419"></a>
-<span class="sourceLineNo">1420</span>   * Check the current state of the specified procedure. There are three possible states: &lt;ol&gt;<a name="line.1420"></a>
-<span class="sourceLineNo">1421</span>   * &lt;li&gt;running - returns &lt;tt&gt;false&lt;/tt&gt;&lt;/li&gt; &lt;li&gt;finished - returns &lt;tt&gt;true&lt;/tt&gt;&lt;/li&gt;<a name="line.1421"></a>
-<span class="sourceLineNo">1422</span>   * &lt;li&gt;finished with error - throws the exception that caused the procedure to fail&lt;/li&gt; &lt;/ol&gt;<a name="line.1422"></a>
-<span class="sourceLineNo">1423</span>   *<a name="line.1423"></a>
-<span class="sourceLineNo">1424</span>   * @param signature The signature that uniquely identifies a procedure<a name="line.1424"></a>
-<span class="sourceLineNo">1425</span>   * @param instance The instance name of the procedure<a name="line.1425"></a>
-<span class="sourceLineNo">1426</span>   * @param props Property/Value pairs of properties passing to the procedure<a name="line.1426"></a>
-<span class="sourceLineNo">1427</span>   * @return true if the specified procedure is finished successfully, false if it is still running<a name="line.1427"></a>
-<span class="sourceLineNo">1428</span>   * @throws IOException if the specified procedure finished with error<a name="line.1428"></a>
-<span class="sourceLineNo">1429</span>   */<a name="line.1429"></a>
-<span class="sourceLineNo">1430</span>  boolean isProcedureFinished(String signature, String instance, Map&lt;String, String&gt; props)<a name="line.1430"></a>
-<span class="sourceLineNo">1431</span>      throws IOException;<a name="line.1431"></a>
-<span class="sourceLineNo">1432</span><a name="line.1432"></a>
-<span class="sourceLineNo">1433</span>  /**<a name="line.1433"></a>
-<span class="sourceLineNo">1434</span>   * List completed snapshots.<a name="line.1434"></a>
-<span class="sourceLineNo">1435</span>   *<a name="line.1435"></a>
-<span class="sourceLineNo">1436</span>   * @return a list of snapshot descriptors for completed snapshots<a name="line.1436"></a>
-<span class="sourceLineNo">1437</span>   * @throws IOException if a network error occurs<a name="line.1437"></a>
-<span class="sourceLineNo">1438</span>   */<a name="line.1438"></a>
-<span class="sourceLineNo">1439</span>  List&lt;HBaseProtos.SnapshotDescription&gt; listSnapshots() throws IOException;<a name="line.1439"></a>
-<span class="sourceLineNo">1440</span><a name="line.1440"></a>
-<span class="sourceLineNo">1441</span>  /**<a name="line.1441"></a>
-<span class="sourceLineNo">1442</span>   * List all the completed snapshots matching the given regular expression.<a name="line.1442"></a>
-<span class="sourceLineNo">1443</span>   *<a name="line.1443"></a>
-<span class="sourceLineNo">1444</span>   * @param regex The regular expression to match against<a name="line.1444"></a>
-<span class="sourceLineNo">1445</span>   * @return - returns a List of SnapshotDescription<a name="line.1445"></a>
-<span class="sourceLineNo">1446</span>   * @throws IOException if a remote or network exception occurs<a name="line.1446"></a>
-<span class="sourceLineNo">1447</span>   */<a name="line.1447"></a>
-<span class="sourceLineNo">1448</span>  List&lt;HBaseProtos.SnapshotDescription&gt; listSnapshots(String regex) throws IOException;<a name="line.1448"></a>
-<span class="sourceLineNo">1449</span><a name="line.1449"></a>
-<span class="sourceLineNo">1450</span>  /**<a name="line.1450"></a>
-<span class="sourceLineNo">1451</span>   * List all the completed snapshots matching the given pattern.<a name="line.1451"></a>
-<span class="sourceLineNo">1452</span>   *<a name="line.1452"></a>
-<span class="sourceLineNo">1453</span>   * @param pattern The compiled regular expression to match against<a name="line.1453"></a>
-<span class="sourceLineNo">1454</span>   * @return - returns a List of SnapshotDescription<a name="line.1454"></a>
-<span class="sourceLineNo">1455</span>   * @throws IOException if a remote or network exception occurs<a name="line.1455"></a>
-<span class="sourceLineNo">1456</span>   */<a name="line.1456"></a>
-<span class="sourceLineNo">1457</span>  List&lt;HBaseProtos.SnapshotDescription&gt; listSnapshots(Pattern pattern) throws IOException;<a name="line.1457"></a>
-<span class="sourceLineNo">1458</span><a name="line.1458"></a>
-<span class="sourceLineNo">1459</span>  /**<a name="line.1459"></a>
-<span class="sourceLineNo">1460</span>   * List all the completed snapshots matching the given table name regular expression and snapshot<a name="line.1460"></a>
-<span class="sourceLineNo">1461</span>   * name regular expression.<a name="line.1461"></a>
-<span class="sourceLineNo">1462</span>   * @param tableNameRegex The table name regular expression to match against<a name="line.1462"></a>
-<span class="sourceLineNo">1463</span>   * @param snapshotNameRegex The snapshot name regular expression to match against<a name="line.1463"></a>
-<span class="sourceLineNo">1464</span>   * @return - returns a List of completed SnapshotDescription<a name="line.1464"></a>
-<span class="sourceLineNo">1465</span>   * @throws IOException if a remote or network exception occurs<a name="line.1465"></a>
-<span class="sourceLineNo">1466</span>   */<a name="line.1466"></a>
-<span class="sourceLineNo">1467</span>  List&lt;HBaseProtos.SnapshotDescription&gt; listTableSnapshots(String tableNameRegex,<a name="line.1467"></a>
-<span class="sourceLineNo">1468</span>      String snapshotNameRegex) throws IOException;<a name="line.1468"></a>
-<span class="sourceLineNo">1469</span><a name="line.1469"></a>
-<span class="sourceLineNo">1470</span>  /**<a name="line.1470"></a>
-<span class="sourceLineNo">1471</span>   * List all the completed snapshots matching the given table name regular expression and snapshot<a name="line.1471"></a>
-<span class="sourceLineNo">1472</span>   * name regular expression.<a name="line.1472"></a>
-<span class="sourceLineNo">1473</span>   * @param tableNamePattern The compiled table name regular expression to match against<a name="line.1473"></a>
-<span class="sourceLineNo">1474</span>   * @param snapshotNamePattern The compiled snapshot name regular expression to match against<a name="line.1474"></a>
-<span class="sourceLineNo">1475</span>   * @return - returns a List of completed SnapshotDescription<a name="line.1475"></a>
-<span class="sourceLineNo">1476</span>   * @throws IOException if a remote or network exception occurs<a name="line.1476"></a>
-<span class="sourceLineNo">1477</span>   */<a name="line.1477"></a>
-<span class="sourceLineNo">1478</span>  List&lt;HBaseProtos.SnapshotDescription&gt; listTableSnapshots(Pattern tableNamePattern,<a name="line.1478"></a>
-<span class="sourceLineNo">1479</span>      Pattern snapshotNamePattern) throws IOException;<a name="line.1479"></a>
-<span class="sourceLineNo">1480</span><a name="line.1480"></a>
-<span class="sourceLineNo">1481</span>  /**<a name="line.1481"></a>
-<span class="sourceLineNo">1482</span>   * Delete an existing snapshot.<a name="line.1482"></a>
-<span class="sourceLineNo">1483</span>   *<a name="line.1483"></a>
-<span class="sourceLineNo">1484</span>   * @param snapshotName name of the snapshot<a name="line.1484"></a>
-<span class="sourceLineNo">1485</span>   * @throws IOException if a remote or network exception occurs<a name="line.1485"></a>
-<span class="sourceLineNo">1486</span>   */<a name="line.1486"></a>
-<span class="sourceLineNo">1487</span>  void deleteSnapshot(final byte[] snapshotName) throws IOException;<a name="line.1487"></a>
-<span class="sourceLineNo">1488</span><a name="line.1488"></a>
-<span class="sourceLineNo">1489</span>  /**<a name="line.1489"></a>
-<span class="sourceLineNo">1490</span>   * Delete an existing snapshot.<a name="line.1490"></a>
-<span class="sourceLineNo">1491</span>   *<a name="line.1491"></a>
-<span class="sourceLineNo">1492</span>   * @param snapshotName name of the snapshot<a name="line.1492"></a>
-<span class="sourceLineNo">1493</span>   * @throws IOException if a remote or network exception occurs<a name="line.1493"></a>
-<span class="sourceLineNo">1494</span>   */<a name="line.1494"></a>
-<span class="sourceLineNo">1495</span>  void deleteSnapshot(final String snapshotName) throws IOException;<a name="line.1495"></a>
-<span class="sourceLineNo">1496</span><a name="line.1496"></a>
-<span class="sourceLineNo">1497</span>  /**<a name="line.1497"></a>
-<span class="sourceLineNo">1498</span>   * Delete existing snapshots whose names match the pattern passed.<a name="line.1498"></a>
-<span class="sourceLineNo">1499</span>   *<a name="line.1499"></a>
-<span class="sourceLineNo">1500</span>   * @param regex The regular expression to match against<a name="line.1500"></a>
-<span class="sourceLineNo">1501</span>   * @throws IOException if a remote or network exception occurs<a name="line.1501"></a>
-<span class="sourceLineNo">1502</span>   */<a name="line.1502"></a>
-<span class="sourceLineNo">1503</span>  void deleteSnapshots(final String regex) throws IOException;<a name="line.1503"></a>
-<span class="sourceLineNo">1504</span><a name="line.1504"></a>
-<span class="sourceLineNo">1505</span>  /**<a name="line.1505"></a>
-<span class="sourceLineNo">1506</span>   * Delete existing snapshots whose names match the pattern passed.<a name="line.1506"></a>
-<span class="sourceLineNo">1507</span>   *<a name="line.1507"></a>
-<span class="sourceLineNo">1508</span>   * @param pattern pattern for names of the snapshot to match<a name="line.1508"></a>
-<span class="sourceLineNo">1509</span>   * @throws IOException if a remote or network exception occurs<a name="line.1509"></a>
-<span class="sourceLineNo">1510</span>   */<a name="line.1510"></a>
-<span class="sourceLineNo">1511</span>  void deleteSnapshots(final Pattern pattern) throws IOException;<a name="line.1511"></a>
-<span class="sourceLineNo">1512</span><a name="line.1512"></a>
-<span class="sourceLineNo">1513</span>  /**<a name="line.1513"></a>
-<span class="sourceLineNo">1514</span>   * Delete all existing snapshots matching the given table name regular expression and snapshot<a name="line.1514"></a>
-<span class="sourceLineNo">1515</span>   * name regular expression.<a name="line.1515"></a>
-<span class="sourceLineNo">1516</span>   * @param tableNameRegex The table name regular expression to match against<a name="line.1516"></a>
-<span class="sourceLineNo">1517</span>   * @param snapshotNameRegex The snapshot name regular expression to match against<a name="line.1517"></a>
-<span class="sourceLineNo">1518</span>   * @throws IOException if a remote or network exception occurs<a name="line.1518"></a>
-<span class="sourceLineNo">1519</span>   */<a name="line.1519"></a>
-<span class="sourceLineNo">1520</span>  void deleteTableSnapshots(String tableNameRegex, String snapshotNameRegex) throws IOException;<a name="line.1520"></a>
-<span class="sourceLineNo">1521</span><a name="line.1521"></a>
-<span class="sourceLineNo">1522</span>  /**<a name="line.1522"></a>
-<span class="sourceLineNo">1523</span>   * Delete all existing snapshots matching the given table name regular expression and snapshot<a name="line.1523"></a>
-<span class="sourceLineNo">1524</span>   * name regular expression.<a name="line.1524"></a>
-<span class="sourceLineNo">1525</span>   * @param tableNamePattern The compiled table name regular expression to match against<a name="line.1525"></a>
-<span class="sourceLineNo">1526</span>   * @param snapshotNamePattern The compiled snapshot name regular expression to match against<a name="line.1526"></a>
+<span class="sourceLineNo">1333</span>   * Restore the specified snapshot on the original table. (The table must be disabled) If the<a name="line.1333"></a>
+<span class="sourceLineNo">1334</span>   * "hbase.snapshot.restore.take.failsafe.snapshot" configuration property is set to true, a<a name="line.1334"></a>
+<span class="sourceLineNo">1335</span>   * snapshot of the current table is taken before executing the restore operation. In case of<a name="line.1335"></a>
+<span class="sourceLineNo">1336</span>   * restore failure, the failsafe snapshot will be restored. If the restore completes without<a name="line.1336"></a>
+<span class="sourceLineNo">1337</span>   * problem the failsafe snapshot is deleted.<a name="line.1337"></a>
+<span class="sourceLineNo">1338</span>   *<a name="line.1338"></a>
+<span class="sourceLineNo">1339</span>   * @param snapshotName name of the snapshot to restore<a name="line.1339"></a>
+<span class="sourceLineNo">1340</span>   * @throws IOException if a remote or network exception occurs<a name="line.1340"></a>
+<span class="sourceLineNo">1341</span>   * @throws RestoreSnapshotException if snapshot failed to be restored<a name="line.1341"></a>
+<span class="sourceLineNo">1342</span>   * @return the result of the async restore snapshot. You can use Future.get(long, TimeUnit)<a name="line.1342"></a>
+<span class="sourceLineNo">1343</span>   *    to wait on the operation to complete.<a name="line.1343"></a>
+<span class="sourceLineNo">1344</span>   */<a name="line.1344"></a>
+<span class="sourceLineNo">1345</span>  Future&lt;Void&gt; restoreSnapshotAsync(final String snapshotName)<a name="line.1345"></a>
+<span class="sourceLineNo">1346</span>      throws IOException, RestoreSnapshotException;<a name="line.1346"></a>
+<span class="sourceLineNo">1347</span><a name="line.1347"></a>
+<span class="sourceLineNo">1348</span>  /**<a name="line.1348"></a>
+<span class="sourceLineNo">1349</span>   * Restore the specified snapshot on the original table. (The table must be disabled) If<a name="line.1349"></a>
+<span class="sourceLineNo">1350</span>   * 'takeFailSafeSnapshot' is set to true, a snapshot of the current table is taken before<a name="line.1350"></a>
+<span class="sourceLineNo">1351</span>   * executing the restore operation. In case of restore failure, the failsafe snapshot will be<a name="line.1351"></a>
+<span class="sourceLineNo">1352</span>   * restored. If the restore completes without problem the failsafe snapshot is deleted. The<a name="line.1352"></a>
+<span class="sourceLineNo">1353</span>   * failsafe snapshot name is configurable by using the property<a name="line.1353"></a>
+<span class="sourceLineNo">1354</span>   * "hbase.snapshot.restore.failsafe.name".<a name="line.1354"></a>
+<span class="sourceLineNo">1355</span>   *<a name="line.1355"></a>
+<span class="sourceLineNo">1356</span>   * @param snapshotName name of the snapshot to restore<a name="line.1356"></a>
+<span class="sourceLineNo">1357</span>   * @param takeFailSafeSnapshot true if the failsafe snapshot should be taken<a name="line.1357"></a>
+<span class="sourceLineNo">1358</span>   * @throws IOException if a remote or network exception occurs<a name="line.1358"></a>
+<span class="sourceLineNo">1359</span>   * @throws RestoreSnapshotException if snapshot failed to be restored<a name="line.1359"></a>
+<span class="sourceLineNo">1360</span>   * @throws IllegalArgumentException if the restore request is formatted incorrectly<a name="line.1360"></a>
+<span class="sourceLineNo">1361</span>   */<a name="line.1361"></a>
+<span class="sourceLineNo">1362</span>  void restoreSnapshot(final byte[] snapshotName, final boolean takeFailSafeSnapshot)<a name="line.1362"></a>
+<span class="sourceLineNo">1363</span>      throws IOException, RestoreSnapshotException;<a name="line.1363"></a>
+<span class="sourceLineNo">1364</span><a name="line.1364"></a>
+<span class="sourceLineNo">1365</span>  /**<a name="line.1365"></a>
+<span class="sourceLineNo">1366</span>   * Restore the specified snapshot on the original table. (The table must be disabled) If<a name="line.1366"></a>
+<span class="sourceLineNo">1367</span>   * 'takeFailSafeSnapshot' is set to true, a snapshot of the current table is taken before<a name="line.1367"></a>
+<span class="sourceLineNo">1368</span>   * executing the restore operation. In case of restore failure, the failsafe snapshot will be<a name="line.1368"></a>
+<span class="sourceLineNo">1369</span>   * restored. If the restore completes without problem the failsafe snapshot is deleted. The<a name="line.1369"></a>
+<span class="sourceLineNo">1370</span>   * failsafe snapshot name is configurable by using the property<a name="line.1370"></a>
+<span class="sourceLineNo">1371</span>   * "hbase.snapshot.restore.failsafe.name".<a name="line.1371"></a>
+<span class="sourceLineNo">1372</span>   *<a name="line.1372"></a>
+<span class="sourceLineNo">1373</span>   * @param snapshotName name of the snapshot to restore<a name="line.1373"></a>
+<span class="sourceLineNo">1374</span>   * @param takeFailSafeSnapshot true if the failsafe snapshot should be taken<a name="line.1374"></a>
+<span class="sourceLineNo">1375</span>   * @throws IOException if a remote or network exception occurs<a name="line.1375"></a>
+<span class="sourceLineNo">1376</span>   * @throws RestoreSnapshotException if snapshot failed to be restored<a name="line.1376"></a>
+<span class="sourceLineNo">1377</span>   * @throws IllegalArgumentException if the restore request is formatted incorrectly<a name="line.1377"></a>
+<span class="sourceLineNo">1378</span>   */<a name="line.1378"></a>
+<span class="sourceLineNo">1379</span>  void restoreSnapshot(final String snapshotName, final boolean takeFailSafeSnapshot)<a name="line.1379"></a>
+<span class="sourceLineNo">1380</span>      throws IOException, RestoreSnapshotException;<a name="line.1380"></a>
+<span class="sourceLineNo">1381</span><a name="line.1381"></a>
+<span class="sourceLineNo">1382</span>  /**<a name="line.1382"></a>
+<span class="sourceLineNo">1383</span>   * Create a new table by cloning the snapshot content.<a name="line.1383"></a>
+<span class="sourceLineNo">1384</span>   *<a name="line.1384"></a>
+<span class="sourceLineNo">1385</span>   * @param snapshotName name of the snapshot to be cloned<a name="line.1385"></a>
+<span class="sourceLineNo">1386</span>   * @param tableName name of the table where the snapshot will be restored<a name="line.1386"></a>
+<span class="sourceLineNo">1387</span>   * @throws IOException if a remote or network exception occurs<a name="line.1387"></a>
+<span class="sourceLineNo">1388</span>   * @throws TableExistsException if table to be created already exists<a name="line.1388"></a>
+<span class="sourceLineNo">1389</span>   * @throws RestoreSnapshotException if snapshot failed to be cloned<a name="line.1389"></a>
+<span class="sourceLineNo">1390</span>   * @throws IllegalArgumentException if the specified table has not a valid name<a name="line.1390"></a>
+<span class="sourceLineNo">1391</span>   */<a name="line.1391"></a>
+<span class="sourceLineNo">1392</span>  void cloneSnapshot(final byte[] snapshotName, final TableName tableName)<a name="line.1392"></a>
+<span class="sourceLineNo">1393</span>      throws IOException, TableExistsException, RestoreSnapshotException;<a name="line.1393"></a>
+<span class="sourceLineNo">1394</span><a name="line.1394"></a>
+<span class="sourceLineNo">1395</span>  /**<a name="line.1395"></a>
+<span class="sourceLineNo">1396</span>   * Create a new table by cloning the snapshot content.<a name="line.1396"></a>
+<span class="sourceLineNo">1397</span>   *<a name="line.1397"></a>
+<span class="sourceLineNo">1398</span>   * @param snapshotName name of the snapshot to be cloned<a name="line.1398"></a>
+<span class="sourceLineNo">1399</span>   * @param tableName name of the table where the snapshot will be restored<a name="line.1399"></a>
+<span class="sourceLineNo">1400</span>   * @throws IOException if a remote or network exception occurs<a name="line.1400"></a>
+<span class="sourceLineNo">1401</span>   * @throws TableExistsException if table to be created already exists<a name="line.1401"></a>
+<span class="sourceLineNo">1402</span>   * @throws RestoreSnapshotException if snapshot failed to be cloned<a name="line.1402"></a>
+<span class="sourceLineNo">1403</span>   * @throws IllegalArgumentException if the specified table has not a valid name<a name="line.1403"></a>
+<span class="sourceLineNo">1404</span>   */<a name="line.1404"></a>
+<span class="sourceLineNo">1405</span>  void cloneSnapshot(final String snapshotName, final TableName tableName)<a name="line.1405"></a>
+<span class="sourceLineNo">1406</span>      throws IOException, TableExistsException, RestoreSnapshotException;<a name="line.1406"></a>
+<span class="sourceLineNo">1407</span><a name="line.1407"></a>
+<span class="sourceLineNo">1408</span>  /**<a name="line.1408"></a>
+<span class="sourceLineNo">1409</span>   * Create a new table by cloning the snapshot content, but does not block<a name="line.1409"></a>
+<span class="sourceLineNo">1410</span>   * and wait for it be completely cloned.<a name="line.1410"></a>
+<span class="sourceLineNo">1411</span>   * You can use Future.get(long, TimeUnit) to wait on the operation to complete.<a name="line.1411"></a>
+<span class="sourceLineNo">1412</span>   * It may throw ExecutionException if there was an error while executing the operation<a name="line.1412"></a>
+<span class="sourceLineNo">1413</span>   * or TimeoutException in case the wait timeout was not long enough to allow the<a name="line.1413"></a>
+<span class="sourceLineNo">1414</span>   * operation to complete.<a name="line.1414"></a>
+<span class="sourceLineNo">1415</span>   *<a name="line.1415"></a>
+<span class="sourceLineNo">1416</span>   * @param snapshotName name of the snapshot to be cloned<a name="line.1416"></a>
+<span class="sourceLineNo">1417</span>   * @param tableName name of the table where the snapshot will be restored<a name="line.1417"></a>
+<span class="sourceLineNo">1418</span>   * @throws IOException if a remote or network exception occurs<a name="line.1418"></a>
+<span class="sourceLineNo">1419</span>   * @throws TableExistsException if table to be cloned already exists<a name="line.1419"></a>
+<span class="sourceLineNo">1420</span>   * @return the result of the async clone snapshot. You can use Future.get(long, TimeUnit)<a name="line.1420"></a>
+<span class="sourceLineNo">1421</span>   *    to wait on the operation to complete.<a name="line.1421"></a>
+<span class="sourceLineNo">1422</span>   */<a name="line.1422"></a>
+<span class="sourceLineNo">1423</span>  Future&lt;Void&gt; cloneSnapshotAsync(final String snapshotName, final TableName tableName)<a name="line.1423"></a>
+<span class="sourceLineNo">1424</span>      throws IOException, TableExistsException;<a name="line.1424"></a>
+<span class="sourceLineNo">1425</span><a name="line.1425"></a>
+<span class="sourceLineNo">1426</span>  /**<a name="line.1426"></a>
+<span class="sourceLineNo">1427</span>   * Execute a distributed procedure on a cluster.<a name="line.1427"></a>
+<span class="sourceLineNo">1428</span>   *<a name="line.1428"></a>
+<span class="sourceLineNo">1429</span>   * @param signature A distributed procedure is uniquely identified by its signature (default the<a name="line.1429"></a>
+<span class="sourceLineNo">1430</span>   * root ZK node name of the procedure).<a name="line.1430"></a>
+<span class="sourceLineNo">1431</span>   * @param instance The instance name of the procedure. For some procedures, this parameter is<a name="line.1431"></a>
+<span class="sourceLineNo">1432</span>   * optional.<a name="line.1432"></a>
+<span class="sourceLineNo">1433</span>   * @param props Property/Value pairs of properties passing to the procedure<a name="line.1433"></a>
+<span class="sourceLineNo">1434</span>   * @throws IOException<a name="line.1434"></a>
+<span class="sourceLineNo">1435</span>   */<a name="line.1435"></a>
+<span class="sourceLineNo">1436</span>  void execProcedure(String signature, String instance, Map&lt;String, String&gt; props)<a name="line.1436"></a>
+<span class="sourceLineNo">1437</span>      throws IOException;<a name="line.1437"></a>
+<span class="sourceLineNo">1438</span><a name="line.1438"></a>
+<span class="sourceLineNo">1439</span>  /**<a name="line.1439"></a>
+<span class="sourceLineNo">1440</span>   * Execute a distributed procedure on a cluster.<a name="line.1440"></a>
+<span class="sourceLineNo">1441</span>   *<a name="line.1441"></a>
+<span class="sourceLineNo">1442</span>   * @param signature A distributed procedure is uniquely identified by its signature (default the<a name="line.1442"></a>
+<span class="sourceLineNo">1443</span>   * root ZK node name of the procedure).<a name="line.1443"></a>
+<span class="sourceLineNo">1444</span>   * @param instance The instance name of the procedure. For some procedures, this parameter is<a name="line.1444"></a>
+<span class="sourceLineNo">1445</span>   * optional.<a name="line.1445"></a>
+<span class="sourceLineNo">1446</span>   * @param props Property/Value pairs of properties passing to the procedure<a name="line.1446"></a>
+<span class="sourceLineNo">1447</span>   * @return data returned after procedure execution. null if no return data.<a name="line.1447"></a>
+<span class="sourceLineNo">1448</span>   * @throws IOException<a name="line.1448"></a>
+<span class="sourceLineNo">1449</span>   */<a name="line.1449"></a>
+<span class="sourceLineNo">1450</span>  byte[] execProcedureWithRet(String signature, String instance, Map&lt;String, String&gt; props)<a name="line.1450"></a>
+<span class="sourceLineNo">1451</span>      throws IOException;<a name="line.1451"></a>
+<span class="sourceLineNo">1452</span><a name="line.1452"></a>
+<span class="sourceLineNo">1453</span>  /**<a name="line.1453"></a>
+<span class="sourceLineNo">1454</span>   * Check the current state of the specified procedure. There are three possible states: &lt;ol&gt;<a name="line.1454"></a>
+<span class="sourceLineNo">1455</span>   * &lt;li&gt;running - returns &lt;tt&gt;false&lt;/tt&gt;&lt;/li&gt; &lt;li&gt;finished - returns &lt;tt&gt;true&lt;/tt&gt;&lt;/li&gt;<a name="line.1455"></a>
+<span class="sourceLineNo">1456</span>   * &lt;li&gt;finished with error - throws the exception that caused the procedure to fail&lt;/li&gt; &lt;/ol&gt;<a name="line.1456"></a>
+<span class="sourceLineNo">1457</span>   *<a name="line.1457"></a>
+<span class="sourceLineNo">1458</span>   * @param signature The signature that uniquely identifies a procedure<a name="line.1458"></a>
+<span class="sourceLineNo">1459</span>   * @param instance The instance name of the procedure<a name="line.1459"></a>
+<span class="sourceLineNo">1460</span>   * @param props Property/Value pairs of properties passing to the procedure<a name="line.1460"></a>
+<span class="sourceLineNo">1461</span>   * @return true if the specified procedure is finished successfully, false if it is still running<a name="line.1461"></a>
+<span class="sourceLineNo">1462</span>   * @throws IOException if the specified procedure finished with error<a name="line.1462"></a>
+<span class="sourceLineNo">1463</span>   */<a name="line.1463"></a>
+<span class="sourceLineNo">1464</span>  boolean isProcedureFinished(String signature, String instance, Map&lt;String, String&gt; props)<a name="line.1464"></a>
+<span class="sourceLineNo">1465</span>      throws IOException;<a name="line.1465"></a>
+<span class="sourceLineNo">1466</span><a name="line.1466"></a>
+<span class="sourceLineNo">1467</span>  /**<a name="line.1467"></a>
+<span class="sourceLineNo">1468</span>   * List completed snapshots.<a name="line.1468"></a>
+<span class="sourceLineNo">1469</span>   *<a name="line.1469"></a>
+<span class="sourceLineNo">1470</span>   * @return a list of snapshot descriptors for completed snapshots<a name="line.1470"></a>
+<span class="sourceLineNo">1471</span>   * @throws IOException if a network error occurs<a name="line.1471"></a>
+<span class="sourceLineNo">1472</span>   */<a name="line.1472"></a>
+<span class="sourceLineNo">1473</span>  List&lt;HBaseProtos.SnapshotDescription&gt; listSnapshots() throws IOException;<a name="line.1473"></a>
+<span class="sourceLineNo">1474</span><a name="line.1474"></a>
+<span class="sourceLineNo">1475</span>  /**<a name="line.1475"></a>
+<span class="sourceLineNo">1476</span>   * List all the completed snapshots matching the given regular expression.<a name="line.1476"></a>
+<span class="sourceLineNo">1477</span>   *<a name="line.1477"></a>
+<span class="sourceLineNo">1478</span>   * @param regex The regular expression to match against<a name="line.1478"></a>
+<span class="sourceLineNo">1479</span>   * @return - returns a List of SnapshotDescription<a name="line.1479"></a>
+<span class="sourceLineNo">1480</span>   * @throws IOException if a remote or network exception occurs<a name="line.1480"></a>
+<span class="sourceLineNo">1481</span>   */<a name="line.1481"></a>
+<span class="sourceLineNo">1482</span>  List&lt;HBaseProtos.SnapshotDescription&gt; listSnapshots(String regex) throws IOException;<a name="line.1482"></a>
+<span class="sourceLineNo">1483</span><a name="line.1483"></a>
+<span class="sourceLineNo">1484</span>  /**<a name="line.1484"></a>
+<span class="sourceLineNo">1485</span>   * List all the completed snapshots matching the given pattern.<a name="line.1485"></a>
+<span class="sourceLineNo">1486</span>   *<a name="line.1486"></a>
+<span class="sourceLineNo">1487</span>   * @param pattern The compiled regular expression to match against<a name="line.1487"></a>
+<span class="sourceLineNo">1488</span>   * @return - returns a List of SnapshotDescription<a name="line.1488"></a>
+<span class="sourceLineNo">1489</span>   * @throws IOException if a remote or network exception occurs<a name="line.1489"></a>
+<span class="sourceLineNo">1490</span>   */<a name="line.1490"></a>
+<span class="sourceLineNo">1491</span>  List&lt;HBaseProtos.SnapshotDescription&gt; listSnapshots(Pattern pattern) throws IOException;<a name="line.1491"></a>
+<span class="sourceLineNo">1492</span><a name="line.1492"></a>
+<span class="sourceLineNo">1493</span>  /**<a name="line.1493"></a>
+<span class="sourceLineNo">1494</span>   * List all the completed snapshots matching the given table name regular expression and snapshot<a name="line.1494"></a>
+<span class="sourceLineNo">1495</span>   * name regular expression.<a name="line.1495"></a>
+<span class="sourceLineNo">1496</span>   * @param tableNameRegex The table name regular expression to match against<a name="line.1496"></a>
+<span class="sourceLineNo">1497</span>   * @param snapshotNameRegex The snapshot name regular expression to match against<a name="line.1497"></a>
+<span class="sourceLineNo">1498</span>   * @return - returns a List of completed SnapshotDescription<a name="line.1498"></a>
+<span class="sourceLineNo">1499</span>   * @throws IOException if a remote or network exception occurs<a name="line.1499"></a>
+<span class="sourceLineNo">1500</span>   */<a name="line.1500"></a>
+<span class="sourceLineNo">1501</span>  List&lt;HBaseProtos.SnapshotDescription&gt; listTableSnapshots(String tableNameRegex,<a name="line.1501"></a>
+<span class="sourceLineNo">1502</span>      String snapshotNameRegex) throws IOException;<a name="line.1502"></a>
+<span class="sourceLineNo">1503</span><a name="line.1503"></a>
+<span class="sourceLineNo">1504</span>  /**<a name="line.1504"></a>
+<span class="sourceLineNo">1505</span>   * List all the completed snapshots matching the given table name regular expression and snapshot<a name="line.1505"></a>
+<span class="sourceLineNo">1506</span>   * name regular expression.<a name="line.1506"></a>
+<span class="sourceLineNo">1507</span>   * @param tableNamePattern The compiled table name regular expression to match against<a name="line.1507"></a>
+<span class="sourceLineNo">1508</span>   * @param snapshotNamePattern The compiled snapshot name regular expression to match against<a name="line.1508"></a>
+<span class="sourceLineNo">1509</span>   * @return - returns a List of completed SnapshotDescription<a name="line.1509"></a>
+<span class="sourceLineNo">1510</span>   * @throws IOException if a remote or network exception occurs<a name="line.1510"></a>
+<span class="sourceLineNo">1511</span>   */<a name="line.1511"></a>
+<span class="sourceLineNo">1512</span>  List&lt;HBaseProtos.SnapshotDescription&gt; listTableSnapshots(Pattern tableNamePattern,<a name="line.1512"></a>
+<span class="sourceLineNo">1513</span>      Pattern snapshotNamePattern) throws IOException;<a name="line.1513"></a>
+<span class="sourceLineNo">1514</span><a name="line.1514"></a>
+<span class="sourceLineNo">1515</span>  /**<a name="line.1515"></a>
+<span class="sourceLineNo">1516</span>   * Delete an existing snapshot.<a name="line.1516"></a>
+<span class="sourceLineNo">1517</span>   *<a name="line.1517"></a>
+<span class="sourceLineNo">1518</span>   * @param snapshotName name of the snapshot<a name="line.1518"></a>
+<span class="sourceLineNo">1519</span>   * @throws IOException if a remote or network exception occurs<a name="line.1519"></a>
+<span class="sourceLineNo">1520</span>   */<a name="line.1520"></a>
+<span class="sourceLineNo">1521</span>  void deleteSnapshot(final byte[] snapshotName) throws IOException;<a name="line.1521"></a>
+<span class="sourceLineNo">1522</span><a name="line.1522"></a>
+<span class="sourceLineNo">1523</span>  /**<a name="line.1523"></a>
+<span class="sourceLineNo">1524</span>   * Delete an existing snapshot.<a name="line.1524"></a>
+<span class="sourceLineNo">1525</span>   *<a name="line.1525"></a>
+<span class="sourceLineNo">1526</span>   * @param snapshotName name of the snapshot<a name="line.1526"></a>
 <span class="sourceLineNo">1527</span>   * @throws IOException if a remote or network exception occurs<a name="line.1527"></a>
 <span class="sourceLineNo">1528</span>   */<a name="line.1528"></a>
-<span class="sourceLineNo">1529</span>  void deleteTableSnapshots(Pattern tableNamePattern, Pattern snapshotNamePattern)<a name="line.1529"></a>
-<span class="sourceLineNo">1530</span>      throws IOException;<a name="line.1530"></a>
-<span class="sourceLineNo">1531</span><a name="line.1531"></a>
-<span class="sourceLineNo">1532</span>  /**<a name="line.1532"></a>
-<span class="sourceLineNo">1533</span>   * Apply the new quota settings.<a name="line.1533"></a>
-<span class="sourceLineNo">1534</span>   *<a name="line.1534"></a>
-<span class="sourceLineNo">1535</span>   * @param quota the quota settings<a name="line.1535"></a>
-<span class="sourceLineNo">1536</span>   * @throws IOException if a remote or network exception occurs<a name="line.1536"></a>
-<span class="sourceLineNo">1537</span>   */<a name="line.1537"></a>
-<span class="sourceLineNo">1538</span>  void setQuota(final QuotaSettings quota) throws IOException;<a name="line.1538"></a>
-<span class="sourceLineNo">1539</span><a name="line.1539"></a>
-<span class="sourceLineNo">1540</span>  /**<a name="line.1540"></a>
-<span class="sourceLineNo">1541</span>   * Return a QuotaRetriever to list the quotas based on the filter.<a name="line.1541"></a>
-<span class="sourceLineNo">1542</span>   *<a name="line.1542"></a>
-<span class="sourceLineNo">1543</span>   * @param filter the quota settings filter<a name="line.1543"></a>
-<span class="sourceLineNo">1544</span>   * @return the quota retriever<a name="line.1544"></a>
-<span class="sourceLineNo">1545</span>   * @throws IOException if a remote or network exception occurs<a name="line.1545"></a>
-<span class="sourceLineNo">1546</span>   */<a name="line.1546"></a>
-<span class="sourceLineNo">1547</span>  QuotaRetriever getQuotaRetriever(final QuotaFilter filter) throws IOException;<a name="line.1547"></a>
-<span class="sourceLineNo">1548</span><a name="line.1548"></a>
-<span class="sourceLineNo">1549</span>  /**<a name="line.1549"></a>
-<span class="sourceLineNo">1550</span>   * Creates and returns a {@link com.google.protobuf.RpcChannel} instance connected to the active<a name="line.1550"></a>
-<span class="sourceLineNo">1551</span>   * master. &lt;p&gt; The obtained {@link com.google.protobuf.RpcChannel} instance can be used to access<a name="line.1551"></a>
-<span class="sourceLineNo">1552</span>   * a published coprocessor {@link com.google.protobuf.Service} using standard protobuf service<a name="line.1552"></a>
-<span class="sourceLineNo">1553</span>   * invocations: &lt;/p&gt; &lt;div style="background-color: #cccccc; padding: 2px"&gt;<a name="line.1553"></a>
-<span class="sourceLineNo">1554</span>   * &lt;blockquote&gt;&lt;pre&gt;<a name="line.1554"></a>
-<span class="sourceLineNo">1555</span>   * CoprocessorRpcChannel channel = myAdmin.coprocessorService();<a name="line.1555"></a>
-<span class="sourceLineNo">1556</span>   * MyService.BlockingInterface service = MyService.newBlockingStub(channel);<a name="line.1556"></a>
-<span class="sourceLineNo">1557</span>   * MyCallRequest request = MyCallRequest.newBuilder()<a name="line.1557"></a>
-<span class="sourceLineNo">1558</span>   *     ...<a name="line.1558"></a>
-<span class="sourceLineNo">1559</span>   *     .build();<a name="line.1559"></a>
-<span class="sourceLineNo">1560</span>   * MyCallResponse response = service.myCall(null, request);<a name="line.1560"></a>
-<span class="sourceLineNo">1561</span>   * &lt;/pre&gt;&lt;/blockquote&gt;&lt;/div&gt;<a name="line.1561"></a>
-<span class="sourceLineNo">1562</span>   *<a name="line.1562"></a>
-<span class="sourceLineNo">1563</span>   * @return A MasterCoprocessorRpcChannel instance<a name="line.1563"></a>
-<span class="sourceLineNo">1564</span>   */<a name="line.1564"></a>
-<span class="sourceLineNo">1565</span>  CoprocessorRpcChannel coprocessorService();<a name="line.1565"></a>
-<span class="sourceLineNo">1566</span><a name="line.1566"></a>
-<span class="sourceLineNo">1567</span><a name="line.1567"></a>
-<span class="sourceLineNo">1568</span>  /**<a name="line.1568"></a>
-<span class="sourceLineNo">1569</span>   * Creates and returns a {@link com.google.protobuf.RpcChannel} instance<a name="line.1569"></a>
-<span class="sourceLineNo">1570</span>   * connected to the passed region server.<a name="line.1570"></a>
-<span class="sourceLineNo">1571</span>   *<a name="line.1571"></a>
-<span class="sourceLineNo">1572</span>   * &lt;p&gt;<a name="line.1572"></a>
-<span class="sourceLineNo">1573</span>   * The obtained {@link com.google.protobuf.RpcChannel} instance can be used to access a published<a name="line.1573"></a>
-<span class="sourceLineNo">1574</span>   * coprocessor {@link com.google.protobuf.Service} using standard protobuf service invocations:<a name="line.1574"></a>
-<span class="sourceLineNo">1575</span>   * &lt;/p&gt;<a name="line.1575"></a>
+<span class="sourceLineNo">1529</span>  void deleteSnapshot(final String snapshotName) throws IOException;<a name="line.1529"></a>
+<span class="sourceLineNo">1530</span><a name="line.1530"></a>
+<span class="sourceLineNo">1531</span>  /**<a name="line.1531"></a>
+<span class="sourceLineNo">1532</span>   * Delete existing snapshots whose names match the pattern passed.<a name="line.1532"></a>
+<span class="sourceLineNo">1533</span>   *<a name="line.1533"></a>
+<span class="sourceLineNo">1534</span>   * @param regex The regular expression to match against<a name="line.1534"></a>
+<span class="sourceLineNo">1535</span>   * @throws IOException if a remote or network exception occurs<a name="line.1535"></a>
+<span class="sourceLineNo">1536</span>   */<a name="line.1536"></a>
+<span class="sourceLineNo">1537</span>  void deleteSnapshots(final String regex) throws IOException;<a name="line.1537"></a>
+<span class="sourceLineNo">1538</span><a name="line.1538"></a>
+<span class="sourceLineNo">1539</span>  /**<a name="line.1539"></a>
+<span class="sourceLineNo">1540</span>   * Delete existing snapshots whose names match the pattern passed.<a name="line.1540"></a>
+<span class="sourceLineNo">1541</span>   *<a name="line.1541"></a>
+<span class="sourceLineNo">1542</span>   * @param pattern pattern for names of the snapshot to match<a name="line.1542"></a>
+<span class="sourceLineNo">1543</span>   * @throws IOException if a remote or network exception occurs<a name="line.1543"></a>
+<span class="sourceLineNo">1544</span>   */<a name="line.1544"></a>
+<span class="sourceLineNo">1545</span>  void deleteSnapshots(final Pattern pattern) throws IOException;<a name="line.1545"></a>
+<span class="sourceLineNo">1546</span><a name="line.1546"></a>
+<span class="sourceLineNo">1547</span>  /**<a name="line.1547"></a>
+<span class="sourceLineNo">1548</span>   * Delete all existing snapshots matching the given table name regular expression and snapshot<a name="line.1548"></a>
+<span class="sourceLineNo">1549</span>   * name regular expression.<a name="line.1549"></a>
+<span class="sourceLineNo">1550</span>   * @param tableNameRegex The table name regular expression to match against<a name="line.1550"></a>
+<span class="sourceLineNo">1551</span>   * @param snapshotNameRegex The snapshot name regular expression to match against<a name="line.1551"></a>
+<span class="sourceLineNo">1552</span>   * @throws IOException if a remote or network exception occurs<a name="line.1552"></a>
+<span class="sourceLineNo">1553</span>   */<a name="line.1553"></a>
+<span class="sourceLineNo">1554</span>  void deleteTableSnapshots(String tableNameRegex, String snapshotNameRegex) throws IOException;<a name="line.1554"></a>
+<span class="sourceLineNo">1555</span><a name="line.1555"></a>
+<span class="sourceLineNo">1556</span>  /**<a name="line.1556"></a>
+<span class="sourceLineNo">1557</span>   * Delete all existing snapshots matching the given table name regular expression and snapshot<a name="line.1557"></a>
+<span class="sourceLineNo">1558</span>   * name regular expression.<a name="line.1558"></a>
+<span class="sourceLineNo">1559</span>   * @param tableNamePattern The compiled table name regular expression to match against<a name="line.1559"></a>
+<span class="sourceLineNo">1560</span>   * @param snapshotNamePattern The compiled snapshot name regular expression to match against<a name="line.1560"></a>
+<span class="sourceLineNo">1561</span>   * @throws IOException if a remote or network exception occurs<a name="line.1561"></a>
+<span class="sourceLineNo">1562</span>   */<a name="line.1562"></a>
+<span class="sourceLineNo">1563</span>  void deleteTableSnapshots(Pattern tableNamePattern, Pattern snapshotNamePattern)<a name="line.1563"></a>
+<span class="sourceLineNo">1564</span>      throws IOException;<a name="line.1564"></a>
+<span class="sourceLineNo">1565</span><a name="line.1565"></a>
+<span class="sourceLineNo">1566</span>  /**<a name="line.1566"></a>
+<span class="sourceLineNo">1567</span>   * Apply the new quota settings.<a name="line.1567"></a>
+<span class="sourceLineNo">1568</span>   *<a name="line.1568"></a>
+<span class="sourceLineNo">1569</span>   * @param quota the quota settings<a name="line.1569"></a>
+<span class="sourceLineNo">1570</span>   * @throws IOException if a remote or network exception occurs<a name="line.1570"></a>
+<span class="sourceLineNo">1571</span>   */<a name="line.1571"></a>
+<span class="sourceLineNo">1572</span>  void setQuota(final QuotaSettings quota) throws IOException;<a name="line.1572"></a>
+<span class="sourceLineNo">1573</span><a name="line.1573"></a>
+<span class="sourceLineNo">1574</span>  /**<a name="line.1574"></a>
+<span class="sourceLineNo">1575</span>   * Return a QuotaRetriever to list the quotas based on the filter.<a name="line.1575"></a>
 <span class="sourceLineNo">1576</span>   *<a name="line.1576"></a>
-<span class="sourceLineNo">1577</span>   * &lt;div style="background-color: #cccccc; padding: 2px"&gt;<a name="line.1577"></a>
-<span class="sourceLineNo">1578</span>   * &lt;blockquote&gt;&lt;pre&gt;<a name="line.1578"></a>
-<span class="sourceLineNo">1579</span>   * CoprocessorRpcChannel channel = myAdmin.coprocessorService(serverName);<a name="line.1579"></a>
-<span class="sourceLineNo">1580</span>   * MyService.BlockingInterface service = MyService.newBlockingStub(channel);<a name="line.1580"></a>
-<span class="sourceLineNo">1581</span>   * MyCallRequest request = MyCallRequest.newBuilder()<a name="line.1581"></a>
-<span class="sourceLineNo">1582</span>   *     ...<a name="line.1582"></a>
-<span class="sourceLineNo">1583</span>   *     .build();<a name="line.1583"></a>
-<span class="sourceLineNo">1584</span>   * MyCallResponse response = service.myCall(null, request);<a name="line.1584"></a>
-<span class="sourceLineNo">1585</span>   * &lt;/pre&gt;&lt;/blockquote&gt;&lt;/div&gt;<a name="line.1585"></a>
-<span class="sourceLineNo">1586</span>   *<a name="line.1586"></a>
-<span class="sourceLineNo">1587</span>   * @param sn the server name to which the endpoint call is made<a name="line.1587"></a>
-<span class="sourceLineNo">1588</span>   * @return A RegionServerCoprocessorRpcChannel instance<a name="line.1588"></a>
-<span class="sourceLineNo">1589</span>   */<a name="line.1589"></a>
-<span class="sourceLineNo">1590</span>  CoprocessorRpcChannel coprocessorService(ServerName sn);<a name="line.1590"></a>
-<span class="sourceLineNo">1591</span><a name="line.1591"></a>
-<span class="sourceLineNo">1592</span><a name="line.1592"></a>
-<span class="sourceLineNo">1593</span>  /**<a name="line.1593"></a>
-<span class="sourceLineNo">1594</span>   * Update the configuration and trigger an online config change<a name="line.1594"></a>
-<span class="sourceLineNo">1595</span>   * on the regionserver<a name="line.1595"></a>
-<span class="sourceLineNo">1596</span>   * @param server : The server whose config needs to be updated.<a name="line.1596"></a>
-<span class="sourceLineNo">1597</span>   * @throws IOException<a name="line.1597"></a>
+<span class="sourceLineNo">1577</span>   * @param filter the quota settings filter<a name="line.1577"></a>
+<span class="sourceLineNo">1578</span>   * @return the quota retriever<a name="line.1578"></a>
+<span class="sourceLineNo">1579</span>   * @throws IOException if a remote or network exception occurs<a name="line.1579"></a>
+<span class="sourceLineNo">1580</span>   */<a name="line.1580"></a>
+<span class="sourceLineNo">1581</span>  QuotaRetriever getQuotaRetriever(final QuotaFilter filter) throws IOException;<a name="line.1581"></a>
+<span class="sourceLineNo">1582</span><a name="line.1582"></a>
+<span class="sourceLineNo">1583</span>  /**<a name="line.1583"></a>
+<span class="sourceLineNo">1584</span>   * Creates and returns a {@link com.google.protobuf.RpcChannel} instance connected to the active<a name="line.1584"></a>
+<span class="sourceLineNo">1585</span>   * master. &lt;p&gt; The obtained {@link com.google.protobuf.RpcChannel} instance can be used to access<a name="line.1585"></a>
+<span class="sourceLineNo">1586</span>   * a published coprocessor {@link com.google.protobuf.Service} using standard protobuf service<a name="line.1586"></a>
+<span class="sourceLineNo">1587</span>   * invocations: &lt;/p&gt; &lt;div style="background-color: #cccccc; padding: 2px"&gt;<a name="line.1587"></a>
+<span class="sourceLineNo">1588</span>   * &lt;blockquote&gt;&lt;pre&gt;<a name="line.1588"></a>
+<span class="sourceLineNo">1589</span>   * CoprocessorRpcChannel channel = myAdmin.coprocessorService();<a name="line.1589"></a>
+<span class="sourceLineNo">1590</span>   * MyService.BlockingInterface service = MyService.newBlockingStub(channel);<a name="line.1590"></a>
+<span class="sourceLineNo">1591</span>   * MyCallRequest request = MyCallRequest.newBuilder()<a name="line.1591"></a>
+<span class="sourceLineNo">1592</span>   *     ...<a name="line.1592"></a>
+<span class="sourceLineNo">1593</span>   *     .build();<a name="line.1593"></a>
+<span class="sourceLineNo">1594</span>   * MyCallResponse response = service.myCall(null, request);<a name="line.1594"></a>
+<span class="sourceLineNo">1595</span>   * &lt;/pre&gt;&lt;/blockquote&gt;&lt;/div&gt;<a name="line.1595"></a>
+<span class="sourceLineNo">1596</span>   *<a name="line.1596"></a>
+<span class="sourceLineNo">1597</span>   * @return A MasterCoprocessorRpcChannel instance<a name="line.1597"></a>
 <span class="sourceLineNo">1598</span>   */<a name="line.1598"></a>
-<span class="sourceLineNo">1599</span>  void updateConfiguration(ServerName server) throws IOException;<a name="line.1599"></a>
+<span class="sourceLineNo">1599</span>  CoprocessorRpcChannel coprocessorService();<a name="line.1599"></a>
 <span class="sourceLineNo">1600</span><a name="line.1600"></a>
 <span class="sourceLineNo">1601</span><a name="line.1601"></a>
 <span class="sourceLineNo">1602</span>  /**<a name="line.1602"></a>
-<span class="sourceLineNo">1603</span>   * Update the configuration and trigger an online config change<a name="line.1603"></a>
-<span class="sourceLineNo">1604</span>   * on all the regionservers<a name="line.1604"></a>
-<span class="sourceLineNo">1605</span>   * @throws IOException<a name="line.1605"></a>
-<span class="sourceLineNo">1606</span>   */<a name="line.1606"></a>
-<span class="sourceLineNo">1607</span>  void updateConfiguration() throws IOException;<a name="line.1607"></a>
-<span class="sourceLineNo">1608</span><a name="line.1608"></a>
-<span class="sourceLineNo">1609</span>  /**<a name="line.1609"></a>
-<span class="sourceLineNo">1610</span>   * Get the info port of the current master if one is available.<a name="line.1610"></a>
-<span class="sourceLineNo">1611</span>   * @return master info port<a name="line.1611"></a>
-<span class="sourceLineNo">1612</span>   * @throws IOException<a name="line.1612"></a>
-<span class="sourceLineNo">1613</span>   */<a name="line.1613"></a>
-<span class="sourceLineNo">1614</span>  public int getMasterInfoPort() throws IOException;<a name="line.1614"></a>
-<span class="sourceLineNo">1615</span><a name="line.1615"></a>
-<span class="sourceLineNo">1616</span>  /**<a name="line.1616"></a>
-<span class="sourceLineNo">1617</span>   * Compact a table. Asynchronous operation.<a name="line.1617"></a>
-<span class="sourceLineNo">1618</span>   *<a name="line.1618"></a>
-<span class="sourceLineNo">1619</span>   * @param tableName table to compact<a name="line.1619"></a>
-<span class="sourceLineNo">1620</span>   * @param compactType {@link org.apache.hadoop.hbase.client.Admin.CompactType}<a name="line.1620"></a>
-<span class="sourceLineNo">1621</span>   * @throws IOException<a name="line.1621"></a>
-<span class="sourceLineNo">1622</span>   * @throws InterruptedException<a name="line.1622"></a>
+<span class="sourceLineNo">1603</span>   * Creates and returns a {@link com.google.protobuf.RpcChannel} instance<a name="line.1603"></a>
+<span class="sourceLineNo">1604</span>   * connected to the passed region server.<a name="line.1604"></a>
+<span class="sourceLineNo">1605</span>   *<a name="line.1605"></a>
+<span class="sourceLineNo">1606</span>   * &lt;p&gt;<a name="line.1606"></a>
+<span class="sourceLineNo">1607</span>   * The obtained {@link com.google.protobuf.RpcChannel} instance can be used to access a published<a name="line.1607"></a>
+<span class="sourceLineNo">1608</span>   * coprocessor {@link com.google.protobuf.Service} using standard protobuf service invocations:<a name="line.1608"></a>
+<span class="sourceLineNo">1609</span>   * &lt;/p&gt;<a name="line.1609"></a>
+<span class="sourceLineNo">1610</span>   *<a name="line.1610"></a>
+<span class="sourceLineNo">1611</span>   * &lt;div style="background-color: #cccccc; padding: 2px"&gt;<a name="line.1611"></a>
+<span class="sourceLineNo">1612</span>   * &lt;blockquote&gt;&lt;pre&gt;<a name="line.1612"></a>
+<span class="sourceLineNo">1613</span>   * CoprocessorRpcChannel channel = myAdmin.coprocessorService(serverName);<a name="line.1613"></a>
+<span class="sourceLineNo">1614</span>   * MyService.BlockingInterface service = MyService.newBlockingStub(channel);<a name="line.1614"></a>
+<span class="sourceLineNo">1615</span>   * MyCallRequest request = MyCallRequest.newBuilder()<a name="line.1615"></a>
+<span class="sourceLineNo">1616</span>   *     ...<a name="line.1616"></a>
+<span class="sourceLineNo">1617</span>   *     .build();<a name="line.1617"></a>
+<span class="sourceLineNo">1618</span>   * MyCallResponse response = service.myCall(null, request);<a name="line.1618"></a>
+<span class="sourceLineNo">1619</span>   * &lt;/pre&gt;&lt;/blockquote&gt;&lt;/div&gt;<a name="line.1619"></a>
+<span class="sourceLineNo">1620</span>   *<a name="line.1620"></a>
+<span class="sourceLineNo">1621</span>   * @param sn the server name to which the endpoint call is made<a name="line.1621"></a>
+<span class="sourceLineNo">1622</span>   * @return A RegionServerCoprocessorRpcChannel instance<a name="line.1622"></a>
 <span class="sourceLineNo">1623</span>   */<a name="line.1623"></a>
-<span class="sourceLineNo">1624</span>  void compact(final TableName tableName, CompactType compactType)<a name="line.1624"></a>
-<span class="sourceLineNo">1625</span>    throws IOException, InterruptedException;<a name="line.1625"></a>
+<span class="sourceLineNo">1624</span>  CoprocessorRpcChannel coprocessorService(ServerName sn);<a name="line.1624"></a>
+<span class="sourceLineNo">1625</span><a name="line.1625"></a>
 <span class="sourceLineNo">1626</span><a name="line.1626"></a>
 <span class="sourceLineNo">1627</span>  /**<a name="line.1627"></a>
-<span class="sourceLineNo">1628</span>   * Compact a column family within a table. Asynchronous operation.<a name="line.1628"></a>
-<span class="sourceLineNo">1629</span>   *<a name="line.1629"></a>
-<span class="sourceLineNo">1630</span>   * @param tableName table to compact<a name="line.1630"></a>
-<span class="sourceLineNo">1631</span>   * @param columnFamily column family within a table<a name="line.1631"></a>
-<span class="sourceLineNo">1632</span>   * @param compactType {@link org.apache.hadoop.hbase.client.Admin.CompactType}<a name="line.1632"></a>
-<span class="sourceLineNo">1633</span>   * @throws IOException if not a mob column family or if a remote or network exception occurs<a name="line.1633"></a>
-<span class="sourceLineNo">1634</span>   * @throws InterruptedException<a name="line.1634"></a>
-<span class="sourceLineNo">1635</span>   */<a name="line.1635"></a>
-<span class="sourceLineNo">1636</span>  void compact(final TableName tableName, final byte[] columnFamily, CompactType compactType)<a name="line.1636"></a>
-<span class="sourceLineNo">1637</span>    throws IOException, InterruptedException;<a name="line.1637"></a>
-<span class="sourceLineNo">1638</span><a name="line.1638"></a>
-<span class="sourceLineNo">1639</span>  /**<a name="line.1639"></a>
-<span class="sourceLineNo">1640</span>   * Major compact a table. Asynchronous operation.<a name="line.1640"></a>
-<span class="sourceLineNo">1641</span>   *<a name="line.1641"></a>
-<span class="sourceLineNo">1642</span>   * @param tableName table to compact<a name="line.1642"></a>
-<span class="sourceLineNo">1643</span>   * @param compactType {@link org.apache.hadoop.hbase.client.Admin.CompactType}<a name="line.1643"></a>
-<span class="sourceLineNo">1644</span>   * @throws IOException<a name="line.1644"></a>
-<span class="sourceLineNo">1645</span>   * @throws InterruptedException<a name="line.1645"></a>
-<span class="sourceLineNo">1646</span>   */<a name="line.1646"></a>
-<span class="sourceLineNo">1647</span>  void majorCompact(final TableName tableName, CompactType compactType)<a name="line.1647"></a>
-<span class="sourceLineNo">1648</span>    throws IOException, InterruptedException;<a name="line.1648"></a>
+<span class="sourceLineNo">1628</span>   * Update the configuration and trigger an online config change<a name="line.1628"></a>
+<span class="sourceLineNo">1629</span>   * on the regionserver<a name="line.1629"></a>
+<span class="sourceLineNo">1630</span>   * @param server : The server whose config needs to be updated.<a name="line.1630"></a>
+<span class="sourceLineNo">1631</span>   * @throws IOException<a name="line.1631"></a>
+<span class="sourceLineNo">1632</span>   */<a name="line.1632"></a>
+<span class="sourceLineNo">1633</span>  void updateConfiguration(ServerName server) throws IOException;<a name="line.1633"></a>
+<span class="sourceLineNo">1634</span><a name="line.1634"></a>
+<span class="sourceLineNo">1635</span><a name="line.1635"></a>
+<span class="sourceLineNo">1636</span>  /**<a name="line.1636"></a>
+<span class="sourceLineNo">1637</span>   * Update the configuration and trigger an online config change<a name="line.1637"></a>
+<span class="sourceLineNo">1638</span>   * on all the regionservers<a name="line.1638"></a>
+<span class="sourceLineNo">1639</span>   * @throws IOException<a name="line.1639"></a>
+<span class="sourceLineNo">1640</span>   */<a name="line.1640"></a>
+<span class="sourceLineNo">1641</span>  void updateConfiguration() throws IOException;<a name="line.1641"></a>
+<span class="sourceLineNo">1642</span><a name="line.1642"></a>
+<span class="sourceLineNo">1643</span>  /**<a name="line.1643"></a>
+<span class="sourceLineNo">1644</span>   * Get the info port of the current master if one is available.<a name="line.1644"></a>
+<span class="sourceLineNo">1645</span>   * @return master info port<a name="line.1645"></a>
+<span class="sourceLineNo">1646</span>   * @throws IOException<a name="line.1646"></a>
+<span class="sourceLineNo">1647</span>   */<a name="line.1647"></a>
+<span class="sourceLineNo">1648</span>  public int getMasterInfoPort() throws IOException;<a name="line.1648"></a>
 <span class="sourceLineNo">1649</span><a name="line.1649"></a>
 <span class="sourceLineNo">1650</span>  /**<a name="line.1650"></a>
-<span class="sourceLineNo">1651</span>   * Major compact a column family within a table. Asynchronous operation.<a name="line.1651"></a>
+<span class="sourceLineNo">1651</span>   * Compact a table. Asynchronous operation.<a name="line.1651"></a>
 <span class="sourceLineNo">1652</span>   *<a name="line.1652"></a>
 <span class="sourceLineNo">1653</span>   * @param tableName table to compact<a name="line.1653"></a>
-<span class="sourceLineNo">1654</span>   * @param columnFamily column family within a table<a name="line.1654"></a>
-<span class="sourceLineNo">1655</span>   * @param compactType {@link org.apache.hadoop.hbase.client.Admin.CompactType}<a name="line.1655"></a>
-<span class="sourceLineNo">1656</span>   * @throws IOException if not a mob column family or if a remote or network exception occurs<a name="line.1656"></a>
-<span class="sourceLineNo">1657</span>   * @throws InterruptedException<a name="line.1657"></a>
-<span class="sourceLineNo">1658</span>   */<a name="line.1658"></a>
-<span class="sourceLineNo">1659</span>  void majorCompact(final TableName tableName, final byte[] columnFamily, CompactType compactType)<a name="line.1659"></a>
-<span class="sourceLineNo">1660</span>    throws IOException, InterruptedException;<a name="line.1660"></a>
-<span class="sourceLineNo">1661</span><a name="line.1661"></a>
-<span class="sourceLineNo">1662</span>  /**<a name="line.1662"></a>
-<span class="sourceLineNo">1663</span>   * Get the current compaction state of a table. It could be in a compaction, or none.<a name="line.1663"></a>
-<span class="sourceLineNo">1664</span>   *<a name="line.1664"></a>
-<span class="sourceLineNo">1665</span>   * @param tableName table to examine<a name="line.1665"></a>
+<span class="sourceLineNo">1654</span>   * @param compactType {@link org.apache.hadoop.hbase.client.Admin.CompactType}<a name="line.1654"></a>
+<span class="sourceLineNo">1655</span>   * @throws IOException<a name="line.1655"></a>
+<span class="sourceLineNo">1656</span>   * @throws InterruptedException<a name="line.1656"></a>
+<span class="sourceLineNo">1657</span>   */<a name="line.1657"></a>
+<span class="sourceLineNo">1658</span>  void compact(final TableName tableName, CompactType compactType)<a name="line.1658"></a>
+<span class="sourceLineNo">1659</span>    throws IOException, InterruptedException;<a name="line.1659"></a>
+<span class="sourceLineNo">1660</span><a name="line.1660"></a>
+<span class="sourceLineNo">1661</span>  /**<a name="line.1661"></a>
+<span class="sourceLineNo">1662</span>   * Compact a column family within a table. Asynchronous operation.<a name="line.1662"></a>
+<span class="sourceLineNo">1663</span>   *<a name="line.1663"></a>
+<span class="sourceLineNo">1664</span>   * @param tableName table to compact<a name="line.1664"></a>
+<span class="sourceLineNo">1665</span>   * @param columnFamily column family within a table<a name="line.1665"></a>
 <span class="sourceLineNo">1666</span>   * @param compactType {@link org.apache.hadoop.hbase.client.Admin.CompactType}<a name="line.1666"></a>
-<span class="sourceLineNo">1667</span>   * @return the current compaction state<a name="line.1667"></a>
-<span class="sourceLineNo">1668</span>   * @throws IOException if a remote or network exception occurs<a name="line.1668"></a>
+<span class="sourceLineNo">1667</span>   * @throws IOException if not a mob column family or if a remote or network exception occurs<a name="line.1667"></a>
+<span class="sourceLineNo">1668</span>   * @throws InterruptedException<a name="line.1668"></a>
 <span class="sourceLineNo">1669</span>   */<a name="line.1669"></a>
-<span class="sourceLineNo">1670</span>  AdminProtos.GetRegionInfoResponse.CompactionState getCompactionState(final TableName tableName,<a name="line.1670"></a>
-<span class="sourceLineNo">1671</span>    CompactType compactType) throws IOException;<a name="line.1671"></a>
+<span class="sourceLineNo">1670</span>  void compact(final TableName tableName, final byte[] columnFamily, CompactType compactType)<a name="line.1670"></a>
+<span class="sourceLineNo">1671</span>    throws IOException, InterruptedException;<a name="line.1671"></a>
 <span class="sourceLineNo">1672</span><a name="line.1672"></a>
 <span class="sourceLineNo">1673</span>  /**<a name="line.1673"></a>
-<span class="sourceLineNo">1674</span>   * Return the set of supported security capabilities.<a name="line.1674"></a>
-<span class="sourceLineNo">1675</span>   * @throws IOException<a name="line.1675"></a>
-<span class="sourceLineNo">1676</span>   * @throws UnsupportedOperationException<a name="line.1676"></a>
-<span class="sourceLineNo">1677</span>   */<a name="line.1677"></a>
-<span class="sourceLineNo">1678</span>  List&lt;SecurityCapability&gt; getSecurityCapabilities() throws IOException;<a name="line.1678"></a>
-<span class="sourceLineNo">1679</span><a name="line.1679"></a>
-<span class="sourceLineNo">1680</span>  /**<a name="line.1680"></a>
-<span class="sourceLineNo">1681</span>   * Turn the Split or Merge switches on or off.<a name="line.1681"></a>
-<span class="sourceLineNo">1682</span>   *<a name="line.1682"></a>
-<span class="sourceLineNo">1683</span>   * @param enabled enabled or not<a name="line.1683"></a>
-<span class="sourceLineNo">1684</span>   * @param synchronous If true, it waits until current split() call, if outstanding, to return.<a name="line.1684"></a>
-<span class="sourceLineNo">1685</span>   * @param switchTypes switchType list {@link MasterSwitchType}<a name="line.1685"></a>
-<span class="sourceLineNo">1686</span>   * @return Previous switch value array<a name="line.1686"></a>
-<span class="sourceLineNo">1687</span>   */<a name="line.1687"></a>
-<span class="sourceLineNo">1688</span>  boolean[] setSplitOrMergeEnabled(final boolean enabled, final boolean synchronous,<a name="line.1688"></a>
-<span class="sourceLineNo">1689</span>                                   final MasterSwitchType... switchTypes) throws IOException;<a name="line.1689"></a>
-<span class="sourceLineNo">1690</span><a name="line.1690"></a>
-<span class="sourceLineNo">1691</span>  /**<a name="line.1691"></a>
-<span class="sourceLineNo">1692</span>   * Query the current state of the switch<a name="line.1692"></a>
-<span class="sourceLineNo">1693</span>   *<a name="line.1693"></a>
-<span class="sourceLineNo">1694</span>   * @return true if the switch is enabled, false otherwise.<a name="line.1694"></a>
-<span class="sourceLineNo">1695</span>   */<a name="line.1695"></a>
-<span class="sourceLineNo">1696</span>  boolean isSplitOrMergeEnabled(final MasterSwitchType switchType) throws IOException;<a name="line.1696"></a>
-<span class="sourceLineNo">1697</span><a name="line.1697"></a>
-<span class="sourceLineNo">1698</span>  /**<a name="line.1698"></a>
-<span class="sourceLineNo">1699</span>   * Currently, there are only two compact types:<a name="line.1699"></a>
-<span class="sourceLineNo">1700</span>   * {@code NORMAL} means do store files compaction;<a name="line.1700"></a>
-<span class="sourceLineNo">1701</span>   * {@code MOB} means do mob files compaction.<a name="line.1701"></a>
-<span class="sourceLineNo">1702</span>   * */<a name="line.1702"></a>
-<span class="sourceLineNo">1703</span>  @InterfaceAudience.Public<a name="line.1703"></a>
-<span class="sourceLineNo">1704</span>  @InterfaceStability.Unstable<a name="line.1704"></a>
-<span class="sourceLineNo">1705</span>  public enum CompactType {<a name="line.1705"></a>
+<span class="sourceLineNo">1674</span>   * Major compact a table. Asynchronous operation.<a name="line.1674"></a>
+<span class="sourceLineNo">1675</span>   *<a name="line.1675"></a>
+<span class="sourceLineNo">1676</span>   * @param tableName table to compact<a name="line.1676"></a>
+<span class="sourceLineNo">1677</span>   * @param compactType {@link org.apache.hadoop.hbase.client.Admin.CompactType}<a name="line.1677"></a>
+<span class="sourceLineNo">1678</span>   * @throws IOException<a name="line.1678"></a>
+<span class="sourceLineNo">1679</span>   * @throws InterruptedException<a name="line.1679"></a>
+<span class="sourceLineNo">1680</span>   */<a name="line.1680"></a>
+<span class="sourceLineNo">1681</span>  void majorCompact(final TableName tableName, CompactType compactType)<a name="line.1681"></a>
+<span class="sourceLineNo">1682</span>    throws IOException, InterruptedException;<a name="line.1682"></a>
+<span class="sourceLineNo">1683</span><a name="line.1683"></a>
+<span class="sourceLineNo">1684</span>  /**<a name="line.1684"></a>
+<span class="sourceLineNo">1685</span>   * Major compact a column family within a table. Asynchronous operation.<a name="line.1685"></a>
+<span class="sourceLineNo">1686</span>   *<a name="line.1686"></a>
+<span class="sourceLineNo">1687</span>   * @param tableName table to compact<a name="line.1687"></a>
+<span class="sourceLineNo">1688</span>   * @param columnFamily column family within a table<a name="line.1688"></a>
+<span class="sourceLineNo">1689</span>   * @param compactType {@link org.apache.hadoop.hbase.client.Admin.CompactType}<a name="line.1689"></a>
+<span class="sourceLineNo">1690</span>   * @throws IOException if not a mob column family or if a remote or network exception occurs<a name="line.1690"></a>
+<span class="sourceLineNo">1691</span>   * @throws InterruptedException<a name="line.1691"></a>
+<span class="sourceLineNo">1692</span>   */<a name="line.1692"></a>
+<span class="sourceLineNo">1693</span>  void majorCompact(final TableName tableName, final byte[] columnFamily, CompactType compactType)<a name="line.1693"></a>
+<span class="sourceLineNo">1694</span>    throws IOException, InterruptedException;<a name="line.1694"></a>
+<span class="sourceLineNo">1695</span><a name="line.1695"></a>
+<span class="sourceLineNo">1696</span>  /**<a name="line.1696"></a>
+<span class="sourceLineNo">1697</span>   * Get the current compaction state of a table. It could be in a compaction, or none.<a name="line.1697"></a>
+<span class="sourceLineNo">1698</span>   *<a name="line.1698"></a>
+<span class="sourceLineNo">1699</span>   * @param tableName table to examine<a name="line.1699"></a>
+<span class="sourceLineNo">1700</span>   * @param compactType {@link org.apache.hadoop.hbase.client.Admin.CompactType}<a name="line.1700"></a>
+<span class="sourceLineNo">1701</span>   * @return the current compaction state<a name="line.1701"></a>
+<span class="sourceLineNo">1702</span>   * @throws IOException if a remote or network exception occurs<a name="line.1702"></a>
+<span class="sourceLineNo">1703</span>   */<a name="line.1703"></a>
+<span class="sourceLineNo">1704</span>  AdminProtos.GetRegionInfoResponse.CompactionState getCompactionState(final TableName tableName,<a name="line.1704"></a>
+<span class="sourceLineNo">1705</span>    CompactType compactType) throws IOException;<a name="line.1705"></a>
 <span class="sourceLineNo">1706</span><a name="line.1706"></a>
-<span class="sourceLineNo">1707</span>    NORMAL    (0),<a name="line.1707"></a>
-<span class="sourceLineNo">1708</span>    MOB       (1);<a name="line.1708"></a>
-<span class="sourceLineNo">1709</span><a name="line.1709"></a>
-<span class="sourceLineNo">1710</span>    CompactType(int value) {}<a name="line.1710"></a>
-<span class="sourceLineNo">1711</span>  }<a name="line.1711"></a>
-<span class="sourceLineNo">1712</span>  <a name="line.1712"></a>
-<span class="sourceLineNo">1713</span>  @InterfaceAudience.Public<a name="line.1713"></a>
-<span class="sourceLineNo">1714</span>  @InterfaceStability.Evolving<a name="line.1714"></a>
-<span class="sourceLineNo">1715</span>  public enum MasterSwitchType {<a name="line.1715"></a>
-<span class="sourceLineNo">1716</span>    SPLIT,<a name="line.1716"></a>
-<span class="sourceLineNo">1717</span>    MERGE<a name="line.1717"></a>
-<span class="sourceLineNo">1718</span>  }<a name="line.1718"></a>
-<span class="sourceLineNo">1719</span><a name="line.1719"></a>
-<span class="sourceLineNo">1720</span>}<a name="line.1720"></a>
+<span class="sourceLineNo">1707</span>  /**<a name="line.1707"></a>
+<span class="sourceLineNo">1708</span>   * Return the set of supported security capabilities.<a name="line.1708"></a>
+<span class="sourceLineNo">1709</span>   * @throws IOException<a name="line.1709"></a>
+<span class="sourceLineNo">1710</span>   * @throws UnsupportedOperationException<a name="line.1710"></a>
+<span class="sourceLineNo">1711</span>   */<a name="line.1711"></a>
+<span class="sourceLineNo">1712</span>  List&lt;SecurityCapability&gt; getSecurityCapabilities() throws IOException;<a name="line.1712"></a>
+<span class="sourceLineNo">1713</span><a name="line.1713"></a>
+<span class="sourceLineNo">1714</span>  /**<a name="line.1714"></a>
+<span class="sourceLineNo">1715</span>   * Turn the Split or Merge switches on or off.<a name="line.1715"></a>
+<span class="sourceLineNo">1716</span>   *<a name="line.1716"></a>
+<span class="sourceLineNo">1717</span>   * @param enabled enabled or not<a name="line.1717"></a>
+<span class="sourceLineNo">1718</span>   * @param synchronous If true, it waits until current split() call, if outstanding, to return.<a name="line.1718"></a>
+<span class="sourceLineNo">1719</span>   * @param switchTypes switchType list {@link MasterSwitchType}<a name="line.1719"></a>
+<span class="sourceLineNo">1720</span>   * @return Previous switch value array<a name="line.1720"></a>
+<span class="sourceLineNo">1721</span>   */<a name="line.1721"></a>
+<span class="sourceLineNo">1722</span>  boolean[] setSplitOrMergeEnabled(final boolean enabled, final boolean synchronous,<a name="line.1722"></a>
+<span class="sourceLineNo">1723</span>                                   final MasterSwitchType... switchTypes) throws IOException;<a name="line.1723"></a>
+<span class="sourceLineNo">1724</span><a name="line.1724"></a>
+<span class="sourceLineNo">1725</span>  /**<a name="line.1725"></a>
+<span class="sourceLineNo">1726</span>   * Query the current state of the switch<a name="line.1726"></a>
+<span class="sourceLineNo">1727</span>   *<a name="line.1727"></a>
+<span class="sourceLineNo">1728</span>   * @return true if the switch is enabled, false otherwise.<a name="line.1728"></a>
+<span class="sourceLineNo">1729</span>   */<a name="line.1729"></a>
+<span class="sourceLineNo">1730</span>  boolean isSplitOrMergeEnabled(final MasterSwitchType switchType) throws IOException;<a name="line.1730"></a>
+<span class="sourceLineNo">1731</span><a name="line.1731"></a>
+<span class="sourceLineNo">1732</span>  /**<a name="line.1732"></a>
+<span class="sourceLineNo">1733</span>   * Currently, there are only two compact types:<a name="line.1733"></a>
+<span class="sourceLineNo">1734</span>   * {@code NORMAL} means do store files compaction;<a name="line.1734"></a>
+<span class="sourceLineNo">1735</span>   * {@code MOB} means do mob files compaction.<a name="line.1735"></a>
+<span class="sourceLineNo">1736</span>   * */<a name="line.1736"></a>
+<span class="sourceLineNo">1737</span>  @InterfaceAudience.Public<a name="line.1737"></a>
+<span class="sourceLineNo">1738</span>  @InterfaceStability.Unstable<a name="line.1738"></a>
+<span class="sourceLineNo">1739</span>  public enum CompactType {<a name="line.1739"></a>
+<span class="sourceLineNo">1740</span><a name="line.1740"></a>
+<span class="sourceLineNo">1741</span>    NORMAL    (0),<a name="line.1741"></a>
+<span class="sourceLineNo">1742</span>    MOB       (1);<a name="line.1742"></a>
+<span class="sourceLineNo">1743</span><a name="line.1743"></a>
+<span class="sourceLineNo">1744</span>    CompactType(int value) {}<a name="line.1744"></a>
+<span class="sourceLineNo">1745</span>  }<a name="line.1745"></a>
+<span class="sourceLineNo">1746</span>  <a name="line.1746"></a>
+<span class="sourceLineNo">1747</span>  @InterfaceAudience.Public<a name="line.1747"></a>
+<span class="sourceLineNo">1748</span>  @InterfaceStability.Evolving<a name="line.1748"></a>
+<span class="sourceLineNo">1749</span>  public enum MasterSwitchType {<a name="line.1749"></a>
+<span class="sourceLineNo">1750</span>    SPLIT,<a name="line.1750"></a>
+<span class="sourceLineNo">1751</span>    MERGE<a name="line.1751"></a>
+<span class="sourceLineNo">1752</span>  }<a name="line.1752"></a>
+<span class="sourceLineNo">1753</span><a name="line.1753"></a>
+<span class="sourceLineNo">1754</span>}<a name="line.1754"></a>
 
 
 


Mime
View raw message