hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From git-site-r...@apache.org
Subject [27/49] hbase-site git commit: Published site at .
Date Sun, 24 Sep 2017 15:13:53 GMT
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/e6bd0774/devapidocs/src-html/org/apache/hadoop/hbase/coprocessor/MasterObserver.html
----------------------------------------------------------------------
diff --git a/devapidocs/src-html/org/apache/hadoop/hbase/coprocessor/MasterObserver.html b/devapidocs/src-html/org/apache/hadoop/hbase/coprocessor/MasterObserver.html
index 06c94bc..2725449 100644
--- a/devapidocs/src-html/org/apache/hadoop/hbase/coprocessor/MasterObserver.html
+++ b/devapidocs/src-html/org/apache/hadoop/hbase/coprocessor/MasterObserver.html
@@ -50,8 +50,8 @@
 <span class="sourceLineNo">042</span>import org.apache.hadoop.hbase.procedure2.LockedResource;<a name="line.42"></a>
 <span class="sourceLineNo">043</span>import org.apache.hadoop.hbase.procedure2.Procedure;<a name="line.43"></a>
 <span class="sourceLineNo">044</span>import org.apache.hadoop.hbase.procedure2.ProcedureExecutor;<a name="line.44"></a>
-<span class="sourceLineNo">045</span>import org.apache.hadoop.hbase.replication.ReplicationPeerConfig;<a name="line.45"></a>
-<span class="sourceLineNo">046</span>import org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas;<a name="line.46"></a>
+<span class="sourceLineNo">045</span>import org.apache.hadoop.hbase.quotas.GlobalQuotaSettings;<a name="line.45"></a>
+<span class="sourceLineNo">046</span>import org.apache.hadoop.hbase.replication.ReplicationPeerConfig;<a name="line.46"></a>
 <span class="sourceLineNo">047</span>import org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotDescription;<a name="line.47"></a>
 <span class="sourceLineNo">048</span>import org.apache.yetus.audience.InterfaceAudience;<a name="line.48"></a>
 <span class="sourceLineNo">049</span>import org.apache.yetus.audience.InterfaceStability;<a name="line.49"></a>
@@ -1083,389 +1083,393 @@
 <span class="sourceLineNo">1075</span>   * Called before the quota for the user is stored.<a name="line.1075"></a>
 <span class="sourceLineNo">1076</span>   * @param ctx the environment to interact with the framework and master<a name="line.1076"></a>
 <span class="sourceLineNo">1077</span>   * @param userName the name of user<a name="line.1077"></a>
-<span class="sourceLineNo">1078</span>   * @param quotas the quota settings<a name="line.1078"></a>
+<span class="sourceLineNo">1078</span>   * @param quotas the current quota for the user<a name="line.1078"></a>
 <span class="sourceLineNo">1079</span>   */<a name="line.1079"></a>
 <span class="sourceLineNo">1080</span>  default void preSetUserQuota(final ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx,<a name="line.1080"></a>
-<span class="sourceLineNo">1081</span>      final String userName, final Quotas quotas) throws IOException {}<a name="line.1081"></a>
+<span class="sourceLineNo">1081</span>      final String userName, final GlobalQuotaSettings quotas) throws IOException {}<a name="line.1081"></a>
 <span class="sourceLineNo">1082</span><a name="line.1082"></a>
 <span class="sourceLineNo">1083</span>  /**<a name="line.1083"></a>
 <span class="sourceLineNo">1084</span>   * Called after the quota for the user is stored.<a name="line.1084"></a>
 <span class="sourceLineNo">1085</span>   * @param ctx the environment to interact with the framework and master<a name="line.1085"></a>
 <span class="sourceLineNo">1086</span>   * @param userName the name of user<a name="line.1086"></a>
-<span class="sourceLineNo">1087</span>   * @param quotas the quota settings<a name="line.1087"></a>
+<span class="sourceLineNo">1087</span>   * @param quotas the resulting quota for the user<a name="line.1087"></a>
 <span class="sourceLineNo">1088</span>   */<a name="line.1088"></a>
 <span class="sourceLineNo">1089</span>  default void postSetUserQuota(final ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx,<a name="line.1089"></a>
-<span class="sourceLineNo">1090</span>      final String userName, final Quotas quotas) throws IOException {}<a name="line.1090"></a>
+<span class="sourceLineNo">1090</span>      final String userName, final GlobalQuotaSettings quotas) throws IOException {}<a name="line.1090"></a>
 <span class="sourceLineNo">1091</span><a name="line.1091"></a>
 <span class="sourceLineNo">1092</span>  /**<a name="line.1092"></a>
 <span class="sourceLineNo">1093</span>   * Called before the quota for the user on the specified table is stored.<a name="line.1093"></a>
 <span class="sourceLineNo">1094</span>   * @param ctx the environment to interact with the framework and master<a name="line.1094"></a>
 <span class="sourceLineNo">1095</span>   * @param userName the name of user<a name="line.1095"></a>
 <span class="sourceLineNo">1096</span>   * @param tableName the name of the table<a name="line.1096"></a>
-<span class="sourceLineNo">1097</span>   * @param quotas the quota settings<a name="line.1097"></a>
+<span class="sourceLineNo">1097</span>   * @param quotas the current quota for the user on the table<a name="line.1097"></a>
 <span class="sourceLineNo">1098</span>   */<a name="line.1098"></a>
-<span class="sourceLineNo">1099</span>  default void preSetUserQuota(final ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx,<a name="line.1099"></a>
-<span class="sourceLineNo">1100</span>      final String userName, final TableName tableName, final Quotas quotas) throws IOException {}<a name="line.1100"></a>
-<span class="sourceLineNo">1101</span><a name="line.1101"></a>
-<span class="sourceLineNo">1102</span>  /**<a name="line.1102"></a>
-<span class="sourceLineNo">1103</span>   * Called after the quota for the user on the specified table is stored.<a name="line.1103"></a>
-<span class="sourceLineNo">1104</span>   * @param ctx the environment to interact with the framework and master<a name="line.1104"></a>
-<span class="sourceLineNo">1105</span>   * @param userName the name of user<a name="line.1105"></a>
-<span class="sourceLineNo">1106</span>   * @param tableName the name of the table<a name="line.1106"></a>
-<span class="sourceLineNo">1107</span>   * @param quotas the quota settings<a name="line.1107"></a>
-<span class="sourceLineNo">1108</span>   */<a name="line.1108"></a>
-<span class="sourceLineNo">1109</span>  default void postSetUserQuota(final ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx,<a name="line.1109"></a>
-<span class="sourceLineNo">1110</span>      final String userName, final TableName tableName, final Quotas quotas) throws IOException {}<a name="line.1110"></a>
-<span class="sourceLineNo">1111</span><a name="line.1111"></a>
-<span class="sourceLineNo">1112</span>  /**<a name="line.1112"></a>
-<span class="sourceLineNo">1113</span>   * Called before the quota for the user on the specified namespace is stored.<a name="line.1113"></a>
-<span class="sourceLineNo">1114</span>   * @param ctx the environment to interact with the framework and master<a name="line.1114"></a>
-<span class="sourceLineNo">1115</span>   * @param userName the name of user<a name="line.1115"></a>
-<span class="sourceLineNo">1116</span>   * @param namespace the name of the namespace<a name="line.1116"></a>
-<span class="sourceLineNo">1117</span>   * @param quotas the quota settings<a name="line.1117"></a>
-<span class="sourceLineNo">1118</span>   */<a name="line.1118"></a>
-<span class="sourceLineNo">1119</span>  default void preSetUserQuota(final ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx,<a name="line.1119"></a>
-<span class="sourceLineNo">1120</span>      final String userName, final String namespace, final Quotas quotas) throws IOException {}<a name="line.1120"></a>
-<span class="sourceLineNo">1121</span><a name="line.1121"></a>
-<span class="sourceLineNo">1122</span>  /**<a name="line.1122"></a>
-<span class="sourceLineNo">1123</span>   * Called after the quota for the user on the specified namespace is stored.<a name="line.1123"></a>
-<span class="sourceLineNo">1124</span>   * @param ctx the environment to interact with the framework and master<a name="line.1124"></a>
-<span class="sourceLineNo">1125</span>   * @param userName the name of user<a name="line.1125"></a>
-<span class="sourceLineNo">1126</span>   * @param namespace the name of the namespace<a name="line.1126"></a>
-<span class="sourceLineNo">1127</span>   * @param quotas the quota settings<a name="line.1127"></a>
-<span class="sourceLineNo">1128</span>   */<a name="line.1128"></a>
-<span class="sourceLineNo">1129</span>  default void postSetUserQuota(final ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx,<a name="line.1129"></a>
-<span class="sourceLineNo">1130</span>      final String userName, final String namespace, final Quotas quotas) throws IOException {}<a name="line.1130"></a>
-<span class="sourceLineNo">1131</span><a name="line.1131"></a>
-<span class="sourceLineNo">1132</span>  /**<a name="line.1132"></a>
-<span class="sourceLineNo">1133</span>   * Called before the quota for the table is stored.<a name="line.1133"></a>
-<span class="sourceLineNo">1134</span>   * @param ctx the environment to interact with the framework and master<a name="line.1134"></a>
-<span class="sourceLineNo">1135</span>   * @param tableName the name of the table<a name="line.1135"></a>
-<span class="sourceLineNo">1136</span>   * @param quotas the quota settings<a name="line.1136"></a>
-<span class="sourceLineNo">1137</span>   */<a name="line.1137"></a>
-<span class="sourceLineNo">1138</span>  default void preSetTableQuota(final ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx,<a name="line.1138"></a>
-<span class="sourceLineNo">1139</span>      final TableName tableName, final Quotas quotas) throws IOException {}<a name="line.1139"></a>
-<span class="sourceLineNo">1140</span><a name="line.1140"></a>
-<span class="sourceLineNo">1141</span>  /**<a name="line.1141"></a>
-<span class="sourceLineNo">1142</span>   * Called after the quota for the table is stored.<a name="line.1142"></a>
-<span class="sourceLineNo">1143</span>   * @param ctx the environment to interact with the framework and master<a name="line.1143"></a>
-<span class="sourceLineNo">1144</span>   * @param tableName the name of the table<a name="line.1144"></a>
-<span class="sourceLineNo">1145</span>   * @param quotas the quota settings<a name="line.1145"></a>
-<span class="sourceLineNo">1146</span>   */<a name="line.1146"></a>
-<span class="sourceLineNo">1147</span>  default void postSetTableQuota(final ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx,<a name="line.1147"></a>
-<span class="sourceLineNo">1148</span>      final TableName tableName, final Quotas quotas) throws IOException {}<a name="line.1148"></a>
-<span class="sourceLineNo">1149</span><a name="line.1149"></a>
-<span class="sourceLineNo">1150</span>  /**<a name="line.1150"></a>
-<span class="sourceLineNo">1151</span>   * Called before the quota for the namespace is stored.<a name="line.1151"></a>
-<span class="sourceLineNo">1152</span>   * @param ctx the environment to interact with the framework and master<a name="line.1152"></a>
-<span class="sourceLineNo">1153</span>   * @param namespace the name of the namespace<a name="line.1153"></a>
-<span class="sourceLineNo">1154</span>   * @param quotas the quota settings<a name="line.1154"></a>
-<span class="sourceLineNo">1155</span>   */<a name="line.1155"></a>
-<span class="sourceLineNo">1156</span>  default void preSetNamespaceQuota(final ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx,<a name="line.1156"></a>
-<span class="sourceLineNo">1157</span>      final String namespace, final Quotas quotas) throws IOException {}<a name="line.1157"></a>
-<span class="sourceLineNo">1158</span><a name="line.1158"></a>
-<span class="sourceLineNo">1159</span>  /**<a name="line.1159"></a>
-<span class="sourceLineNo">1160</span>   * Called after the quota for the namespace is stored.<a name="line.1160"></a>
-<span class="sourceLineNo">1161</span>   * @param ctx the environment to interact with the framework and master<a name="line.1161"></a>
-<span class="sourceLineNo">1162</span>   * @param namespace the name of the namespace<a name="line.1162"></a>
-<span class="sourceLineNo">1163</span>   * @param quotas the quota settings<a name="line.1163"></a>
-<span class="sourceLineNo">1164</span>   */<a name="line.1164"></a>
-<span class="sourceLineNo">1165</span>  default void postSetNamespaceQuota(final ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx,<a name="line.1165"></a>
-<span class="sourceLineNo">1166</span>      final String namespace, final Quotas quotas) throws IOException {}<a name="line.1166"></a>
-<span class="sourceLineNo">1167</span><a name="line.1167"></a>
-<span class="sourceLineNo">1168</span>  /**<a name="line.1168"></a>
-<span class="sourceLineNo">1169</span>   * Called before merge regions request.<a name="line.1169"></a>
-<span class="sourceLineNo">1170</span>   * It can't bypass the default action, e.g., ctx.bypass() won't have effect.<a name="line.1170"></a>
-<span class="sourceLineNo">1171</span>   * @param ctx coprocessor environment<a name="line.1171"></a>
-<span class="sourceLineNo">1172</span>   * @param regionsToMerge regions to be merged<a name="line.1172"></a>
-<span class="sourceLineNo">1173</span>   */<a name="line.1173"></a>
-<span class="sourceLineNo">1174</span>  default void preMergeRegions(<a name="line.1174"></a>
-<span class="sourceLineNo">1175</span>      final ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx,<a name="line.1175"></a>
-<span class="sourceLineNo">1176</span>      final RegionInfo[] regionsToMerge) throws IOException {}<a name="line.1176"></a>
-<span class="sourceLineNo">1177</span><a name="line.1177"></a>
-<span class="sourceLineNo">1178</span>  /**<a name="line.1178"></a>
-<span class="sourceLineNo">1179</span>   * called after merge regions request.<a name="line.1179"></a>
-<span class="sourceLineNo">1180</span>   * @param c coprocessor environment<a name="line.1180"></a>
-<span class="sourceLineNo">1181</span>   * @param regionsToMerge regions to be merged<a name="line.1181"></a>
-<span class="sourceLineNo">1182</span>   */<a name="line.1182"></a>
-<span class="sourceLineNo">1183</span>  default void postMergeRegions(<a name="line.1183"></a>
-<span class="sourceLineNo">1184</span>      final ObserverContext&lt;MasterCoprocessorEnvironment&gt; c,<a name="line.1184"></a>
-<span class="sourceLineNo">1185</span>      final RegionInfo[] regionsToMerge) throws IOException {}<a name="line.1185"></a>
-<span class="sourceLineNo">1186</span><a name="line.1186"></a>
-<span class="sourceLineNo">1187</span>  /**<a name="line.1187"></a>
-<span class="sourceLineNo">1188</span>   * Called before servers are moved to target region server group<a name="line.1188"></a>
-<span class="sourceLineNo">1189</span>   * @param ctx the environment to interact with the framework and master<a name="line.1189"></a>
-<span class="sourceLineNo">1190</span>   * @param servers set of servers to move<a name="line.1190"></a>
-<span class="sourceLineNo">1191</span>   * @param targetGroup destination group<a name="line.1191"></a>
-<span class="sourceLineNo">1192</span>   */<a name="line.1192"></a>
-<span class="sourceLineNo">1193</span>  default void preMoveServersAndTables(final ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx,<a name="line.1193"></a>
-<span class="sourceLineNo">1194</span>                      Set&lt;Address&gt; servers, Set&lt;TableName&gt; tables, String targetGroup) throws IOException {}<a name="line.1194"></a>
-<span class="sourceLineNo">1195</span><a name="line.1195"></a>
-<span class="sourceLineNo">1196</span>  /**<a name="line.1196"></a>
-<span class="sourceLineNo">1197</span>   * Called after servers are moved to target region server group<a name="line.1197"></a>
-<span class="sourceLineNo">1198</span>   * @param ctx the environment to interact with the framework and master<a name="line.1198"></a>
-<span class="sourceLineNo">1199</span>   * @param servers set of servers to move<a name="line.1199"></a>
-<span class="sourceLineNo">1200</span>   * @param targetGroup name of group<a name="line.1200"></a>
-<span class="sourceLineNo">1201</span>   */<a name="line.1201"></a>
-<span class="sourceLineNo">1202</span>  default void postMoveServersAndTables(final ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx,<a name="line.1202"></a>
-<span class="sourceLineNo">1203</span>      Set&lt;Address&gt; servers, Set&lt;TableName&gt; tables, String targetGroup) throws IOException {}<a name="line.1203"></a>
-<span class="sourceLineNo">1204</span><a name="line.1204"></a>
-<span class="sourceLineNo">1205</span>  /**<a name="line.1205"></a>
-<span class="sourceLineNo">1206</span>   * Called before servers are moved to target region server group<a name="line.1206"></a>
-<span class="sourceLineNo">1207</span>   * @param ctx the environment to interact with the framework and master<a name="line.1207"></a>
-<span class="sourceLineNo">1208</span>   * @param servers set of servers to move<a name="line.1208"></a>
-<span class="sourceLineNo">1209</span>   * @param targetGroup destination group<a name="line.1209"></a>
-<span class="sourceLineNo">1210</span>   */<a name="line.1210"></a>
-<span class="sourceLineNo">1211</span>  default void preMoveServers(final ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx,<a name="line.1211"></a>
-<span class="sourceLineNo">1212</span>                      Set&lt;Address&gt; servers, String targetGroup) throws IOException {}<a name="line.1212"></a>
-<span class="sourceLineNo">1213</span><a name="line.1213"></a>
-<span class="sourceLineNo">1214</span>  /**<a name="line.1214"></a>
-<span class="sourceLineNo">1215</span>   * Called after servers are moved to target region server group<a name="line.1215"></a>
-<span class="sourceLineNo">1216</span>   * @param ctx the environment to interact with the framework and master<a name="line.1216"></a>
-<span class="sourceLineNo">1217</span>   * @param servers set of servers to move<a name="line.1217"></a>
-<span class="sourceLineNo">1218</span>   * @param targetGroup name of group<a name="line.1218"></a>
-<span class="sourceLineNo">1219</span>   */<a name="line.1219"></a>
-<span class="sourceLineNo">1220</span>  default void postMoveServers(final ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx,<a name="line.1220"></a>
-<span class="sourceLineNo">1221</span>                       Set&lt;Address&gt; servers, String targetGroup) throws IOException {}<a name="line.1221"></a>
-<span class="sourceLineNo">1222</span><a name="line.1222"></a>
-<span class="sourceLineNo">1223</span>  /**<a name="line.1223"></a>
-<span class="sourceLineNo">1224</span>   * Called before tables are moved to target region server group<a name="line.1224"></a>
-<span class="sourceLineNo">1225</span>   * @param ctx the environment to interact with the framework and master<a name="line.1225"></a>
-<span class="sourceLineNo">1226</span>   * @param tables set of tables to move<a name="line.1226"></a>
-<span class="sourceLineNo">1227</span>   * @param targetGroup name of group<a name="line.1227"></a>
-<span class="sourceLineNo">1228</span>   */<a name="line.1228"></a>
-<span class="sourceLineNo">1229</span>  default void preMoveTables(final ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx,<a name="line.1229"></a>
-<span class="sourceLineNo">1230</span>                     Set&lt;TableName&gt; tables, String targetGroup) throws IOException {}<a name="line.1230"></a>
-<span class="sourceLineNo">1231</span><a name="line.1231"></a>
-<span class="sourceLineNo">1232</span>  /**<a name="line.1232"></a>
-<span class="sourceLineNo">1233</span>   * Called after servers are moved to target region server group<a name="line.1233"></a>
-<span class="sourceLineNo">1234</span>   * @param ctx the environment to interact with the framework and master<a name="line.1234"></a>
-<span class="sourceLineNo">1235</span>   * @param tables set of tables to move<a name="line.1235"></a>
-<span class="sourceLineNo">1236</span>   * @param targetGroup name of group<a name="line.1236"></a>
-<span class="sourceLineNo">1237</span>   */<a name="line.1237"></a>
-<span class="sourceLineNo">1238</span>  default void postMoveTables(final ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx,<a name="line.1238"></a>
-<span class="sourceLineNo">1239</span>                      Set&lt;TableName&gt; tables, String targetGroup) throws IOException {}<a name="line.1239"></a>
-<span class="sourceLineNo">1240</span><a name="line.1240"></a>
-<span class="sourceLineNo">1241</span>  /**<a name="line.1241"></a>
-<span class="sourceLineNo">1242</span>   * Called before a new region server group is added<a name="line.1242"></a>
-<span class="sourceLineNo">1243</span>   * @param ctx the environment to interact with the framework and master<a name="line.1243"></a>
-<span class="sourceLineNo">1244</span>   * @param name group name<a name="line.1244"></a>
-<span class="sourceLineNo">1245</span>   */<a name="line.1245"></a>
-<span class="sourceLineNo">1246</span>  default void preAddRSGroup(final ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx,<a name="line.1246"></a>
-<span class="sourceLineNo">1247</span>                     String name) throws IOException {}<a name="line.1247"></a>
-<span class="sourceLineNo">1248</span><a name="line.1248"></a>
-<span class="sourceLineNo">1249</span>  /**<a name="line.1249"></a>
-<span class="sourceLineNo">1250</span>   * Called after a new region server group is added<a name="line.1250"></a>
-<span class="sourceLineNo">1251</span>   * @param ctx the environment to interact with the framework and master<a name="line.1251"></a>
-<span class="sourceLineNo">1252</span>   * @param name group name<a name="line.1252"></a>
-<span class="sourceLineNo">1253</span>   */<a name="line.1253"></a>
-<span class="sourceLineNo">1254</span>  default void postAddRSGroup(final ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx,<a name="line.1254"></a>
-<span class="sourceLineNo">1255</span>                      String name) throws IOException {}<a name="line.1255"></a>
-<span class="sourceLineNo">1256</span><a name="line.1256"></a>
-<span class="sourceLineNo">1257</span>  /**<a name="line.1257"></a>
-<span class="sourceLineNo">1258</span>   * Called before a region server group is removed<a name="line.1258"></a>
-<span class="sourceLineNo">1259</span>   * @param ctx the environment to interact with the framework and master<a name="line.1259"></a>
-<span class="sourceLineNo">1260</span>   * @param name group name<a name="line.1260"></a>
-<span class="sourceLineNo">1261</span>   */<a name="line.1261"></a>
-<span class="sourceLineNo">1262</span>  default void preRemoveRSGroup(final ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx,<a name="line.1262"></a>
-<span class="sourceLineNo">1263</span>                        String name) throws IOException {}<a name="line.1263"></a>
-<span class="sourceLineNo">1264</span><a name="line.1264"></a>
-<span class="sourceLineNo">1265</span>  /**<a name="line.1265"></a>
-<span class="sourceLineNo">1266</span>   * Called after a region server group is removed<a name="line.1266"></a>
-<span class="sourceLineNo">1267</span>   * @param ctx the environment to interact with the framework and master<a name="line.1267"></a>
-<span class="sourceLineNo">1268</span>   * @param name group name<a name="line.1268"></a>
-<span class="sourceLineNo">1269</span>   */<a name="line.1269"></a>
-<span class="sourceLineNo">1270</span>  default void postRemoveRSGroup(final ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx,<a name="line.1270"></a>
-<span class="sourceLineNo">1271</span>                         String name) throws IOException {}<a name="line.1271"></a>
-<span class="sourceLineNo">1272</span><a name="line.1272"></a>
-<span class="sourceLineNo">1273</span>  /**<a name="line.1273"></a>
-<span class="sourceLineNo">1274</span>   * Called before a region server group is removed<a name="line.1274"></a>
-<span class="sourceLineNo">1275</span>   * @param ctx the environment to interact with the framework and master<a name="line.1275"></a>
-<span class="sourceLineNo">1276</span>   * @param groupName group name<a name="line.1276"></a>
-<span class="sourceLineNo">1277</span>   */<a name="line.1277"></a>
-<span class="sourceLineNo">1278</span>  default void preBalanceRSGroup(final ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx,<a name="line.1278"></a>
-<span class="sourceLineNo">1279</span>                         String groupName) throws IOException {}<a name="line.1279"></a>
-<span class="sourceLineNo">1280</span><a name="line.1280"></a>
-<span class="sourceLineNo">1281</span>  /**<a name="line.1281"></a>
-<span class="sourceLineNo">1282</span>   * Called after a region server group is removed<a name="line.1282"></a>
-<span class="sourceLineNo">1283</span>   * @param ctx the environment to interact with the framework and master<a name="line.1283"></a>
-<span class="sourceLineNo">1284</span>   * @param groupName group name<a name="line.1284"></a>
-<span class="sourceLineNo">1285</span>   */<a name="line.1285"></a>
-<span class="sourceLineNo">1286</span>  default void postBalanceRSGroup(final ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx,<a name="line.1286"></a>
-<span class="sourceLineNo">1287</span>                          String groupName, boolean balancerRan) throws IOException {}<a name="line.1287"></a>
-<span class="sourceLineNo">1288</span><a name="line.1288"></a>
-<span class="sourceLineNo">1289</span>  /**<a name="line.1289"></a>
-<span class="sourceLineNo">1290</span>   * Called before add a replication peer<a name="line.1290"></a>
-<span class="sourceLineNo">1291</span>   * @param ctx the environment to interact with the framework and master<a name="line.1291"></a>
-<span class="sourceLineNo">1292</span>   * @param peerId a short name that identifies the peer<a name="line.1292"></a>
-<span class="sourceLineNo">1293</span>   * @param peerConfig configuration for the replication peer<a name="line.1293"></a>
-<span class="sourceLineNo">1294</span>   */<a name="line.1294"></a>
-<span class="sourceLineNo">1295</span>  default void preAddReplicationPeer(final ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx,<a name="line.1295"></a>
-<span class="sourceLineNo">1296</span>      String peerId, ReplicationPeerConfig peerConfig) throws IOException {}<a name="line.1296"></a>
-<span class="sourceLineNo">1297</span><a name="line.1297"></a>
-<span class="sourceLineNo">1298</span>  /**<a name="line.1298"></a>
-<span class="sourceLineNo">1299</span>   * Called after add a replication peer<a name="line.1299"></a>
-<span class="sourceLineNo">1300</span>   * @param ctx the environment to interact with the framework and master<a name="line.1300"></a>
-<span class="sourceLineNo">1301</span>   * @param peerId a short name that identifies the peer<a name="line.1301"></a>
-<span class="sourceLineNo">1302</span>   * @param peerConfig configuration for the replication peer<a name="line.1302"></a>
-<span class="sourceLineNo">1303</span>   */<a name="line.1303"></a>
-<span class="sourceLineNo">1304</span>  default void postAddReplicationPeer(final ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx,<a name="line.1304"></a>
-<span class="sourceLineNo">1305</span>      String peerId, ReplicationPeerConfig peerConfig) throws IOException {}<a name="line.1305"></a>
-<span class="sourceLineNo">1306</span><a name="line.1306"></a>
-<span class="sourceLineNo">1307</span>  /**<a name="line.1307"></a>
-<span class="sourceLineNo">1308</span>   * Called before remove a replication peer<a name="line.1308"></a>
-<span class="sourceLineNo">1309</span>   * @param ctx<a name="line.1309"></a>
-<span class="sourceLineNo">1310</span>   * @param peerId a short name that identifies the peer<a name="line.1310"></a>
-<span class="sourceLineNo">1311</span>   */<a name="line.1311"></a>
-<span class="sourceLineNo">1312</span>  default void preRemoveReplicationPeer(final ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx,<a name="line.1312"></a>
-<span class="sourceLineNo">1313</span>      String peerId) throws IOException {}<a name="line.1313"></a>
-<span class="sourceLineNo">1314</span><a name="line.1314"></a>
-<span class="sourceLineNo">1315</span>  /**<a name="line.1315"></a>
-<span class="sourceLineNo">1316</span>   * Called after remove a replication peer<a name="line.1316"></a>
-<span class="sourceLineNo">1317</span>   * @param ctx<a name="line.1317"></a>
-<span class="sourceLineNo">1318</span>   * @param peerId a short name that identifies the peer<a name="line.1318"></a>
-<span class="sourceLineNo">1319</span>   */<a name="line.1319"></a>
-<span class="sourceLineNo">1320</span>  default void postRemoveReplicationPeer(final ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx,<a name="line.1320"></a>
-<span class="sourceLineNo">1321</span>      String peerId) throws IOException {}<a name="line.1321"></a>
-<span class="sourceLineNo">1322</span><a name="line.1322"></a>
-<span class="sourceLineNo">1323</span>  /**<a name="line.1323"></a>
-<span class="sourceLineNo">1324</span>   * Called before enable a replication peer<a name="line.1324"></a>
-<span class="sourceLineNo">1325</span>   * @param ctx<a name="line.1325"></a>
-<span class="sourceLineNo">1326</span>   * @param peerId a short name that identifies the peer<a name="line.1326"></a>
-<span class="sourceLineNo">1327</span>   */<a name="line.1327"></a>
-<span class="sourceLineNo">1328</span>  default void preEnableReplicationPeer(final ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx,<a name="line.1328"></a>
-<span class="sourceLineNo">1329</span>      String peerId) throws IOException {}<a name="line.1329"></a>
-<span class="sourceLineNo">1330</span><a name="line.1330"></a>
-<span class="sourceLineNo">1331</span>  /**<a name="line.1331"></a>
-<span class="sourceLineNo">1332</span>   * Called after enable a replication peer<a name="line.1332"></a>
-<span class="sourceLineNo">1333</span>   * @param ctx<a name="line.1333"></a>
-<span class="sourceLineNo">1334</span>   * @param peerId a short name that identifies the peer<a name="line.1334"></a>
-<span class="sourceLineNo">1335</span>   */<a name="line.1335"></a>
-<span class="sourceLineNo">1336</span>  default void postEnableReplicationPeer(final ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx,<a name="line.1336"></a>
-<span class="sourceLineNo">1337</span>      String peerId) throws IOException {}<a name="line.1337"></a>
-<span class="sourceLineNo">1338</span><a name="line.1338"></a>
-<span class="sourceLineNo">1339</span>  /**<a name="line.1339"></a>
-<span class="sourceLineNo">1340</span>   * Called before disable a replication peer<a name="line.1340"></a>
-<span class="sourceLineNo">1341</span>   * @param ctx<a name="line.1341"></a>
-<span class="sourceLineNo">1342</span>   * @param peerId a short name that identifies the peer<a name="line.1342"></a>
-<span class="sourceLineNo">1343</span>   */<a name="line.1343"></a>
-<span class="sourceLineNo">1344</span>  default void preDisableReplicationPeer(final ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx,<a name="line.1344"></a>
-<span class="sourceLineNo">1345</span>      String peerId) throws IOException {}<a name="line.1345"></a>
-<span class="sourceLineNo">1346</span><a name="line.1346"></a>
-<span class="sourceLineNo">1347</span>  /**<a name="line.1347"></a>
-<span class="sourceLineNo">1348</span>   * Called after disable a replication peer<a name="line.1348"></a>
-<span class="sourceLineNo">1349</span>   * @param ctx<a name="line.1349"></a>
-<span class="sourceLineNo">1350</span>   * @param peerId a short name that identifies the peer<a name="line.1350"></a>
-<span class="sourceLineNo">1351</span>   */<a name="line.1351"></a>
-<span class="sourceLineNo">1352</span>  default void postDisableReplicationPeer(final ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx,<a name="line.1352"></a>
-<span class="sourceLineNo">1353</span>      String peerId) throws IOException {}<a name="line.1353"></a>
-<span class="sourceLineNo">1354</span><a name="line.1354"></a>
-<span class="sourceLineNo">1355</span>  /**<a name="line.1355"></a>
-<span class="sourceLineNo">1356</span>   * Called before get the configured ReplicationPeerConfig for the specified peer<a name="line.1356"></a>
-<span class="sourceLineNo">1357</span>   * @param ctx<a name="line.1357"></a>
-<span class="sourceLineNo">1358</span>   * @param peerId a short name that identifies the peer<a name="line.1358"></a>
-<span class="sourceLineNo">1359</span>   */<a name="line.1359"></a>
-<span class="sourceLineNo">1360</span>  default void preGetReplicationPeerConfig(final ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx,<a name="line.1360"></a>
-<span class="sourceLineNo">1361</span>      String peerId) throws IOException {}<a name="line.1361"></a>
-<span class="sourceLineNo">1362</span><a name="line.1362"></a>
-<span class="sourceLineNo">1363</span>  /**<a name="line.1363"></a>
-<span class="sourceLineNo">1364</span>   * Called after get the configured ReplicationPeerConfig for the specified peer<a name="line.1364"></a>
-<span class="sourceLineNo">1365</span>   * @param ctx<a name="line.1365"></a>
-<span class="sourceLineNo">1366</span>   * @param peerId a short name that identifies the peer<a name="line.1366"></a>
-<span class="sourceLineNo">1367</span>   */<a name="line.1367"></a>
-<span class="sourceLineNo">1368</span>  default void postGetReplicationPeerConfig(<a name="line.1368"></a>
-<span class="sourceLineNo">1369</span>      final ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx, String peerId) throws IOException {}<a name="line.1369"></a>
-<span class="sourceLineNo">1370</span><a name="line.1370"></a>
-<span class="sourceLineNo">1371</span>  /**<a name="line.1371"></a>
-<span class="sourceLineNo">1372</span>   * Called before update peerConfig for the specified peer<a name="line.1372"></a>
-<span class="sourceLineNo">1373</span>   * @param ctx<a name="line.1373"></a>
-<span class="sourceLineNo">1374</span>   * @param peerId a short name that identifies the peer<a name="line.1374"></a>
-<span class="sourceLineNo">1375</span>   */<a name="line.1375"></a>
-<span class="sourceLineNo">1376</span>  default void preUpdateReplicationPeerConfig(<a name="line.1376"></a>
-<span class="sourceLineNo">1377</span>      final ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx, String peerId,<a name="line.1377"></a>
-<span class="sourceLineNo">1378</span>      ReplicationPeerConfig peerConfig) throws IOException {}<a name="line.1378"></a>
-<span class="sourceLineNo">1379</span><a name="line.1379"></a>
-<span class="sourceLineNo">1380</span>  /**<a name="line.1380"></a>
-<span class="sourceLineNo">1381</span>   * Called after update peerConfig for the specified peer<a name="line.1381"></a>
-<span class="sourceLineNo">1382</span>   * @param ctx the environment to interact with the framework and master<a name="line.1382"></a>
-<span class="sourceLineNo">1383</span>   * @param peerId a short name that identifies the peer<a name="line.1383"></a>
-<span class="sourceLineNo">1384</span>   */<a name="line.1384"></a>
-<span class="sourceLineNo">1385</span>  default void postUpdateReplicationPeerConfig(<a name="line.1385"></a>
-<span class="sourceLineNo">1386</span>      final ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx, String peerId,<a name="line.1386"></a>
-<span class="sourceLineNo">1387</span>      ReplicationPeerConfig peerConfig) throws IOException {}<a name="line.1387"></a>
-<span class="sourceLineNo">1388</span><a name="line.1388"></a>
-<span class="sourceLineNo">1389</span>  /**<a name="line.1389"></a>
-<span class="sourceLineNo">1390</span>   * Called before list replication peers.<a name="line.1390"></a>
-<span class="sourceLineNo">1391</span>   * @param ctx the environment to interact with the framework and master<a name="line.1391"></a>
-<span class="sourceLineNo">1392</span>   * @param regex The regular expression to match peer id<a name="line.1392"></a>
-<span class="sourceLineNo">1393</span>   */<a name="line.1393"></a>
-<span class="sourceLineNo">1394</span>  default void preListReplicationPeers(final ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx,<a name="line.1394"></a>
-<span class="sourceLineNo">1395</span>      String regex) throws IOException {}<a name="line.1395"></a>
-<span class="sourceLineNo">1396</span><a name="line.1396"></a>
-<span class="sourceLineNo">1397</span>  /**<a name="line.1397"></a>
-<span class="sourceLineNo">1398</span>   * Called after list replication peers.<a name="line.1398"></a>
-<span class="sourceLineNo">1399</span>   * @param ctx the environment to interact with the framework and master<a name="line.1399"></a>
-<span class="sourceLineNo">1400</span>   * @param regex The regular expression to match peer id<a name="line.1400"></a>
-<span class="sourceLineNo">1401</span>   */<a name="line.1401"></a>
-<span class="sourceLineNo">1402</span>  default void postListReplicationPeers(final ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx,<a name="line.1402"></a>
-<span class="sourceLineNo">1403</span>      String regex) 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>   * Called before new LockProcedure is queued.<a name="line.1406"></a>
-<span class="sourceLineNo">1407</span>   * @param ctx the environment to interact with the framework and master<a name="line.1407"></a>
-<span class="sourceLineNo">1408</span>   */<a name="line.1408"></a>
-<span class="sourceLineNo">1409</span>  default void preRequestLock(ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx, String namespace,<a name="line.1409"></a>
-<span class="sourceLineNo">1410</span>      TableName tableName, RegionInfo[] regionInfos, LockType type,<a name="line.1410"></a>
-<span class="sourceLineNo">1411</span>      String description) throws IOException {}<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>   * Called after new LockProcedure is queued.<a name="line.1414"></a>
-<span class="sourceLineNo">1415</span>   * @param ctx the environment to interact with the framework and master<a name="line.1415"></a>
-<span class="sourceLineNo">1416</span>   */<a name="line.1416"></a>
-<span class="sourceLineNo">1417</span>  default void postRequestLock(ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx, String namespace,<a name="line.1417"></a>
-<span class="sourceLineNo">1418</span>      TableName tableName, RegionInfo[] regionInfos, LockType type,<a name="line.1418"></a>
-<span class="sourceLineNo">1419</span>      String description) throws IOException {}<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>   * Called before heartbeat to a lock.<a name="line.1422"></a>
-<span class="sourceLineNo">1423</span>   * @param ctx the environment to interact with the framework and master<a name="line.1423"></a>
-<span class="sourceLineNo">1424</span>   * @param keepAlive if lock should be kept alive; lock will be released if set to false.<a name="line.1424"></a>
-<span class="sourceLineNo">1425</span>   */<a name="line.1425"></a>
-<span class="sourceLineNo">1426</span>  default void preLockHeartbeat(ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx,<a name="line.1426"></a>
-<span class="sourceLineNo">1427</span>      LockProcedure proc, boolean keepAlive) throws IOException {}<a name="line.1427"></a>
-<span class="sourceLineNo">1428</span><a name="line.1428"></a>
-<span class="sourceLineNo">1429</span>  /**<a name="line.1429"></a>
-<span class="sourceLineNo">1430</span>   * Called after heartbeat to a lock.<a name="line.1430"></a>
-<span class="sourceLineNo">1431</span>   * @param ctx the environment to interact with the framework and master<a name="line.1431"></a>
-<span class="sourceLineNo">1432</span>   * @param keepAlive if lock was kept alive; lock was released if set to false.<a name="line.1432"></a>
-<span class="sourceLineNo">1433</span>   */<a name="line.1433"></a>
-<span class="sourceLineNo">1434</span>  default void postLockHeartbeat(ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx,<a name="line.1434"></a>
-<span class="sourceLineNo">1435</span>      LockProcedure proc, boolean keepAlive) throws IOException {}<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>   * Called before list dead region servers.<a name="line.1438"></a>
-<span class="sourceLineNo">1439</span>   */<a name="line.1439"></a>
-<span class="sourceLineNo">1440</span>  default void preListDeadServers(ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.1440"></a>
-<span class="sourceLineNo">1441</span>      throws IOException {}<a name="line.1441"></a>
-<span class="sourceLineNo">1442</span><a name="line.1442"></a>
-<span class="sourceLineNo">1443</span>  /**<a name="line.1443"></a>
-<span class="sourceLineNo">1444</span>   * Called after list dead region servers.<a name="line.1444"></a>
-<span class="sourceLineNo">1445</span>   */<a name="line.1445"></a>
-<span class="sourceLineNo">1446</span>  default void postListDeadServers(ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.1446"></a>
-<span class="sourceLineNo">1447</span>      throws IOException {}<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>   * Called before clear dead region servers.<a name="line.1450"></a>
-<span class="sourceLineNo">1451</span>   */<a name="line.1451"></a>
-<span class="sourceLineNo">1452</span>  default void preClearDeadServers(ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.1452"></a>
-<span class="sourceLineNo">1453</span>      throws IOException {}<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>   * Called after clear dead region servers.<a name="line.1456"></a>
-<span class="sourceLineNo">1457</span>   */<a name="line.1457"></a>
-<span class="sourceLineNo">1458</span>  default void postClearDeadServers(ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.1458"></a>
-<span class="sourceLineNo">1459</span>      throws IOException {}<a name="line.1459"></a>
-<span class="sourceLineNo">1460</span>}<a name="line.1460"></a>
+<span class="sourceLineNo">1099</span>  default void preSetUserQuota(<a name="line.1099"></a>
+<span class="sourceLineNo">1100</span>      final ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx, final String userName,<a name="line.1100"></a>
+<span class="sourceLineNo">1101</span>      final TableName tableName, final GlobalQuotaSettings quotas) throws IOException {}<a name="line.1101"></a>
+<span class="sourceLineNo">1102</span><a name="line.1102"></a>
+<span class="sourceLineNo">1103</span>  /**<a name="line.1103"></a>
+<span class="sourceLineNo">1104</span>   * Called after the quota for the user on the specified table is stored.<a name="line.1104"></a>
+<span class="sourceLineNo">1105</span>   * @param ctx the environment to interact with the framework and master<a name="line.1105"></a>
+<span class="sourceLineNo">1106</span>   * @param userName the name of user<a name="line.1106"></a>
+<span class="sourceLineNo">1107</span>   * @param tableName the name of the table<a name="line.1107"></a>
+<span class="sourceLineNo">1108</span>   * @param quotas the resulting quota for the user on the table<a name="line.1108"></a>
+<span class="sourceLineNo">1109</span>   */<a name="line.1109"></a>
+<span class="sourceLineNo">1110</span>  default void postSetUserQuota(<a name="line.1110"></a>
+<span class="sourceLineNo">1111</span>      final ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx, final String userName,<a name="line.1111"></a>
+<span class="sourceLineNo">1112</span>      final TableName tableName, final GlobalQuotaSettings quotas) throws IOException {}<a name="line.1112"></a>
+<span class="sourceLineNo">1113</span><a name="line.1113"></a>
+<span class="sourceLineNo">1114</span>  /**<a name="line.1114"></a>
+<span class="sourceLineNo">1115</span>   * Called before the quota for the user on the specified namespace is stored.<a name="line.1115"></a>
+<span class="sourceLineNo">1116</span>   * @param ctx the environment to interact with the framework and master<a name="line.1116"></a>
+<span class="sourceLineNo">1117</span>   * @param userName the name of user<a name="line.1117"></a>
+<span class="sourceLineNo">1118</span>   * @param namespace the name of the namespace<a name="line.1118"></a>
+<span class="sourceLineNo">1119</span>   * @param quotas the current quota for the user on the namespace<a name="line.1119"></a>
+<span class="sourceLineNo">1120</span>   */<a name="line.1120"></a>
+<span class="sourceLineNo">1121</span>  default void preSetUserQuota(<a name="line.1121"></a>
+<span class="sourceLineNo">1122</span>      final ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx, final String userName,<a name="line.1122"></a>
+<span class="sourceLineNo">1123</span>      final String namespace, final GlobalQuotaSettings quotas) throws IOException {}<a name="line.1123"></a>
+<span class="sourceLineNo">1124</span><a name="line.1124"></a>
+<span class="sourceLineNo">1125</span>  /**<a name="line.1125"></a>
+<span class="sourceLineNo">1126</span>   * Called after the quota for the user on the specified namespace is stored.<a name="line.1126"></a>
+<span class="sourceLineNo">1127</span>   * @param ctx the environment to interact with the framework and master<a name="line.1127"></a>
+<span class="sourceLineNo">1128</span>   * @param userName the name of user<a name="line.1128"></a>
+<span class="sourceLineNo">1129</span>   * @param namespace the name of the namespace<a name="line.1129"></a>
+<span class="sourceLineNo">1130</span>   * @param quotas the resulting quota for the user on the namespace<a name="line.1130"></a>
+<span class="sourceLineNo">1131</span>   */<a name="line.1131"></a>
+<span class="sourceLineNo">1132</span>  default void postSetUserQuota(<a name="line.1132"></a>
+<span class="sourceLineNo">1133</span>      final ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx, final String userName,<a name="line.1133"></a>
+<span class="sourceLineNo">1134</span>      final String namespace, final GlobalQuotaSettings quotas) throws IOException {}<a name="line.1134"></a>
+<span class="sourceLineNo">1135</span><a name="line.1135"></a>
+<span class="sourceLineNo">1136</span>  /**<a name="line.1136"></a>
+<span class="sourceLineNo">1137</span>   * Called before the quota for the table is stored.<a name="line.1137"></a>
+<span class="sourceLineNo">1138</span>   * @param ctx the environment to interact with the framework and master<a name="line.1138"></a>
+<span class="sourceLineNo">1139</span>   * @param tableName the name of the table<a name="line.1139"></a>
+<span class="sourceLineNo">1140</span>   * @param quotas the current quota for the table<a name="line.1140"></a>
+<span class="sourceLineNo">1141</span>   */<a name="line.1141"></a>
+<span class="sourceLineNo">1142</span>  default void preSetTableQuota(final ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx,<a name="line.1142"></a>
+<span class="sourceLineNo">1143</span>      final TableName tableName, final GlobalQuotaSettings quotas) throws IOException {}<a name="line.1143"></a>
+<span class="sourceLineNo">1144</span><a name="line.1144"></a>
+<span class="sourceLineNo">1145</span>  /**<a name="line.1145"></a>
+<span class="sourceLineNo">1146</span>   * Called after the quota for the table is stored.<a name="line.1146"></a>
+<span class="sourceLineNo">1147</span>   * @param ctx the environment to interact with the framework and master<a name="line.1147"></a>
+<span class="sourceLineNo">1148</span>   * @param tableName the name of the table<a name="line.1148"></a>
+<span class="sourceLineNo">1149</span>   * @param quotas the resulting quota for the table<a name="line.1149"></a>
+<span class="sourceLineNo">1150</span>   */<a name="line.1150"></a>
+<span class="sourceLineNo">1151</span>  default void postSetTableQuota(final ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx,<a name="line.1151"></a>
+<span class="sourceLineNo">1152</span>      final TableName tableName, final GlobalQuotaSettings quotas) throws IOException {}<a name="line.1152"></a>
+<span class="sourceLineNo">1153</span><a name="line.1153"></a>
+<span class="sourceLineNo">1154</span>  /**<a name="line.1154"></a>
+<span class="sourceLineNo">1155</span>   * Called before the quota for the namespace is stored.<a name="line.1155"></a>
+<span class="sourceLineNo">1156</span>   * @param ctx the environment to interact with the framework and master<a name="line.1156"></a>
+<span class="sourceLineNo">1157</span>   * @param namespace the name of the namespace<a name="line.1157"></a>
+<span class="sourceLineNo">1158</span>   * @param quotas the current quota for the namespace<a name="line.1158"></a>
+<span class="sourceLineNo">1159</span>   */<a name="line.1159"></a>
+<span class="sourceLineNo">1160</span>  default void preSetNamespaceQuota(final ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx,<a name="line.1160"></a>
+<span class="sourceLineNo">1161</span>      final String namespace, final GlobalQuotaSettings quotas) throws IOException {}<a name="line.1161"></a>
+<span class="sourceLineNo">1162</span><a name="line.1162"></a>
+<span class="sourceLineNo">1163</span>  /**<a name="line.1163"></a>
+<span class="sourceLineNo">1164</span>   * Called after the quota for the namespace is stored.<a name="line.1164"></a>
+<span class="sourceLineNo">1165</span>   * @param ctx the environment to interact with the framework and master<a name="line.1165"></a>
+<span class="sourceLineNo">1166</span>   * @param namespace the name of the namespace<a name="line.1166"></a>
+<span class="sourceLineNo">1167</span>   * @param quotas the resulting quota for the namespace<a name="line.1167"></a>
+<span class="sourceLineNo">1168</span>   */<a name="line.1168"></a>
+<span class="sourceLineNo">1169</span>  default void postSetNamespaceQuota(final ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx,<a name="line.1169"></a>
+<span class="sourceLineNo">1170</span>      final String namespace, final GlobalQuotaSettings quotas) throws IOException {}<a name="line.1170"></a>
+<span class="sourceLineNo">1171</span><a name="line.1171"></a>
+<span class="sourceLineNo">1172</span>  /**<a name="line.1172"></a>
+<span class="sourceLineNo">1173</span>   * Called before merge regions request.<a name="line.1173"></a>
+<span class="sourceLineNo">1174</span>   * It can't bypass the default action, e.g., ctx.bypass() won't have effect.<a name="line.1174"></a>
+<span class="sourceLineNo">1175</span>   * @param ctx coprocessor environment<a name="line.1175"></a>
+<span class="sourceLineNo">1176</span>   * @param regionsToMerge regions to be merged<a name="line.1176"></a>
+<span class="sourceLineNo">1177</span>   */<a name="line.1177"></a>
+<span class="sourceLineNo">1178</span>  default void preMergeRegions(<a name="line.1178"></a>
+<span class="sourceLineNo">1179</span>      final ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx,<a name="line.1179"></a>
+<span class="sourceLineNo">1180</span>      final RegionInfo[] regionsToMerge) throws IOException {}<a name="line.1180"></a>
+<span class="sourceLineNo">1181</span><a name="line.1181"></a>
+<span class="sourceLineNo">1182</span>  /**<a name="line.1182"></a>
+<span class="sourceLineNo">1183</span>   * called after merge regions request.<a name="line.1183"></a>
+<span class="sourceLineNo">1184</span>   * @param c coprocessor environment<a name="line.1184"></a>
+<span class="sourceLineNo">1185</span>   * @param regionsToMerge regions to be merged<a name="line.1185"></a>
+<span class="sourceLineNo">1186</span>   */<a name="line.1186"></a>
+<span class="sourceLineNo">1187</span>  default void postMergeRegions(<a name="line.1187"></a>
+<span class="sourceLineNo">1188</span>      final ObserverContext&lt;MasterCoprocessorEnvironment&gt; c,<a name="line.1188"></a>
+<span class="sourceLineNo">1189</span>      final RegionInfo[] regionsToMerge) throws IOException {}<a name="line.1189"></a>
+<span class="sourceLineNo">1190</span><a name="line.1190"></a>
+<span class="sourceLineNo">1191</span>  /**<a name="line.1191"></a>
+<span class="sourceLineNo">1192</span>   * Called before servers are moved to target region server group<a name="line.1192"></a>
+<span class="sourceLineNo">1193</span>   * @param ctx the environment to interact with the framework and master<a name="line.1193"></a>
+<span class="sourceLineNo">1194</span>   * @param servers set of servers to move<a name="line.1194"></a>
+<span class="sourceLineNo">1195</span>   * @param targetGroup destination group<a name="line.1195"></a>
+<span class="sourceLineNo">1196</span>   */<a name="line.1196"></a>
+<span class="sourceLineNo">1197</span>  default void preMoveServersAndTables(final ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx,<a name="line.1197"></a>
+<span class="sourceLineNo">1198</span>                      Set&lt;Address&gt; servers, Set&lt;TableName&gt; tables, String targetGroup) throws IOException {}<a name="line.1198"></a>
+<span class="sourceLineNo">1199</span><a name="line.1199"></a>
+<span class="sourceLineNo">1200</span>  /**<a name="line.1200"></a>
+<span class="sourceLineNo">1201</span>   * Called after servers are moved to target region server group<a name="line.1201"></a>
+<span class="sourceLineNo">1202</span>   * @param ctx the environment to interact with the framework and master<a name="line.1202"></a>
+<span class="sourceLineNo">1203</span>   * @param servers set of servers to move<a name="line.1203"></a>
+<span class="sourceLineNo">1204</span>   * @param targetGroup name of group<a name="line.1204"></a>
+<span class="sourceLineNo">1205</span>   */<a name="line.1205"></a>
+<span class="sourceLineNo">1206</span>  default void postMoveServersAndTables(final ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx,<a name="line.1206"></a>
+<span class="sourceLineNo">1207</span>      Set&lt;Address&gt; servers, Set&lt;TableName&gt; tables, String targetGroup) throws IOException {}<a name="line.1207"></a>
+<span class="sourceLineNo">1208</span><a name="line.1208"></a>
+<span class="sourceLineNo">1209</span>  /**<a name="line.1209"></a>
+<span class="sourceLineNo">1210</span>   * Called before servers are moved to target region server group<a name="line.1210"></a>
+<span class="sourceLineNo">1211</span>   * @param ctx the environment to interact with the framework and master<a name="line.1211"></a>
+<span class="sourceLineNo">1212</span>   * @param servers set of servers to move<a name="line.1212"></a>
+<span class="sourceLineNo">1213</span>   * @param targetGroup destination group<a name="line.1213"></a>
+<span class="sourceLineNo">1214</span>   */<a name="line.1214"></a>
+<span class="sourceLineNo">1215</span>  default void preMoveServers(final ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx,<a name="line.1215"></a>
+<span class="sourceLineNo">1216</span>                      Set&lt;Address&gt; servers, String targetGroup) throws IOException {}<a name="line.1216"></a>
+<span class="sourceLineNo">1217</span><a name="line.1217"></a>
+<span class="sourceLineNo">1218</span>  /**<a name="line.1218"></a>
+<span class="sourceLineNo">1219</span>   * Called after servers are moved to target region server group<a name="line.1219"></a>
+<span class="sourceLineNo">1220</span>   * @param ctx the environment to interact with the framework and master<a name="line.1220"></a>
+<span class="sourceLineNo">1221</span>   * @param servers set of servers to move<a name="line.1221"></a>
+<span class="sourceLineNo">1222</span>   * @param targetGroup name of group<a name="line.1222"></a>
+<span class="sourceLineNo">1223</span>   */<a name="line.1223"></a>
+<span class="sourceLineNo">1224</span>  default void postMoveServers(final ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx,<a name="line.1224"></a>
+<span class="sourceLineNo">1225</span>                       Set&lt;Address&gt; servers, String targetGroup) throws IOException {}<a name="line.1225"></a>
+<span class="sourceLineNo">1226</span><a name="line.1226"></a>
+<span class="sourceLineNo">1227</span>  /**<a name="line.1227"></a>
+<span class="sourceLineNo">1228</span>   * Called before tables are moved to target region server group<a name="line.1228"></a>
+<span class="sourceLineNo">1229</span>   * @param ctx the environment to interact with the framework and master<a name="line.1229"></a>
+<span class="sourceLineNo">1230</span>   * @param tables set of tables to move<a name="line.1230"></a>
+<span class="sourceLineNo">1231</span>   * @param targetGroup name of group<a name="line.1231"></a>
+<span class="sourceLineNo">1232</span>   */<a name="line.1232"></a>
+<span class="sourceLineNo">1233</span>  default void preMoveTables(final ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx,<a name="line.1233"></a>
+<span class="sourceLineNo">1234</span>                     Set&lt;TableName&gt; tables, String targetGroup) throws IOException {}<a name="line.1234"></a>
+<span class="sourceLineNo">1235</span><a name="line.1235"></a>
+<span class="sourceLineNo">1236</span>  /**<a name="line.1236"></a>
+<span class="sourceLineNo">1237</span>   * Called after servers are moved to target region server group<a name="line.1237"></a>
+<span class="sourceLineNo">1238</span>   * @param ctx the environment to interact with the framework and master<a name="line.1238"></a>
+<span class="sourceLineNo">1239</span>   * @param tables set of tables to move<a name="line.1239"></a>
+<span class="sourceLineNo">1240</span>   * @param targetGroup name of group<a name="line.1240"></a>
+<span class="sourceLineNo">1241</span>   */<a name="line.1241"></a>
+<span class="sourceLineNo">1242</span>  default void postMoveTables(final ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx,<a name="line.1242"></a>
+<span class="sourceLineNo">1243</span>                      Set&lt;TableName&gt; tables, String targetGroup) throws IOException {}<a name="line.1243"></a>
+<span class="sourceLineNo">1244</span><a name="line.1244"></a>
+<span class="sourceLineNo">1245</span>  /**<a name="line.1245"></a>
+<span class="sourceLineNo">1246</span>   * Called before a new region server group is added<a name="line.1246"></a>
+<span class="sourceLineNo">1247</span>   * @param ctx the environment to interact with the framework and master<a name="line.1247"></a>
+<span class="sourceLineNo">1248</span>   * @param name group name<a name="line.1248"></a>
+<span class="sourceLineNo">1249</span>   */<a name="line.1249"></a>
+<span class="sourceLineNo">1250</span>  default void preAddRSGroup(final ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx,<a name="line.1250"></a>
+<span class="sourceLineNo">1251</span>                     String name) throws IOException {}<a name="line.1251"></a>
+<span class="sourceLineNo">1252</span><a name="line.1252"></a>
+<span class="sourceLineNo">1253</span>  /**<a name="line.1253"></a>
+<span class="sourceLineNo">1254</span>   * Called after a new region server group is added<a name="line.1254"></a>
+<span class="sourceLineNo">1255</span>   * @param ctx the environment to interact with the framework and master<a name="line.1255"></a>
+<span class="sourceLineNo">1256</span>   * @param name group name<a name="line.1256"></a>
+<span class="sourceLineNo">1257</span>   */<a name="line.1257"></a>
+<span class="sourceLineNo">1258</span>  default void postAddRSGroup(final ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx,<a name="line.1258"></a>
+<span class="sourceLineNo">1259</span>                      String name) throws IOException {}<a name="line.1259"></a>
+<span class="sourceLineNo">1260</span><a name="line.1260"></a>
+<span class="sourceLineNo">1261</span>  /**<a name="line.1261"></a>
+<span class="sourceLineNo">1262</span>   * Called before a region server group is removed<a name="line.1262"></a>
+<span class="sourceLineNo">1263</span>   * @param ctx the environment to interact with the framework and master<a name="line.1263"></a>
+<span class="sourceLineNo">1264</span>   * @param name group name<a name="line.1264"></a>
+<span class="sourceLineNo">1265</span>   */<a name="line.1265"></a>
+<span class="sourceLineNo">1266</span>  default void preRemoveRSGroup(final ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx,<a name="line.1266"></a>
+<span class="sourceLineNo">1267</span>                        String name) throws IOException {}<a name="line.1267"></a>
+<span class="sourceLineNo">1268</span><a name="line.1268"></a>
+<span class="sourceLineNo">1269</span>  /**<a name="line.1269"></a>
+<span class="sourceLineNo">1270</span>   * Called after a region server group is removed<a name="line.1270"></a>
+<span class="sourceLineNo">1271</span>   * @param ctx the environment to interact with the framework and master<a name="line.1271"></a>
+<span class="sourceLineNo">1272</span>   * @param name group name<a name="line.1272"></a>
+<span class="sourceLineNo">1273</span>   */<a name="line.1273"></a>
+<span class="sourceLineNo">1274</span>  default void postRemoveRSGroup(final ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx,<a name="line.1274"></a>
+<span class="sourceLineNo">1275</span>                         String name) throws IOException {}<a name="line.1275"></a>
+<span class="sourceLineNo">1276</span><a name="line.1276"></a>
+<span class="sourceLineNo">1277</span>  /**<a name="line.1277"></a>
+<span class="sourceLineNo">1278</span>   * Called before a region server group is removed<a name="line.1278"></a>
+<span class="sourceLineNo">1279</span>   * @param ctx the environment to interact with the framework and master<a name="line.1279"></a>
+<span class="sourceLineNo">1280</span>   * @param groupName group name<a name="line.1280"></a>
+<span class="sourceLineNo">1281</span>   */<a name="line.1281"></a>
+<span class="sourceLineNo">1282</span>  default void preBalanceRSGroup(final ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx,<a name="line.1282"></a>
+<span class="sourceLineNo">1283</span>                         String groupName) throws IOException {}<a name="line.1283"></a>
+<span class="sourceLineNo">1284</span><a name="line.1284"></a>
+<span class="sourceLineNo">1285</span>  /**<a name="line.1285"></a>
+<span class="sourceLineNo">1286</span>   * Called after a region server group is removed<a name="line.1286"></a>
+<span class="sourceLineNo">1287</span>   * @param ctx the environment to interact with the framework and master<a name="line.1287"></a>
+<span class="sourceLineNo">1288</span>   * @param groupName group name<a name="line.1288"></a>
+<span class="sourceLineNo">1289</span>   */<a name="line.1289"></a>
+<span class="sourceLineNo">1290</span>  default void postBalanceRSGroup(final ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx,<a name="line.1290"></a>
+<span class="sourceLineNo">1291</span>                          String groupName, boolean balancerRan) throws IOException {}<a name="line.1291"></a>
+<span class="sourceLineNo">1292</span><a name="line.1292"></a>
+<span class="sourceLineNo">1293</span>  /**<a name="line.1293"></a>
+<span class="sourceLineNo">1294</span>   * Called before add a replication peer<a name="line.1294"></a>
+<span class="sourceLineNo">1295</span>   * @param ctx the environment to interact with the framework and master<a name="line.1295"></a>
+<span class="sourceLineNo">1296</span>   * @param peerId a short name that identifies the peer<a name="line.1296"></a>
+<span class="sourceLineNo">1297</span>   * @param peerConfig configuration for the replication peer<a name="line.1297"></a>
+<span class="sourceLineNo">1298</span>   */<a name="line.1298"></a>
+<span class="sourceLineNo">1299</span>  default void preAddReplicationPeer(final ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx,<a name="line.1299"></a>
+<span class="sourceLineNo">1300</span>      String peerId, ReplicationPeerConfig peerConfig) throws IOException {}<a name="line.1300"></a>
+<span class="sourceLineNo">1301</span><a name="line.1301"></a>
+<span class="sourceLineNo">1302</span>  /**<a name="line.1302"></a>
+<span class="sourceLineNo">1303</span>   * Called after add a replication peer<a name="line.1303"></a>
+<span class="sourceLineNo">1304</span>   * @param ctx the environment to interact with the framework and master<a name="line.1304"></a>
+<span class="sourceLineNo">1305</span>   * @param peerId a short name that identifies the peer<a name="line.1305"></a>
+<span class="sourceLineNo">1306</span>   * @param peerConfig configuration for the replication peer<a name="line.1306"></a>
+<span class="sourceLineNo">1307</span>   */<a name="line.1307"></a>
+<span class="sourceLineNo">1308</span>  default void postAddReplicationPeer(final ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx,<a name="line.1308"></a>
+<span class="sourceLineNo">1309</span>      String peerId, ReplicationPeerConfig peerConfig) throws IOException {}<a name="line.1309"></a>
+<span class="sourceLineNo">1310</span><a name="line.1310"></a>
+<span class="sourceLineNo">1311</span>  /**<a name="line.1311"></a>
+<span class="sourceLineNo">1312</span>   * Called before remove a replication peer<a name="line.1312"></a>
+<span class="sourceLineNo">1313</span>   * @param ctx<a name="line.1313"></a>
+<span class="sourceLineNo">1314</span>   * @param peerId a short name that identifies the peer<a name="line.1314"></a>
+<span class="sourceLineNo">1315</span>   */<a name="line.1315"></a>
+<span class="sourceLineNo">1316</span>  default void preRemoveReplicationPeer(final ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx,<a name="line.1316"></a>
+<span class="sourceLineNo">1317</span>      String peerId) throws IOException {}<a name="line.1317"></a>
+<span class="sourceLineNo">1318</span><a name="line.1318"></a>
+<span class="sourceLineNo">1319</span>  /**<a name="line.1319"></a>
+<span class="sourceLineNo">1320</span>   * Called after remove a replication peer<a name="line.1320"></a>
+<span class="sourceLineNo">1321</span>   * @param ctx<a name="line.1321"></a>
+<span class="sourceLineNo">1322</span>   * @param peerId a short name that identifies the peer<a name="line.1322"></a>
+<span class="sourceLineNo">1323</span>   */<a name="line.1323"></a>
+<span class="sourceLineNo">1324</span>  default void postRemoveReplicationPeer(final ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx,<a name="line.1324"></a>
+<span class="sourceLineNo">1325</span>      String peerId) throws IOException {}<a name="line.1325"></a>
+<span class="sourceLineNo">1326</span><a name="line.1326"></a>
+<span class="sourceLineNo">1327</span>  /**<a name="line.1327"></a>
+<span class="sourceLineNo">1328</span>   * Called before enable a replication peer<a name="line.1328"></a>
+<span class="sourceLineNo">1329</span>   * @param ctx<a name="line.1329"></a>
+<span class="sourceLineNo">1330</span>   * @param peerId a short name that identifies the peer<a name="line.1330"></a>
+<span class="sourceLineNo">1331</span>   */<a name="line.1331"></a>
+<span class="sourceLineNo">1332</span>  default void preEnableReplicationPeer(final ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx,<a name="line.1332"></a>
+<span class="sourceLineNo">1333</span>      String peerId) throws IOException {}<a name="line.1333"></a>
+<span class="sourceLineNo">1334</span><a name="line.1334"></a>
+<span class="sourceLineNo">1335</span>  /**<a name="line.1335"></a>
+<span class="sourceLineNo">1336</span>   * Called after enable a replication peer<a name="line.1336"></a>
+<span class="sourceLineNo">1337</span>   * @param ctx<a name="line.1337"></a>
+<span class="sourceLineNo">1338</span>   * @param peerId a short name that identifies the peer<a name="line.1338"></a>
+<span class="sourceLineNo">1339</span>   */<a name="line.1339"></a>
+<span class="sourceLineNo">1340</span>  default void postEnableReplicationPeer(final ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx,<a name="line.1340"></a>
+<span class="sourceLineNo">1341</span>      String peerId) throws IOException {}<a name="line.1341"></a>
+<span class="sourceLineNo">1342</span><a name="line.1342"></a>
+<span class="sourceLineNo">1343</span>  /**<a name="line.1343"></a>
+<span class="sourceLineNo">1344</span>   * Called before disable a replication peer<a name="line.1344"></a>
+<span class="sourceLineNo">1345</span>   * @param ctx<a name="line.1345"></a>
+<span class="sourceLineNo">1346</span>   * @param peerId a short name that identifies the peer<a name="line.1346"></a>
+<span class="sourceLineNo">1347</span>   */<a name="line.1347"></a>
+<span class="sourceLineNo">1348</span>  default void preDisableReplicationPeer(final ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx,<a name="line.1348"></a>
+<span class="sourceLineNo">1349</span>      String peerId) throws IOException {}<a name="line.1349"></a>
+<span class="sourceLineNo">1350</span><a name="line.1350"></a>
+<span class="sourceLineNo">1351</span>  /**<a name="line.1351"></a>
+<span class="sourceLineNo">1352</span>   * Called after disable a replication peer<a name="line.1352"></a>
+<span class="sourceLineNo">1353</span>   * @param ctx<a name="line.1353"></a>
+<span class="sourceLineNo">1354</span>   * @param peerId a short name that identifies the peer<a name="line.1354"></a>
+<span class="sourceLineNo">1355</span>   */<a name="line.1355"></a>
+<span class="sourceLineNo">1356</span>  default void postDisableReplicationPeer(final ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx,<a name="line.1356"></a>
+<span class="sourceLineNo">1357</span>      String peerId) throws IOException {}<a name="line.1357"></a>
+<span class="sourceLineNo">1358</span><a name="line.1358"></a>
+<span class="sourceLineNo">1359</span>  /**<a name="line.1359"></a>
+<span class="sourceLineNo">1360</span>   * Called before get the configured ReplicationPeerConfig for the specified peer<a name="line.1360"></a>
+<span class="sourceLineNo">1361</span>   * @param ctx<a name="line.1361"></a>
+<span class="sourceLineNo">1362</span>   * @param peerId a short name that identifies the peer<a name="line.1362"></a>
+<span class="sourceLineNo">1363</span>   */<a name="line.1363"></a>
+<span class="sourceLineNo">1364</span>  default void preGetReplicationPeerConfig(final ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx,<a name="line.1364"></a>
+<span class="sourceLineNo">1365</span>      String peerId) throws IOException {}<a name="line.1365"></a>
+<span class="sourceLineNo">1366</span><a name="line.1366"></a>
+<span class="sourceLineNo">1367</span>  /**<a name="line.1367"></a>
+<span class="sourceLineNo">1368</span>   * Called after get the configured ReplicationPeerConfig for the specified peer<a name="line.1368"></a>
+<span class="sourceLineNo">1369</span>   * @param ctx<a name="line.1369"></a>
+<span class="sourceLineNo">1370</span>   * @param peerId a short name that identifies the peer<a name="line.1370"></a>
+<span class="sourceLineNo">1371</span>   */<a name="line.1371"></a>
+<span class="sourceLineNo">1372</span>  default void postGetReplicationPeerConfig(<a name="line.1372"></a>
+<span class="sourceLineNo">1373</span>      final ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx, String peerId) throws IOException {}<a name="line.1373"></a>
+<span class="sourceLineNo">1374</span><a name="line.1374"></a>
+<span class="sourceLineNo">1375</span>  /**<a name="line.1375"></a>
+<span class="sourceLineNo">1376</span>   * Called before update peerConfig for the specified peer<a name="line.1376"></a>
+<span class="sourceLineNo">1377</span>   * @param ctx<a name="line.1377"></a>
+<span class="sourceLineNo">1378</span>   * @param peerId a short name that identifies the peer<a name="line.1378"></a>
+<span class="sourceLineNo">1379</span>   */<a name="line.1379"></a>
+<span class="sourceLineNo">1380</span>  default void preUpdateReplicationPeerConfig(<a name="line.1380"></a>
+<span class="sourceLineNo">1381</span>      final ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx, String peerId,<a name="line.1381"></a>
+<span class="sourceLineNo">1382</span>      ReplicationPeerConfig peerConfig) throws IOException {}<a name="line.1382"></a>
+<span class="sourceLineNo">1383</span><a name="line.1383"></a>
+<span class="sourceLineNo">1384</span>  /**<a name="line.1384"></a>
+<span class="sourceLineNo">1385</span>   * Called after update peerConfig for the specified peer<a name="line.1385"></a>
+<span class="sourceLineNo">1386</span>   * @param ctx the environment to interact with the framework and master<a name="line.1386"></a>
+<span class="sourceLineNo">1387</span>   * @param peerId a short name that identifies the peer<a name="line.1387"></a>
+<span class="sourceLineNo">1388</span>   */<a name="line.1388"></a>
+<span class="sourceLineNo">1389</span>  default void postUpdateReplicationPeerConfig(<a name="line.1389"></a>
+<span class="sourceLineNo">1390</span>      final ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx, String peerId,<a name="line.1390"></a>
+<span class="sourceLineNo">1391</span>      ReplicationPeerConfig peerConfig) throws IOException {}<a name="line.1391"></a>
+<span class="sourceLineNo">1392</span><a name="line.1392"></a>
+<span class="sourceLineNo">1393</span>  /**<a name="line.1393"></a>
+<span class="sourceLineNo">1394</span>   * Called before list replication peers.<a name="line.1394"></a>
+<span class="sourceLineNo">1395</span>   * @param ctx the environment to interact with the framework and master<a name="line.1395"></a>
+<span class="sourceLineNo">1396</span>   * @param regex The regular expression to match peer id<a name="line.1396"></a>
+<span class="sourceLineNo">1397</span>   */<a name="line.1397"></a>
+<span class="sourceLineNo">1398</span>  default void preListReplicationPeers(final ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx,<a name="line.1398"></a>
+<span class="sourceLineNo">1399</span>      String regex) throws IOException {}<a name="line.1399"></a>
+<span class="sourceLineNo">1400</span><a name="line.1400"></a>
+<span class="sourceLineNo">1401</span>  /**<a name="line.1401"></a>
+<span class="sourceLineNo">1402</span>   * Called after list replication peers.<a name="line.1402"></a>
+<span class="sourceLineNo">1403</span>   * @param ctx the environment to interact with the framework and master<a name="line.1403"></a>
+<span class="sourceLineNo">1404</span>   * @param regex The regular expression to match peer id<a name="line.1404"></a>
+<span class="sourceLineNo">1405</span>   */<a name="line.1405"></a>
+<span class="sourceLineNo">1406</span>  default void postListReplicationPeers(final ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx,<a name="line.1406"></a>
+<span class="sourceLineNo">1407</span>      String regex) throws IOException {}<a name="line.1407"></a>
+<span class="sourceLineNo">1408</span><a name="line.1408"></a>
+<span class="sourceLineNo">1409</span>  /**<a name="line.1409"></a>
+<span class="sourceLineNo">1410</span>   * Called before new LockProcedure is queued.<a name="line.1410"></a>
+<span class="sourceLineNo">1411</span>   * @param ctx the environment to interact with the framework and master<a name="line.1411"></a>
+<span class="sourceLineNo">1412</span>   */<a name="line.1412"></a>
+<span class="sourceLineNo">1413</span>  default void preRequestLock(ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx, String namespace,<a name="line.1413"></a>
+<span class="sourceLineNo">1414</span>      TableName tableName, RegionInfo[] regionInfos, LockType type,<a name="line.1414"></a>
+<span class="sourceLineNo">1415</span>      String description) throws IOException {}<a name="line.1415"></a>
+<span class="sourceLineNo">1416</span><a name="line.1416"></a>
+<span class="sourceLineNo">1417</span>  /**<a name="line.1417"></a>
+<span class="sourceLineNo">1418</span>   * Called after new LockProcedure is queued.<a name="line.1418"></a>
+<span class="sourceLineNo">1419</span>   * @param ctx the environment to interact with the framework and master<a name="line.1419"></a>
+<span class="sourceLineNo">1420</span>   */<a name="line.1420"></a>
+<span class="sourceLineNo">1421</span>  default void postRequestLock(ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx, String namespace,<a name="line.1421"></a>
+<span class="sourceLineNo">1422</span>      TableName tableName, RegionInfo[] regionInfos, LockType type,<a name="line.1422"></a>
+<span class="sourceLineNo">1423</span>      String description) throws IOException {}<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>   * Called before heartbeat to a lock.<a name="line.1426"></a>
+<span class="sourceLineNo">1427</span>   * @param ctx the environment to interact with the framework and master<a name="line.1427"></a>
+<span class="sourceLineNo">1428</span>   * @param keepAlive if lock should be kept alive; lock will be released if set to false.<a name="line.1428"></a>
+<span class="sourceLineNo">1429</span>   */<a name="line.1429"></a>
+<span class="sourceLineNo">1430</span>  default void preLockHeartbeat(ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx,<a name="line.1430"></a>
+<span class="sourceLineNo">1431</span>      LockProcedure proc, boolean keepAlive) 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>   * Called after heartbeat to a lock.<a name="line.1434"></a>
+<span class="sourceLineNo">1435</span>   * @param ctx the environment to interact with the framework and master<a name="line.1435"></a>
+<span class="sourceLineNo">1436</span>   * @param keepAlive if lock was kept alive; lock was released if set to false.<a name="line.1436"></a>
+<span class="sourceLineNo">1437</span>   */<a name="line.1437"></a>
+<span class="sourceLineNo">1438</span>  default void postLockHeartbeat(ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx,<a name="line.1438"></a>
+<span class="sourceLineNo">1439</span>      LockProcedure proc, boolean keepAlive) 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>   * Called before list dead region servers.<a name="line.1442"></a>
+<span class="sourceLineNo">1443</span>   */<a name="line.1443"></a>
+<span class="sourceLineNo">1444</span>  default void preListDeadServers(ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.1444"></a>
+<span class="sourceLineNo">1445</span>      throws IOException {}<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>   * Called after list dead region servers.<a name="line.1448"></a>
+<span class="sourceLineNo">1449</span>   */<a name="line.1449"></a>
+<span class="sourceLineNo">1450</span>  default void postListDeadServers(ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<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>   * Called before clear dead region servers.<a name="line.1454"></a>
+<span class="sourceLineNo">1455</span>   */<a name="line.1455"></a>
+<span class="sourceLineNo">1456</span>  default void preClearDeadServers(ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.1456"></a>
+<span class="sourceLineNo">1457</span>      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>   * Called after clear dead region servers.<a name="line.1460"></a>
+<span class="sourceLineNo">1461</span>   */<a name="line.1461"></a>
+<span class="sourceLineNo">1462</span>  default void postClearDeadServers(ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.1462"></a>
+<span class="sourceLineNo">1463</span>      throws IOException {}<a name="line.1463"></a>
+<span class="sourceLineNo">1464</span>}<a name="line.1464"></a>
 
 
 


Mime
View raw message