hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From git-site-r...@apache.org
Subject [27/50] hbase-site git commit: Published site at .
Date Fri, 01 Dec 2017 15:18:42 GMT
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/a5c4dca3/devapidocs/src-html/org/apache/hadoop/hbase/master/MasterCoprocessorHost.MasterObserverOperation.html
----------------------------------------------------------------------
diff --git a/devapidocs/src-html/org/apache/hadoop/hbase/master/MasterCoprocessorHost.MasterObserverOperation.html b/devapidocs/src-html/org/apache/hadoop/hbase/master/MasterCoprocessorHost.MasterObserverOperation.html
index 9fa61e7..a074e6e 100644
--- a/devapidocs/src-html/org/apache/hadoop/hbase/master/MasterCoprocessorHost.MasterObserverOperation.html
+++ b/devapidocs/src-html/org/apache/hadoop/hbase/master/MasterCoprocessorHost.MasterObserverOperation.html
@@ -1409,267 +1409,291 @@
 <span class="sourceLineNo">1401</span>    });<a name="line.1401"></a>
 <span class="sourceLineNo">1402</span>  }<a name="line.1402"></a>
 <span class="sourceLineNo">1403</span><a name="line.1403"></a>
-<span class="sourceLineNo">1404</span>  public void preAddReplicationPeer(final String peerId, final ReplicationPeerConfig peerConfig)<a name="line.1404"></a>
+<span class="sourceLineNo">1404</span>  public void preRemoveServers(final Set&lt;Address&gt; servers)<a name="line.1404"></a>
 <span class="sourceLineNo">1405</span>      throws IOException {<a name="line.1405"></a>
 <span class="sourceLineNo">1406</span>    execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation() {<a name="line.1406"></a>
 <span class="sourceLineNo">1407</span>      @Override<a name="line.1407"></a>
 <span class="sourceLineNo">1408</span>      public void call(MasterObserver observer) throws IOException {<a name="line.1408"></a>
-<span class="sourceLineNo">1409</span>        observer.preAddReplicationPeer(this, peerId, peerConfig);<a name="line.1409"></a>
-<span class="sourceLineNo">1410</span>      }<a name="line.1410"></a>
-<span class="sourceLineNo">1411</span>    });<a name="line.1411"></a>
-<span class="sourceLineNo">1412</span>  }<a name="line.1412"></a>
-<span class="sourceLineNo">1413</span><a name="line.1413"></a>
-<span class="sourceLineNo">1414</span>  public void postAddReplicationPeer(final String peerId, final ReplicationPeerConfig peerConfig)<a name="line.1414"></a>
-<span class="sourceLineNo">1415</span>      throws IOException {<a name="line.1415"></a>
-<span class="sourceLineNo">1416</span>    execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation() {<a name="line.1416"></a>
-<span class="sourceLineNo">1417</span>      @Override<a name="line.1417"></a>
-<span class="sourceLineNo">1418</span>      public void call(MasterObserver observer) throws IOException {<a name="line.1418"></a>
-<span class="sourceLineNo">1419</span>        observer.postAddReplicationPeer(this, peerId, peerConfig);<a name="line.1419"></a>
-<span class="sourceLineNo">1420</span>      }<a name="line.1420"></a>
-<span class="sourceLineNo">1421</span>    });<a name="line.1421"></a>
-<span class="sourceLineNo">1422</span>  }<a name="line.1422"></a>
-<span class="sourceLineNo">1423</span><a name="line.1423"></a>
-<span class="sourceLineNo">1424</span>  public void preRemoveReplicationPeer(final String peerId) throws IOException {<a name="line.1424"></a>
-<span class="sourceLineNo">1425</span>    execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation() {<a name="line.1425"></a>
-<span class="sourceLineNo">1426</span>      @Override<a name="line.1426"></a>
-<span class="sourceLineNo">1427</span>      public void call(MasterObserver observer) throws IOException {<a name="line.1427"></a>
-<span class="sourceLineNo">1428</span>        observer.preRemoveReplicationPeer(this, peerId);<a name="line.1428"></a>
-<span class="sourceLineNo">1429</span>      }<a name="line.1429"></a>
-<span class="sourceLineNo">1430</span>    });<a name="line.1430"></a>
-<span class="sourceLineNo">1431</span>  }<a name="line.1431"></a>
-<span class="sourceLineNo">1432</span><a name="line.1432"></a>
-<span class="sourceLineNo">1433</span>  public void postRemoveReplicationPeer(final String peerId) throws IOException {<a name="line.1433"></a>
-<span class="sourceLineNo">1434</span>    execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation() {<a name="line.1434"></a>
-<span class="sourceLineNo">1435</span>      @Override<a name="line.1435"></a>
-<span class="sourceLineNo">1436</span>      public void call(MasterObserver observer) throws IOException {<a name="line.1436"></a>
-<span class="sourceLineNo">1437</span>        observer.postRemoveReplicationPeer(this, peerId);<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>  }<a name="line.1440"></a>
-<span class="sourceLineNo">1441</span><a name="line.1441"></a>
-<span class="sourceLineNo">1442</span>  public void preEnableReplicationPeer(final String peerId) throws IOException {<a name="line.1442"></a>
-<span class="sourceLineNo">1443</span>    execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation() {<a name="line.1443"></a>
-<span class="sourceLineNo">1444</span>      @Override<a name="line.1444"></a>
-<span class="sourceLineNo">1445</span>      public void call(MasterObserver observer) throws IOException {<a name="line.1445"></a>
-<span class="sourceLineNo">1446</span>        observer.preEnableReplicationPeer(this, peerId);<a name="line.1446"></a>
-<span class="sourceLineNo">1447</span>      }<a name="line.1447"></a>
-<span class="sourceLineNo">1448</span>    });<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>  public void postEnableReplicationPeer(final String peerId) throws IOException {<a name="line.1451"></a>
-<span class="sourceLineNo">1452</span>    execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation() {<a name="line.1452"></a>
-<span class="sourceLineNo">1453</span>      @Override<a name="line.1453"></a>
-<span class="sourceLineNo">1454</span>      public void call(MasterObserver observer) throws IOException {<a name="line.1454"></a>
-<span class="sourceLineNo">1455</span>        observer.postEnableReplicationPeer(this, peerId);<a name="line.1455"></a>
-<span class="sourceLineNo">1456</span>      }<a name="line.1456"></a>
-<span class="sourceLineNo">1457</span>    });<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>  public void preDisableReplicationPeer(final String peerId) throws IOException {<a name="line.1460"></a>
-<span class="sourceLineNo">1461</span>    execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation() {<a name="line.1461"></a>
-<span class="sourceLineNo">1462</span>      @Override<a name="line.1462"></a>
-<span class="sourceLineNo">1463</span>      public void call(MasterObserver observer) throws IOException {<a name="line.1463"></a>
-<span class="sourceLineNo">1464</span>        observer.preDisableReplicationPeer(this, peerId);<a name="line.1464"></a>
-<span class="sourceLineNo">1465</span>      }<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><a name="line.1468"></a>
-<span class="sourceLineNo">1469</span>  public void postDisableReplicationPeer(final String peerId) throws IOException {<a name="line.1469"></a>
-<span class="sourceLineNo">1470</span>    execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation() {<a name="line.1470"></a>
-<span class="sourceLineNo">1471</span>      @Override<a name="line.1471"></a>
-<span class="sourceLineNo">1472</span>      public void call(MasterObserver observer) throws IOException {<a name="line.1472"></a>
-<span class="sourceLineNo">1473</span>        observer.postDisableReplicationPeer(this, peerId);<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>  }<a name="line.1476"></a>
-<span class="sourceLineNo">1477</span><a name="line.1477"></a>
-<span class="sourceLineNo">1478</span>  public void preGetReplicationPeerConfig(final String peerId) throws IOException {<a name="line.1478"></a>
-<span class="sourceLineNo">1479</span>    execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation() {<a name="line.1479"></a>
-<span class="sourceLineNo">1480</span>      @Override<a name="line.1480"></a>
-<span class="sourceLineNo">1481</span>      public void call(MasterObserver observer) throws IOException {<a name="line.1481"></a>
-<span class="sourceLineNo">1482</span>        observer.preGetReplicationPeerConfig(this, peerId);<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>  }<a name="line.1485"></a>
-<span class="sourceLineNo">1486</span><a name="line.1486"></a>
-<span class="sourceLineNo">1487</span>  public void postGetReplicationPeerConfig(final String peerId) throws IOException {<a name="line.1487"></a>
-<span class="sourceLineNo">1488</span>    execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation() {<a name="line.1488"></a>
-<span class="sourceLineNo">1489</span>      @Override<a name="line.1489"></a>
-<span class="sourceLineNo">1490</span>      public void call(MasterObserver observer) throws IOException {<a name="line.1490"></a>
-<span class="sourceLineNo">1491</span>        observer.postGetReplicationPeerConfig(this, peerId);<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>  }<a name="line.1494"></a>
-<span class="sourceLineNo">1495</span><a name="line.1495"></a>
-<span class="sourceLineNo">1496</span>  public void preUpdateReplicationPeerConfig(final String peerId,<a name="line.1496"></a>
-<span class="sourceLineNo">1497</span>      final ReplicationPeerConfig peerConfig) throws IOException {<a name="line.1497"></a>
-<span class="sourceLineNo">1498</span>    execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation() {<a name="line.1498"></a>
-<span class="sourceLineNo">1499</span>      @Override<a name="line.1499"></a>
-<span class="sourceLineNo">1500</span>      public void call(MasterObserver observer) throws IOException {<a name="line.1500"></a>
-<span class="sourceLineNo">1501</span>        observer.preUpdateReplicationPeerConfig(this, peerId, peerConfig);<a name="line.1501"></a>
-<span class="sourceLineNo">1502</span>      }<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><a name="line.1505"></a>
-<span class="sourceLineNo">1506</span>  public void postUpdateReplicationPeerConfig(final String peerId,<a name="line.1506"></a>
-<span class="sourceLineNo">1507</span>      final ReplicationPeerConfig peerConfig) throws IOException {<a name="line.1507"></a>
-<span class="sourceLineNo">1508</span>    execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation() {<a name="line.1508"></a>
-<span class="sourceLineNo">1509</span>      @Override<a name="line.1509"></a>
-<span class="sourceLineNo">1510</span>      public void call(MasterObserver observer) throws IOException {<a name="line.1510"></a>
-<span class="sourceLineNo">1511</span>        observer.postUpdateReplicationPeerConfig(this, peerId, peerConfig);<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>  }<a name="line.1514"></a>
-<span class="sourceLineNo">1515</span><a name="line.1515"></a>
-<span class="sourceLineNo">1516</span>  public void preListReplicationPeers(final String regex) throws IOException {<a name="line.1516"></a>
-<span class="sourceLineNo">1517</span>    execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation() {<a name="line.1517"></a>
-<span class="sourceLineNo">1518</span>      @Override<a name="line.1518"></a>
-<span class="sourceLineNo">1519</span>      public void call(MasterObserver observer) throws IOException {<a name="line.1519"></a>
-<span class="sourceLineNo">1520</span>        observer.preListReplicationPeers(this, regex);<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>  }<a name="line.1523"></a>
-<span class="sourceLineNo">1524</span><a name="line.1524"></a>
-<span class="sourceLineNo">1525</span>  public void postListReplicationPeers(final String regex) throws IOException {<a name="line.1525"></a>
-<span class="sourceLineNo">1526</span>    execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation() {<a name="line.1526"></a>
-<span class="sourceLineNo">1527</span>      @Override<a name="line.1527"></a>
-<span class="sourceLineNo">1528</span>      public void call(MasterObserver observer) throws IOException {<a name="line.1528"></a>
-<span class="sourceLineNo">1529</span>        observer.postListReplicationPeers(this, regex);<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>  }<a name="line.1532"></a>
-<span class="sourceLineNo">1533</span><a name="line.1533"></a>
-<span class="sourceLineNo">1534</span>  public void preRequestLock(String namespace, TableName tableName, RegionInfo[] regionInfos,<a name="line.1534"></a>
-<span class="sourceLineNo">1535</span>      LockType type, String description) throws IOException {<a name="line.1535"></a>
-<span class="sourceLineNo">1536</span>    execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation() {<a name="line.1536"></a>
-<span class="sourceLineNo">1537</span>      @Override<a name="line.1537"></a>
-<span class="sourceLineNo">1538</span>      public void call(MasterObserver observer) throws IOException {<a name="line.1538"></a>
-<span class="sourceLineNo">1539</span>        observer.preRequestLock(this, namespace, tableName, regionInfos, description);<a name="line.1539"></a>
-<span class="sourceLineNo">1540</span>      }<a name="line.1540"></a>
-<span class="sourceLineNo">1541</span>    });<a name="line.1541"></a>
-<span class="sourceLineNo">1542</span>  }<a name="line.1542"></a>
-<span class="sourceLineNo">1543</span><a name="line.1543"></a>
-<span class="sourceLineNo">1544</span>  public void postRequestLock(String namespace, TableName tableName, RegionInfo[] regionInfos,<a name="line.1544"></a>
-<span class="sourceLineNo">1545</span>      LockType type, String description) throws IOException {<a name="line.1545"></a>
-<span class="sourceLineNo">1546</span>    execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation() {<a name="line.1546"></a>
-<span class="sourceLineNo">1547</span>      @Override<a name="line.1547"></a>
-<span class="sourceLineNo">1548</span>      public void call(MasterObserver observer) throws IOException {<a name="line.1548"></a>
-<span class="sourceLineNo">1549</span>        observer.postRequestLock(this, namespace, tableName, regionInfos, description);<a name="line.1549"></a>
-<span class="sourceLineNo">1550</span>      }<a name="line.1550"></a>
-<span class="sourceLineNo">1551</span>    });<a name="line.1551"></a>
-<span class="sourceLineNo">1552</span>  }<a name="line.1552"></a>
-<span class="sourceLineNo">1553</span><a name="line.1553"></a>
-<span class="sourceLineNo">1554</span>  public void preLockHeartbeat(LockProcedure proc, boolean keepAlive) throws IOException {<a name="line.1554"></a>
-<span class="sourceLineNo">1555</span>    execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation() {<a name="line.1555"></a>
-<span class="sourceLineNo">1556</span>      @Override<a name="line.1556"></a>
-<span class="sourceLineNo">1557</span>      public void call(MasterObserver observer) throws IOException {<a name="line.1557"></a>
-<span class="sourceLineNo">1558</span>        observer.preLockHeartbeat(this, proc.getTableName(), proc.getDescription());<a name="line.1558"></a>
-<span class="sourceLineNo">1559</span>      }<a name="line.1559"></a>
-<span class="sourceLineNo">1560</span>    });<a name="line.1560"></a>
-<span class="sourceLineNo">1561</span>  }<a name="line.1561"></a>
-<span class="sourceLineNo">1562</span><a name="line.1562"></a>
-<span class="sourceLineNo">1563</span>  public void postLockHeartbeat(LockProcedure proc, boolean keepAlive) throws IOException {<a name="line.1563"></a>
-<span class="sourceLineNo">1564</span>    execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation() {<a name="line.1564"></a>
-<span class="sourceLineNo">1565</span>      @Override<a name="line.1565"></a>
-<span class="sourceLineNo">1566</span>      public void call(MasterObserver observer) throws IOException {<a name="line.1566"></a>
-<span class="sourceLineNo">1567</span>        observer.postLockHeartbeat(this);<a name="line.1567"></a>
-<span class="sourceLineNo">1568</span>      }<a name="line.1568"></a>
-<span class="sourceLineNo">1569</span>    });<a name="line.1569"></a>
-<span class="sourceLineNo">1570</span>  }<a name="line.1570"></a>
-<span class="sourceLineNo">1571</span><a name="line.1571"></a>
-<span class="sourceLineNo">1572</span>  public void preGetClusterStatus() throws IOException {<a name="line.1572"></a>
-<span class="sourceLineNo">1573</span>    execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation() {<a name="line.1573"></a>
-<span class="sourceLineNo">1574</span>      @Override<a name="line.1574"></a>
-<span class="sourceLineNo">1575</span>      public void call(MasterObserver observer) throws IOException {<a name="line.1575"></a>
-<span class="sourceLineNo">1576</span>        observer.preGetClusterStatus(this);<a name="line.1576"></a>
-<span class="sourceLineNo">1577</span>      }<a name="line.1577"></a>
-<span class="sourceLineNo">1578</span>    });<a name="line.1578"></a>
-<span class="sourceLineNo">1579</span>  }<a name="line.1579"></a>
-<span class="sourceLineNo">1580</span><a name="line.1580"></a>
-<span class="sourceLineNo">1581</span>  public void postGetClusterStatus(ClusterStatus status) throws IOException {<a name="line.1581"></a>
-<span class="sourceLineNo">1582</span>    execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation() {<a name="line.1582"></a>
-<span class="sourceLineNo">1583</span>      @Override<a name="line.1583"></a>
-<span class="sourceLineNo">1584</span>      public void call(MasterObserver observer) throws IOException {<a name="line.1584"></a>
-<span class="sourceLineNo">1585</span>        observer.postGetClusterStatus(this, status);<a name="line.1585"></a>
-<span class="sourceLineNo">1586</span>      }<a name="line.1586"></a>
-<span class="sourceLineNo">1587</span>    });<a name="line.1587"></a>
-<span class="sourceLineNo">1588</span>  }<a name="line.1588"></a>
-<span class="sourceLineNo">1589</span><a name="line.1589"></a>
-<span class="sourceLineNo">1590</span>  public void preClearDeadServers() throws IOException {<a name="line.1590"></a>
-<span class="sourceLineNo">1591</span>    execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation() {<a name="line.1591"></a>
-<span class="sourceLineNo">1592</span>      @Override<a name="line.1592"></a>
-<span class="sourceLineNo">1593</span>      public void call(MasterObserver observer) throws IOException {<a name="line.1593"></a>
-<span class="sourceLineNo">1594</span>        observer.preClearDeadServers(this);<a name="line.1594"></a>
-<span class="sourceLineNo">1595</span>      }<a name="line.1595"></a>
-<span class="sourceLineNo">1596</span>    });<a name="line.1596"></a>
-<span class="sourceLineNo">1597</span>  }<a name="line.1597"></a>
-<span class="sourceLineNo">1598</span><a name="line.1598"></a>
-<span class="sourceLineNo">1599</span>  public void postClearDeadServers(List&lt;ServerName&gt; servers,<a name="line.1599"></a>
-<span class="sourceLineNo">1600</span>      List&lt;ServerName&gt; notClearedServers) throws IOException {<a name="line.1600"></a>
-<span class="sourceLineNo">1601</span>    execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation() {<a name="line.1601"></a>
-<span class="sourceLineNo">1602</span>      @Override<a name="line.1602"></a>
-<span class="sourceLineNo">1603</span>      public void call(MasterObserver observer) throws IOException {<a name="line.1603"></a>
-<span class="sourceLineNo">1604</span>        observer.postClearDeadServers(this, servers, notClearedServers);<a name="line.1604"></a>
-<span class="sourceLineNo">1605</span>      }<a name="line.1605"></a>
-<span class="sourceLineNo">1606</span>    });<a name="line.1606"></a>
-<span class="sourceLineNo">1607</span>  }<a name="line.1607"></a>
-<span class="sourceLineNo">1608</span><a name="line.1608"></a>
-<span class="sourceLineNo">1609</span>  public void preDecommissionRegionServers(List&lt;ServerName&gt; servers, boolean offload) throws IOException {<a name="line.1609"></a>
-<span class="sourceLineNo">1610</span>    execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation() {<a name="line.1610"></a>
-<span class="sourceLineNo">1611</span>      @Override<a name="line.1611"></a>
-<span class="sourceLineNo">1612</span>      public void call(MasterObserver observer) throws IOException {<a name="line.1612"></a>
-<span class="sourceLineNo">1613</span>        observer.preDecommissionRegionServers(this, servers, offload);<a name="line.1613"></a>
-<span class="sourceLineNo">1614</span>      }<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><a name="line.1617"></a>
-<span class="sourceLineNo">1618</span>  public void postDecommissionRegionServers(List&lt;ServerName&gt; servers, boolean offload) throws IOException {<a name="line.1618"></a>
-<span class="sourceLineNo">1619</span>    execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation() {<a name="line.1619"></a>
-<span class="sourceLineNo">1620</span>      @Override<a name="line.1620"></a>
-<span class="sourceLineNo">1621</span>      public void call(MasterObserver observer) throws IOException {<a name="line.1621"></a>
-<span class="sourceLineNo">1622</span>        observer.postDecommissionRegionServers(this, servers, offload);<a name="line.1622"></a>
-<span class="sourceLineNo">1623</span>      }<a name="line.1623"></a>
-<span class="sourceLineNo">1624</span>    });<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>  public void preListDecommissionedRegionServers() throws IOException {<a name="line.1627"></a>
-<span class="sourceLineNo">1628</span>    execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation() {<a name="line.1628"></a>
-<span class="sourceLineNo">1629</span>      @Override<a name="line.1629"></a>
-<span class="sourceLineNo">1630</span>      public void call(MasterObserver observer) throws IOException {<a name="line.1630"></a>
-<span class="sourceLineNo">1631</span>        observer.preListDecommissionedRegionServers(this);<a name="line.1631"></a>
-<span class="sourceLineNo">1632</span>      }<a name="line.1632"></a>
-<span class="sourceLineNo">1633</span>    });<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>  public void postListDecommissionedRegionServers() throws IOException {<a name="line.1636"></a>
-<span class="sourceLineNo">1637</span>    execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation() {<a name="line.1637"></a>
-<span class="sourceLineNo">1638</span>      @Override<a name="line.1638"></a>
-<span class="sourceLineNo">1639</span>      public void call(MasterObserver observer) throws IOException {<a name="line.1639"></a>
-<span class="sourceLineNo">1640</span>        observer.postListDecommissionedRegionServers(this);<a name="line.1640"></a>
-<span class="sourceLineNo">1641</span>      }<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><a name="line.1644"></a>
-<span class="sourceLineNo">1645</span>  public void preRecommissionRegionServer(ServerName server, List&lt;byte[]&gt; encodedRegionNames)<a name="line.1645"></a>
-<span class="sourceLineNo">1646</span>      throws IOException {<a name="line.1646"></a>
-<span class="sourceLineNo">1647</span>    execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation() {<a name="line.1647"></a>
-<span class="sourceLineNo">1648</span>      @Override<a name="line.1648"></a>
-<span class="sourceLineNo">1649</span>      public void call(MasterObserver observer) throws IOException {<a name="line.1649"></a>
-<span class="sourceLineNo">1650</span>        observer.preRecommissionRegionServer(this, server, encodedRegionNames);<a name="line.1650"></a>
-<span class="sourceLineNo">1651</span>      }<a name="line.1651"></a>
-<span class="sourceLineNo">1652</span>    });<a name="line.1652"></a>
-<span class="sourceLineNo">1653</span>  }<a name="line.1653"></a>
-<span class="sourceLineNo">1654</span><a name="line.1654"></a>
-<span class="sourceLineNo">1655</span>  public void postRecommissionRegionServer(ServerName server, List&lt;byte[]&gt; encodedRegionNames)<a name="line.1655"></a>
-<span class="sourceLineNo">1656</span>      throws IOException {<a name="line.1656"></a>
-<span class="sourceLineNo">1657</span>    execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation() {<a name="line.1657"></a>
-<span class="sourceLineNo">1658</span>      @Override<a name="line.1658"></a>
-<span class="sourceLineNo">1659</span>      public void call(MasterObserver observer) throws IOException {<a name="line.1659"></a>
-<span class="sourceLineNo">1660</span>        observer.postRecommissionRegionServer(this, server, encodedRegionNames);<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>  }<a name="line.1663"></a>
-<span class="sourceLineNo">1664</span>}<a name="line.1664"></a>
+<span class="sourceLineNo">1409</span>        if(((MasterEnvironment)getEnvironment()).supportGroupCPs) {<a name="line.1409"></a>
+<span class="sourceLineNo">1410</span>          observer.preRemoveServers(this, servers);<a name="line.1410"></a>
+<span class="sourceLineNo">1411</span>        }<a name="line.1411"></a>
+<span class="sourceLineNo">1412</span>      }<a name="line.1412"></a>
+<span class="sourceLineNo">1413</span>    });<a name="line.1413"></a>
+<span class="sourceLineNo">1414</span>  }<a name="line.1414"></a>
+<span class="sourceLineNo">1415</span><a name="line.1415"></a>
+<span class="sourceLineNo">1416</span>  public void postRemoveServers(final Set&lt;Address&gt; servers)<a name="line.1416"></a>
+<span class="sourceLineNo">1417</span>      throws IOException {<a name="line.1417"></a>
+<span class="sourceLineNo">1418</span>    execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation() {<a name="line.1418"></a>
+<span class="sourceLineNo">1419</span>      @Override<a name="line.1419"></a>
+<span class="sourceLineNo">1420</span>      public void call(MasterObserver observer) throws IOException {<a name="line.1420"></a>
+<span class="sourceLineNo">1421</span>        if(((MasterEnvironment)getEnvironment()).supportGroupCPs) {<a name="line.1421"></a>
+<span class="sourceLineNo">1422</span>          observer.postRemoveServers(this, servers);<a name="line.1422"></a>
+<span class="sourceLineNo">1423</span>        }<a name="line.1423"></a>
+<span class="sourceLineNo">1424</span>      }<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><a name="line.1427"></a>
+<span class="sourceLineNo">1428</span>  public void preAddReplicationPeer(final String peerId, final ReplicationPeerConfig peerConfig)<a name="line.1428"></a>
+<span class="sourceLineNo">1429</span>      throws IOException {<a name="line.1429"></a>
+<span class="sourceLineNo">1430</span>    execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation() {<a name="line.1430"></a>
+<span class="sourceLineNo">1431</span>      @Override<a name="line.1431"></a>
+<span class="sourceLineNo">1432</span>      public void call(MasterObserver observer) throws IOException {<a name="line.1432"></a>
+<span class="sourceLineNo">1433</span>        observer.preAddReplicationPeer(this, peerId, peerConfig);<a name="line.1433"></a>
+<span class="sourceLineNo">1434</span>      }<a name="line.1434"></a>
+<span class="sourceLineNo">1435</span>    });<a name="line.1435"></a>
+<span class="sourceLineNo">1436</span>  }<a name="line.1436"></a>
+<span class="sourceLineNo">1437</span><a name="line.1437"></a>
+<span class="sourceLineNo">1438</span>  public void postAddReplicationPeer(final String peerId, final ReplicationPeerConfig peerConfig)<a name="line.1438"></a>
+<span class="sourceLineNo">1439</span>      throws IOException {<a name="line.1439"></a>
+<span class="sourceLineNo">1440</span>    execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation() {<a name="line.1440"></a>
+<span class="sourceLineNo">1441</span>      @Override<a name="line.1441"></a>
+<span class="sourceLineNo">1442</span>      public void call(MasterObserver observer) throws IOException {<a name="line.1442"></a>
+<span class="sourceLineNo">1443</span>        observer.postAddReplicationPeer(this, peerId, peerConfig);<a name="line.1443"></a>
+<span class="sourceLineNo">1444</span>      }<a name="line.1444"></a>
+<span class="sourceLineNo">1445</span>    });<a name="line.1445"></a>
+<span class="sourceLineNo">1446</span>  }<a name="line.1446"></a>
+<span class="sourceLineNo">1447</span><a name="line.1447"></a>
+<span class="sourceLineNo">1448</span>  public void preRemoveReplicationPeer(final String peerId) throws IOException {<a name="line.1448"></a>
+<span class="sourceLineNo">1449</span>    execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation() {<a name="line.1449"></a>
+<span class="sourceLineNo">1450</span>      @Override<a name="line.1450"></a>
+<span class="sourceLineNo">1451</span>      public void call(MasterObserver observer) throws IOException {<a name="line.1451"></a>
+<span class="sourceLineNo">1452</span>        observer.preRemoveReplicationPeer(this, peerId);<a name="line.1452"></a>
+<span class="sourceLineNo">1453</span>      }<a name="line.1453"></a>
+<span class="sourceLineNo">1454</span>    });<a name="line.1454"></a>
+<span class="sourceLineNo">1455</span>  }<a name="line.1455"></a>
+<span class="sourceLineNo">1456</span><a name="line.1456"></a>
+<span class="sourceLineNo">1457</span>  public void postRemoveReplicationPeer(final String peerId) throws IOException {<a name="line.1457"></a>
+<span class="sourceLineNo">1458</span>    execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation() {<a name="line.1458"></a>
+<span class="sourceLineNo">1459</span>      @Override<a name="line.1459"></a>
+<span class="sourceLineNo">1460</span>      public void call(MasterObserver observer) throws IOException {<a name="line.1460"></a>
+<span class="sourceLineNo">1461</span>        observer.postRemoveReplicationPeer(this, peerId);<a name="line.1461"></a>
+<span class="sourceLineNo">1462</span>      }<a name="line.1462"></a>
+<span class="sourceLineNo">1463</span>    });<a name="line.1463"></a>
+<span class="sourceLineNo">1464</span>  }<a name="line.1464"></a>
+<span class="sourceLineNo">1465</span><a name="line.1465"></a>
+<span class="sourceLineNo">1466</span>  public void preEnableReplicationPeer(final String peerId) throws IOException {<a name="line.1466"></a>
+<span class="sourceLineNo">1467</span>    execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation() {<a name="line.1467"></a>
+<span class="sourceLineNo">1468</span>      @Override<a name="line.1468"></a>
+<span class="sourceLineNo">1469</span>      public void call(MasterObserver observer) throws IOException {<a name="line.1469"></a>
+<span class="sourceLineNo">1470</span>        observer.preEnableReplicationPeer(this, peerId);<a name="line.1470"></a>
+<span class="sourceLineNo">1471</span>      }<a name="line.1471"></a>
+<span class="sourceLineNo">1472</span>    });<a name="line.1472"></a>
+<span class="sourceLineNo">1473</span>  }<a name="line.1473"></a>
+<span class="sourceLineNo">1474</span><a name="line.1474"></a>
+<span class="sourceLineNo">1475</span>  public void postEnableReplicationPeer(final String peerId) throws IOException {<a name="line.1475"></a>
+<span class="sourceLineNo">1476</span>    execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation() {<a name="line.1476"></a>
+<span class="sourceLineNo">1477</span>      @Override<a name="line.1477"></a>
+<span class="sourceLineNo">1478</span>      public void call(MasterObserver observer) throws IOException {<a name="line.1478"></a>
+<span class="sourceLineNo">1479</span>        observer.postEnableReplicationPeer(this, peerId);<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>  }<a name="line.1482"></a>
+<span class="sourceLineNo">1483</span><a name="line.1483"></a>
+<span class="sourceLineNo">1484</span>  public void preDisableReplicationPeer(final String peerId) throws IOException {<a name="line.1484"></a>
+<span class="sourceLineNo">1485</span>    execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation() {<a name="line.1485"></a>
+<span class="sourceLineNo">1486</span>      @Override<a name="line.1486"></a>
+<span class="sourceLineNo">1487</span>      public void call(MasterObserver observer) throws IOException {<a name="line.1487"></a>
+<span class="sourceLineNo">1488</span>        observer.preDisableReplicationPeer(this, peerId);<a name="line.1488"></a>
+<span class="sourceLineNo">1489</span>      }<a name="line.1489"></a>
+<span class="sourceLineNo">1490</span>    });<a name="line.1490"></a>
+<span class="sourceLineNo">1491</span>  }<a name="line.1491"></a>
+<span class="sourceLineNo">1492</span><a name="line.1492"></a>
+<span class="sourceLineNo">1493</span>  public void postDisableReplicationPeer(final String peerId) throws IOException {<a name="line.1493"></a>
+<span class="sourceLineNo">1494</span>    execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation() {<a name="line.1494"></a>
+<span class="sourceLineNo">1495</span>      @Override<a name="line.1495"></a>
+<span class="sourceLineNo">1496</span>      public void call(MasterObserver observer) throws IOException {<a name="line.1496"></a>
+<span class="sourceLineNo">1497</span>        observer.postDisableReplicationPeer(this, peerId);<a name="line.1497"></a>
+<span class="sourceLineNo">1498</span>      }<a name="line.1498"></a>
+<span class="sourceLineNo">1499</span>    });<a name="line.1499"></a>
+<span class="sourceLineNo">1500</span>  }<a name="line.1500"></a>
+<span class="sourceLineNo">1501</span><a name="line.1501"></a>
+<span class="sourceLineNo">1502</span>  public void preGetReplicationPeerConfig(final String peerId) throws IOException {<a name="line.1502"></a>
+<span class="sourceLineNo">1503</span>    execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation() {<a name="line.1503"></a>
+<span class="sourceLineNo">1504</span>      @Override<a name="line.1504"></a>
+<span class="sourceLineNo">1505</span>      public void call(MasterObserver observer) throws IOException {<a name="line.1505"></a>
+<span class="sourceLineNo">1506</span>        observer.preGetReplicationPeerConfig(this, peerId);<a name="line.1506"></a>
+<span class="sourceLineNo">1507</span>      }<a name="line.1507"></a>
+<span class="sourceLineNo">1508</span>    });<a name="line.1508"></a>
+<span class="sourceLineNo">1509</span>  }<a name="line.1509"></a>
+<span class="sourceLineNo">1510</span><a name="line.1510"></a>
+<span class="sourceLineNo">1511</span>  public void postGetReplicationPeerConfig(final String peerId) throws IOException {<a name="line.1511"></a>
+<span class="sourceLineNo">1512</span>    execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation() {<a name="line.1512"></a>
+<span class="sourceLineNo">1513</span>      @Override<a name="line.1513"></a>
+<span class="sourceLineNo">1514</span>      public void call(MasterObserver observer) throws IOException {<a name="line.1514"></a>
+<span class="sourceLineNo">1515</span>        observer.postGetReplicationPeerConfig(this, peerId);<a name="line.1515"></a>
+<span class="sourceLineNo">1516</span>      }<a name="line.1516"></a>
+<span class="sourceLineNo">1517</span>    });<a name="line.1517"></a>
+<span class="sourceLineNo">1518</span>  }<a name="line.1518"></a>
+<span class="sourceLineNo">1519</span><a name="line.1519"></a>
+<span class="sourceLineNo">1520</span>  public void preUpdateReplicationPeerConfig(final String peerId,<a name="line.1520"></a>
+<span class="sourceLineNo">1521</span>      final ReplicationPeerConfig peerConfig) throws IOException {<a name="line.1521"></a>
+<span class="sourceLineNo">1522</span>    execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation() {<a name="line.1522"></a>
+<span class="sourceLineNo">1523</span>      @Override<a name="line.1523"></a>
+<span class="sourceLineNo">1524</span>      public void call(MasterObserver observer) throws IOException {<a name="line.1524"></a>
+<span class="sourceLineNo">1525</span>        observer.preUpdateReplicationPeerConfig(this, peerId, peerConfig);<a name="line.1525"></a>
+<span class="sourceLineNo">1526</span>      }<a name="line.1526"></a>
+<span class="sourceLineNo">1527</span>    });<a name="line.1527"></a>
+<span class="sourceLineNo">1528</span>  }<a name="line.1528"></a>
+<span class="sourceLineNo">1529</span><a name="line.1529"></a>
+<span class="sourceLineNo">1530</span>  public void postUpdateReplicationPeerConfig(final String peerId,<a name="line.1530"></a>
+<span class="sourceLineNo">1531</span>      final ReplicationPeerConfig peerConfig) throws IOException {<a name="line.1531"></a>
+<span class="sourceLineNo">1532</span>    execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation() {<a name="line.1532"></a>
+<span class="sourceLineNo">1533</span>      @Override<a name="line.1533"></a>
+<span class="sourceLineNo">1534</span>      public void call(MasterObserver observer) throws IOException {<a name="line.1534"></a>
+<span class="sourceLineNo">1535</span>        observer.postUpdateReplicationPeerConfig(this, peerId, peerConfig);<a name="line.1535"></a>
+<span class="sourceLineNo">1536</span>      }<a name="line.1536"></a>
+<span class="sourceLineNo">1537</span>    });<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>  public void preListReplicationPeers(final String regex) throws IOException {<a name="line.1540"></a>
+<span class="sourceLineNo">1541</span>    execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation() {<a name="line.1541"></a>
+<span class="sourceLineNo">1542</span>      @Override<a name="line.1542"></a>
+<span class="sourceLineNo">1543</span>      public void call(MasterObserver observer) throws IOException {<a name="line.1543"></a>
+<span class="sourceLineNo">1544</span>        observer.preListReplicationPeers(this, regex);<a name="line.1544"></a>
+<span class="sourceLineNo">1545</span>      }<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><a name="line.1548"></a>
+<span class="sourceLineNo">1549</span>  public void postListReplicationPeers(final String regex) throws IOException {<a name="line.1549"></a>
+<span class="sourceLineNo">1550</span>    execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation() {<a name="line.1550"></a>
+<span class="sourceLineNo">1551</span>      @Override<a name="line.1551"></a>
+<span class="sourceLineNo">1552</span>      public void call(MasterObserver observer) throws IOException {<a name="line.1552"></a>
+<span class="sourceLineNo">1553</span>        observer.postListReplicationPeers(this, regex);<a name="line.1553"></a>
+<span class="sourceLineNo">1554</span>      }<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><a name="line.1557"></a>
+<span class="sourceLineNo">1558</span>  public void preRequestLock(String namespace, TableName tableName, RegionInfo[] regionInfos,<a name="line.1558"></a>
+<span class="sourceLineNo">1559</span>      LockType type, String description) throws IOException {<a name="line.1559"></a>
+<span class="sourceLineNo">1560</span>    execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation() {<a name="line.1560"></a>
+<span class="sourceLineNo">1561</span>      @Override<a name="line.1561"></a>
+<span class="sourceLineNo">1562</span>      public void call(MasterObserver observer) throws IOException {<a name="line.1562"></a>
+<span class="sourceLineNo">1563</span>        observer.preRequestLock(this, namespace, tableName, regionInfos, description);<a name="line.1563"></a>
+<span class="sourceLineNo">1564</span>      }<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><a name="line.1567"></a>
+<span class="sourceLineNo">1568</span>  public void postRequestLock(String namespace, TableName tableName, RegionInfo[] regionInfos,<a name="line.1568"></a>
+<span class="sourceLineNo">1569</span>      LockType type, String description) throws IOException {<a name="line.1569"></a>
+<span class="sourceLineNo">1570</span>    execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation() {<a name="line.1570"></a>
+<span class="sourceLineNo">1571</span>      @Override<a name="line.1571"></a>
+<span class="sourceLineNo">1572</span>      public void call(MasterObserver observer) throws IOException {<a name="line.1572"></a>
+<span class="sourceLineNo">1573</span>        observer.postRequestLock(this, namespace, tableName, regionInfos, description);<a name="line.1573"></a>
+<span class="sourceLineNo">1574</span>      }<a name="line.1574"></a>
+<span class="sourceLineNo">1575</span>    });<a name="line.1575"></a>
+<span class="sourceLineNo">1576</span>  }<a name="line.1576"></a>
+<span class="sourceLineNo">1577</span><a name="line.1577"></a>
+<span class="sourceLineNo">1578</span>  public void preLockHeartbeat(LockProcedure proc, boolean keepAlive) throws IOException {<a name="line.1578"></a>
+<span class="sourceLineNo">1579</span>    execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation() {<a name="line.1579"></a>
+<span class="sourceLineNo">1580</span>      @Override<a name="line.1580"></a>
+<span class="sourceLineNo">1581</span>      public void call(MasterObserver observer) throws IOException {<a name="line.1581"></a>
+<span class="sourceLineNo">1582</span>        observer.preLockHeartbeat(this, proc.getTableName(), proc.getDescription());<a name="line.1582"></a>
+<span class="sourceLineNo">1583</span>      }<a name="line.1583"></a>
+<span class="sourceLineNo">1584</span>    });<a name="line.1584"></a>
+<span class="sourceLineNo">1585</span>  }<a name="line.1585"></a>
+<span class="sourceLineNo">1586</span><a name="line.1586"></a>
+<span class="sourceLineNo">1587</span>  public void postLockHeartbeat(LockProcedure proc, boolean keepAlive) throws IOException {<a name="line.1587"></a>
+<span class="sourceLineNo">1588</span>    execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation() {<a name="line.1588"></a>
+<span class="sourceLineNo">1589</span>      @Override<a name="line.1589"></a>
+<span class="sourceLineNo">1590</span>      public void call(MasterObserver observer) throws IOException {<a name="line.1590"></a>
+<span class="sourceLineNo">1591</span>        observer.postLockHeartbeat(this);<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>  }<a name="line.1594"></a>
+<span class="sourceLineNo">1595</span><a name="line.1595"></a>
+<span class="sourceLineNo">1596</span>  public void preGetClusterStatus() throws IOException {<a name="line.1596"></a>
+<span class="sourceLineNo">1597</span>    execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation() {<a name="line.1597"></a>
+<span class="sourceLineNo">1598</span>      @Override<a name="line.1598"></a>
+<span class="sourceLineNo">1599</span>      public void call(MasterObserver observer) throws IOException {<a name="line.1599"></a>
+<span class="sourceLineNo">1600</span>        observer.preGetClusterStatus(this);<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>  }<a name="line.1603"></a>
+<span class="sourceLineNo">1604</span><a name="line.1604"></a>
+<span class="sourceLineNo">1605</span>  public void postGetClusterStatus(ClusterStatus status) throws IOException {<a name="line.1605"></a>
+<span class="sourceLineNo">1606</span>    execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation() {<a name="line.1606"></a>
+<span class="sourceLineNo">1607</span>      @Override<a name="line.1607"></a>
+<span class="sourceLineNo">1608</span>      public void call(MasterObserver observer) throws IOException {<a name="line.1608"></a>
+<span class="sourceLineNo">1609</span>        observer.postGetClusterStatus(this, status);<a name="line.1609"></a>
+<span class="sourceLineNo">1610</span>      }<a name="line.1610"></a>
+<span class="sourceLineNo">1611</span>    });<a name="line.1611"></a>
+<span class="sourceLineNo">1612</span>  }<a name="line.1612"></a>
+<span class="sourceLineNo">1613</span><a name="line.1613"></a>
+<span class="sourceLineNo">1614</span>  public void preClearDeadServers() throws IOException {<a name="line.1614"></a>
+<span class="sourceLineNo">1615</span>    execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation() {<a name="line.1615"></a>
+<span class="sourceLineNo">1616</span>      @Override<a name="line.1616"></a>
+<span class="sourceLineNo">1617</span>      public void call(MasterObserver observer) throws IOException {<a name="line.1617"></a>
+<span class="sourceLineNo">1618</span>        observer.preClearDeadServers(this);<a name="line.1618"></a>
+<span class="sourceLineNo">1619</span>      }<a name="line.1619"></a>
+<span class="sourceLineNo">1620</span>    });<a name="line.1620"></a>
+<span class="sourceLineNo">1621</span>  }<a name="line.1621"></a>
+<span class="sourceLineNo">1622</span><a name="line.1622"></a>
+<span class="sourceLineNo">1623</span>  public void postClearDeadServers(List&lt;ServerName&gt; servers,<a name="line.1623"></a>
+<span class="sourceLineNo">1624</span>      List&lt;ServerName&gt; notClearedServers) throws IOException {<a name="line.1624"></a>
+<span class="sourceLineNo">1625</span>    execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation() {<a name="line.1625"></a>
+<span class="sourceLineNo">1626</span>      @Override<a name="line.1626"></a>
+<span class="sourceLineNo">1627</span>      public void call(MasterObserver observer) throws IOException {<a name="line.1627"></a>
+<span class="sourceLineNo">1628</span>        observer.postClearDeadServers(this, servers, notClearedServers);<a name="line.1628"></a>
+<span class="sourceLineNo">1629</span>      }<a name="line.1629"></a>
+<span class="sourceLineNo">1630</span>    });<a name="line.1630"></a>
+<span class="sourceLineNo">1631</span>  }<a name="line.1631"></a>
+<span class="sourceLineNo">1632</span><a name="line.1632"></a>
+<span class="sourceLineNo">1633</span>  public void preDecommissionRegionServers(List&lt;ServerName&gt; servers, boolean offload) throws IOException {<a name="line.1633"></a>
+<span class="sourceLineNo">1634</span>    execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation() {<a name="line.1634"></a>
+<span class="sourceLineNo">1635</span>      @Override<a name="line.1635"></a>
+<span class="sourceLineNo">1636</span>      public void call(MasterObserver observer) throws IOException {<a name="line.1636"></a>
+<span class="sourceLineNo">1637</span>        observer.preDecommissionRegionServers(this, servers, offload);<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>  }<a name="line.1640"></a>
+<span class="sourceLineNo">1641</span><a name="line.1641"></a>
+<span class="sourceLineNo">1642</span>  public void postDecommissionRegionServers(List&lt;ServerName&gt; servers, boolean offload) throws IOException {<a name="line.1642"></a>
+<span class="sourceLineNo">1643</span>    execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation() {<a name="line.1643"></a>
+<span class="sourceLineNo">1644</span>      @Override<a name="line.1644"></a>
+<span class="sourceLineNo">1645</span>      public void call(MasterObserver observer) throws IOException {<a name="line.1645"></a>
+<span class="sourceLineNo">1646</span>        observer.postDecommissionRegionServers(this, servers, offload);<a name="line.1646"></a>
+<span class="sourceLineNo">1647</span>      }<a name="line.1647"></a>
+<span class="sourceLineNo">1648</span>    });<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>  public void preListDecommissionedRegionServers() throws IOException {<a name="line.1651"></a>
+<span class="sourceLineNo">1652</span>    execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation() {<a name="line.1652"></a>
+<span class="sourceLineNo">1653</span>      @Override<a name="line.1653"></a>
+<span class="sourceLineNo">1654</span>      public void call(MasterObserver observer) throws IOException {<a name="line.1654"></a>
+<span class="sourceLineNo">1655</span>        observer.preListDecommissionedRegionServers(this);<a name="line.1655"></a>
+<span class="sourceLineNo">1656</span>      }<a name="line.1656"></a>
+<span class="sourceLineNo">1657</span>    });<a name="line.1657"></a>
+<span class="sourceLineNo">1658</span>  }<a name="line.1658"></a>
+<span class="sourceLineNo">1659</span><a name="line.1659"></a>
+<span class="sourceLineNo">1660</span>  public void postListDecommissionedRegionServers() throws IOException {<a name="line.1660"></a>
+<span class="sourceLineNo">1661</span>    execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation() {<a name="line.1661"></a>
+<span class="sourceLineNo">1662</span>      @Override<a name="line.1662"></a>
+<span class="sourceLineNo">1663</span>      public void call(MasterObserver observer) throws IOException {<a name="line.1663"></a>
+<span class="sourceLineNo">1664</span>        observer.postListDecommissionedRegionServers(this);<a name="line.1664"></a>
+<span class="sourceLineNo">1665</span>      }<a name="line.1665"></a>
+<span class="sourceLineNo">1666</span>    });<a name="line.1666"></a>
+<span class="sourceLineNo">1667</span>  }<a name="line.1667"></a>
+<span class="sourceLineNo">1668</span><a name="line.1668"></a>
+<span class="sourceLineNo">1669</span>  public void preRecommissionRegionServer(ServerName server, List&lt;byte[]&gt; encodedRegionNames)<a name="line.1669"></a>
+<span class="sourceLineNo">1670</span>      throws IOException {<a name="line.1670"></a>
+<span class="sourceLineNo">1671</span>    execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation() {<a name="line.1671"></a>
+<span class="sourceLineNo">1672</span>      @Override<a name="line.1672"></a>
+<span class="sourceLineNo">1673</span>      public void call(MasterObserver observer) throws IOException {<a name="line.1673"></a>
+<span class="sourceLineNo">1674</span>        observer.preRecommissionRegionServer(this, server, encodedRegionNames);<a name="line.1674"></a>
+<span class="sourceLineNo">1675</span>      }<a name="line.1675"></a>
+<span class="sourceLineNo">1676</span>    });<a name="line.1676"></a>
+<span class="sourceLineNo">1677</span>  }<a name="line.1677"></a>
+<span class="sourceLineNo">1678</span><a name="line.1678"></a>
+<span class="sourceLineNo">1679</span>  public void postRecommissionRegionServer(ServerName server, List&lt;byte[]&gt; encodedRegionNames)<a name="line.1679"></a>
+<span class="sourceLineNo">1680</span>      throws IOException {<a name="line.1680"></a>
+<span class="sourceLineNo">1681</span>    execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation() {<a name="line.1681"></a>
+<span class="sourceLineNo">1682</span>      @Override<a name="line.1682"></a>
+<span class="sourceLineNo">1683</span>      public void call(MasterObserver observer) throws IOException {<a name="line.1683"></a>
+<span class="sourceLineNo">1684</span>        observer.postRecommissionRegionServer(this, server, encodedRegionNames);<a name="line.1684"></a>
+<span class="sourceLineNo">1685</span>      }<a name="line.1685"></a>
+<span class="sourceLineNo">1686</span>    });<a name="line.1686"></a>
+<span class="sourceLineNo">1687</span>  }<a name="line.1687"></a>
+<span class="sourceLineNo">1688</span>}<a name="line.1688"></a>
 
 
 


Mime
View raw message