hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mi...@apache.org
Subject [25/51] [partial] hbase-site git commit: Published site at a87d9560fcf4803bdd7a01b6e4ec21435d4e11b9.
Date Mon, 25 Jan 2016 17:04:09 GMT
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/f8d6f420/devapidocs/src-html/org/apache/hadoop/hbase/master/MasterCoprocessorHost.CoprocessorOperationWithResult.html
----------------------------------------------------------------------
diff --git a/devapidocs/src-html/org/apache/hadoop/hbase/master/MasterCoprocessorHost.CoprocessorOperationWithResult.html b/devapidocs/src-html/org/apache/hadoop/hbase/master/MasterCoprocessorHost.CoprocessorOperationWithResult.html
index b64c029..b4de8ca 100644
--- a/devapidocs/src-html/org/apache/hadoop/hbase/master/MasterCoprocessorHost.CoprocessorOperationWithResult.html
+++ b/devapidocs/src-html/org/apache/hadoop/hbase/master/MasterCoprocessorHost.CoprocessorOperationWithResult.html
@@ -737,426 +737,448 @@
 <span class="sourceLineNo">729</span>    });<a name="line.729"></a>
 <span class="sourceLineNo">730</span>  }<a name="line.730"></a>
 <span class="sourceLineNo">731</span><a name="line.731"></a>
-<span class="sourceLineNo">732</span>  public boolean preBalance() throws IOException {<a name="line.732"></a>
-<span class="sourceLineNo">733</span>    return execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.733"></a>
-<span class="sourceLineNo">734</span>      @Override<a name="line.734"></a>
-<span class="sourceLineNo">735</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.735"></a>
-<span class="sourceLineNo">736</span>          throws IOException {<a name="line.736"></a>
-<span class="sourceLineNo">737</span>        oserver.preBalance(ctx);<a name="line.737"></a>
-<span class="sourceLineNo">738</span>      }<a name="line.738"></a>
-<span class="sourceLineNo">739</span>    });<a name="line.739"></a>
-<span class="sourceLineNo">740</span>  }<a name="line.740"></a>
-<span class="sourceLineNo">741</span><a name="line.741"></a>
-<span class="sourceLineNo">742</span>  public void postBalance(final List&lt;RegionPlan&gt; plans) throws IOException {<a name="line.742"></a>
-<span class="sourceLineNo">743</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.743"></a>
-<span class="sourceLineNo">744</span>      @Override<a name="line.744"></a>
-<span class="sourceLineNo">745</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.745"></a>
-<span class="sourceLineNo">746</span>          throws IOException {<a name="line.746"></a>
-<span class="sourceLineNo">747</span>        oserver.postBalance(ctx, plans);<a name="line.747"></a>
-<span class="sourceLineNo">748</span>      }<a name="line.748"></a>
-<span class="sourceLineNo">749</span>    });<a name="line.749"></a>
-<span class="sourceLineNo">750</span>  }<a name="line.750"></a>
-<span class="sourceLineNo">751</span><a name="line.751"></a>
-<span class="sourceLineNo">752</span>  public boolean preBalanceSwitch(final boolean b) throws IOException {<a name="line.752"></a>
-<span class="sourceLineNo">753</span>    return execOperationWithResult(b, coprocessors.isEmpty() ? null :<a name="line.753"></a>
-<span class="sourceLineNo">754</span>        new CoprocessorOperationWithResult&lt;Boolean&gt;() {<a name="line.754"></a>
-<span class="sourceLineNo">755</span>      @Override<a name="line.755"></a>
-<span class="sourceLineNo">756</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.756"></a>
-<span class="sourceLineNo">757</span>          throws IOException {<a name="line.757"></a>
-<span class="sourceLineNo">758</span>        setResult(oserver.preBalanceSwitch(ctx, getResult()));<a name="line.758"></a>
-<span class="sourceLineNo">759</span>      }<a name="line.759"></a>
-<span class="sourceLineNo">760</span>    });<a name="line.760"></a>
-<span class="sourceLineNo">761</span>  }<a name="line.761"></a>
-<span class="sourceLineNo">762</span><a name="line.762"></a>
-<span class="sourceLineNo">763</span>  public void postBalanceSwitch(final boolean oldValue, final boolean newValue)<a name="line.763"></a>
-<span class="sourceLineNo">764</span>      throws IOException {<a name="line.764"></a>
+<span class="sourceLineNo">732</span>  public void preDispatchMerge(final HRegionInfo regionInfoA, final HRegionInfo regionInfoB)<a name="line.732"></a>
+<span class="sourceLineNo">733</span>      throws IOException {<a name="line.733"></a>
+<span class="sourceLineNo">734</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.734"></a>
+<span class="sourceLineNo">735</span>      @Override<a name="line.735"></a>
+<span class="sourceLineNo">736</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.736"></a>
+<span class="sourceLineNo">737</span>          throws IOException {<a name="line.737"></a>
+<span class="sourceLineNo">738</span>        oserver.preDispatchMerge(ctx, regionInfoA, regionInfoB);<a name="line.738"></a>
+<span class="sourceLineNo">739</span>      }<a name="line.739"></a>
+<span class="sourceLineNo">740</span>    });<a name="line.740"></a>
+<span class="sourceLineNo">741</span>  }<a name="line.741"></a>
+<span class="sourceLineNo">742</span><a name="line.742"></a>
+<span class="sourceLineNo">743</span>  public void postDispatchMerge(final HRegionInfo regionInfoA, final HRegionInfo regionInfoB)<a name="line.743"></a>
+<span class="sourceLineNo">744</span>      throws IOException {<a name="line.744"></a>
+<span class="sourceLineNo">745</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.745"></a>
+<span class="sourceLineNo">746</span>      @Override<a name="line.746"></a>
+<span class="sourceLineNo">747</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.747"></a>
+<span class="sourceLineNo">748</span>          throws IOException {<a name="line.748"></a>
+<span class="sourceLineNo">749</span>        oserver.postDispatchMerge(ctx, regionInfoA, regionInfoB);<a name="line.749"></a>
+<span class="sourceLineNo">750</span>      }<a name="line.750"></a>
+<span class="sourceLineNo">751</span>    });<a name="line.751"></a>
+<span class="sourceLineNo">752</span>  }<a name="line.752"></a>
+<span class="sourceLineNo">753</span><a name="line.753"></a>
+<span class="sourceLineNo">754</span>  public boolean preBalance() throws IOException {<a name="line.754"></a>
+<span class="sourceLineNo">755</span>    return execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.755"></a>
+<span class="sourceLineNo">756</span>      @Override<a name="line.756"></a>
+<span class="sourceLineNo">757</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.757"></a>
+<span class="sourceLineNo">758</span>          throws IOException {<a name="line.758"></a>
+<span class="sourceLineNo">759</span>        oserver.preBalance(ctx);<a name="line.759"></a>
+<span class="sourceLineNo">760</span>      }<a name="line.760"></a>
+<span class="sourceLineNo">761</span>    });<a name="line.761"></a>
+<span class="sourceLineNo">762</span>  }<a name="line.762"></a>
+<span class="sourceLineNo">763</span><a name="line.763"></a>
+<span class="sourceLineNo">764</span>  public void postBalance(final List&lt;RegionPlan&gt; plans) throws IOException {<a name="line.764"></a>
 <span class="sourceLineNo">765</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.765"></a>
 <span class="sourceLineNo">766</span>      @Override<a name="line.766"></a>
 <span class="sourceLineNo">767</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.767"></a>
 <span class="sourceLineNo">768</span>          throws IOException {<a name="line.768"></a>
-<span class="sourceLineNo">769</span>        oserver.postBalanceSwitch(ctx, oldValue, newValue);<a name="line.769"></a>
+<span class="sourceLineNo">769</span>        oserver.postBalance(ctx, plans);<a name="line.769"></a>
 <span class="sourceLineNo">770</span>      }<a name="line.770"></a>
 <span class="sourceLineNo">771</span>    });<a name="line.771"></a>
 <span class="sourceLineNo">772</span>  }<a name="line.772"></a>
 <span class="sourceLineNo">773</span><a name="line.773"></a>
-<span class="sourceLineNo">774</span>  public void preShutdown() throws IOException {<a name="line.774"></a>
-<span class="sourceLineNo">775</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.775"></a>
-<span class="sourceLineNo">776</span>      @Override<a name="line.776"></a>
-<span class="sourceLineNo">777</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.777"></a>
-<span class="sourceLineNo">778</span>          throws IOException {<a name="line.778"></a>
-<span class="sourceLineNo">779</span>        oserver.preShutdown(ctx);<a name="line.779"></a>
-<span class="sourceLineNo">780</span>      }<a name="line.780"></a>
-<span class="sourceLineNo">781</span>      @Override<a name="line.781"></a>
-<span class="sourceLineNo">782</span>      public void postEnvCall(MasterEnvironment env) {<a name="line.782"></a>
-<span class="sourceLineNo">783</span>        // invoke coprocessor stop method<a name="line.783"></a>
-<span class="sourceLineNo">784</span>        shutdown(env);<a name="line.784"></a>
-<span class="sourceLineNo">785</span>      }<a name="line.785"></a>
-<span class="sourceLineNo">786</span>    });<a name="line.786"></a>
-<span class="sourceLineNo">787</span>  }<a name="line.787"></a>
-<span class="sourceLineNo">788</span><a name="line.788"></a>
-<span class="sourceLineNo">789</span>  public void preStopMaster() throws IOException {<a name="line.789"></a>
-<span class="sourceLineNo">790</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.790"></a>
-<span class="sourceLineNo">791</span>      @Override<a name="line.791"></a>
-<span class="sourceLineNo">792</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.792"></a>
-<span class="sourceLineNo">793</span>          throws IOException {<a name="line.793"></a>
-<span class="sourceLineNo">794</span>        oserver.preStopMaster(ctx);<a name="line.794"></a>
-<span class="sourceLineNo">795</span>      }<a name="line.795"></a>
-<span class="sourceLineNo">796</span>      @Override<a name="line.796"></a>
-<span class="sourceLineNo">797</span>      public void postEnvCall(MasterEnvironment env) {<a name="line.797"></a>
-<span class="sourceLineNo">798</span>        // invoke coprocessor stop method<a name="line.798"></a>
-<span class="sourceLineNo">799</span>        shutdown(env);<a name="line.799"></a>
-<span class="sourceLineNo">800</span>      }<a name="line.800"></a>
-<span class="sourceLineNo">801</span>    });<a name="line.801"></a>
-<span class="sourceLineNo">802</span>  }<a name="line.802"></a>
-<span class="sourceLineNo">803</span><a name="line.803"></a>
-<span class="sourceLineNo">804</span>  public void preMasterInitialization() throws IOException {<a name="line.804"></a>
-<span class="sourceLineNo">805</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.805"></a>
-<span class="sourceLineNo">806</span>      @Override<a name="line.806"></a>
-<span class="sourceLineNo">807</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.807"></a>
-<span class="sourceLineNo">808</span>          throws IOException {<a name="line.808"></a>
-<span class="sourceLineNo">809</span>        oserver.preMasterInitialization(ctx);<a name="line.809"></a>
-<span class="sourceLineNo">810</span>      }<a name="line.810"></a>
-<span class="sourceLineNo">811</span>    });<a name="line.811"></a>
-<span class="sourceLineNo">812</span>  }<a name="line.812"></a>
-<span class="sourceLineNo">813</span><a name="line.813"></a>
-<span class="sourceLineNo">814</span>  public void postStartMaster() throws IOException {<a name="line.814"></a>
-<span class="sourceLineNo">815</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.815"></a>
-<span class="sourceLineNo">816</span>      @Override<a name="line.816"></a>
-<span class="sourceLineNo">817</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.817"></a>
-<span class="sourceLineNo">818</span>          throws IOException {<a name="line.818"></a>
-<span class="sourceLineNo">819</span>        oserver.postStartMaster(ctx);<a name="line.819"></a>
-<span class="sourceLineNo">820</span>      }<a name="line.820"></a>
-<span class="sourceLineNo">821</span>    });<a name="line.821"></a>
-<span class="sourceLineNo">822</span>  }<a name="line.822"></a>
-<span class="sourceLineNo">823</span><a name="line.823"></a>
-<span class="sourceLineNo">824</span>  public void preSnapshot(final SnapshotDescription snapshot,<a name="line.824"></a>
-<span class="sourceLineNo">825</span>      final HTableDescriptor hTableDescriptor) throws IOException {<a name="line.825"></a>
-<span class="sourceLineNo">826</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.826"></a>
-<span class="sourceLineNo">827</span>      @Override<a name="line.827"></a>
-<span class="sourceLineNo">828</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.828"></a>
-<span class="sourceLineNo">829</span>          throws IOException {<a name="line.829"></a>
-<span class="sourceLineNo">830</span>        oserver.preSnapshot(ctx, snapshot, hTableDescriptor);<a name="line.830"></a>
-<span class="sourceLineNo">831</span>      }<a name="line.831"></a>
-<span class="sourceLineNo">832</span>    });<a name="line.832"></a>
-<span class="sourceLineNo">833</span>  }<a name="line.833"></a>
-<span class="sourceLineNo">834</span><a name="line.834"></a>
-<span class="sourceLineNo">835</span>  public void postSnapshot(final SnapshotDescription snapshot,<a name="line.835"></a>
-<span class="sourceLineNo">836</span>      final HTableDescriptor hTableDescriptor) throws IOException {<a name="line.836"></a>
+<span class="sourceLineNo">774</span>  public boolean preBalanceSwitch(final boolean b) throws IOException {<a name="line.774"></a>
+<span class="sourceLineNo">775</span>    return execOperationWithResult(b, coprocessors.isEmpty() ? null :<a name="line.775"></a>
+<span class="sourceLineNo">776</span>        new CoprocessorOperationWithResult&lt;Boolean&gt;() {<a name="line.776"></a>
+<span class="sourceLineNo">777</span>      @Override<a name="line.777"></a>
+<span class="sourceLineNo">778</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.778"></a>
+<span class="sourceLineNo">779</span>          throws IOException {<a name="line.779"></a>
+<span class="sourceLineNo">780</span>        setResult(oserver.preBalanceSwitch(ctx, getResult()));<a name="line.780"></a>
+<span class="sourceLineNo">781</span>      }<a name="line.781"></a>
+<span class="sourceLineNo">782</span>    });<a name="line.782"></a>
+<span class="sourceLineNo">783</span>  }<a name="line.783"></a>
+<span class="sourceLineNo">784</span><a name="line.784"></a>
+<span class="sourceLineNo">785</span>  public void postBalanceSwitch(final boolean oldValue, final boolean newValue)<a name="line.785"></a>
+<span class="sourceLineNo">786</span>      throws IOException {<a name="line.786"></a>
+<span class="sourceLineNo">787</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.787"></a>
+<span class="sourceLineNo">788</span>      @Override<a name="line.788"></a>
+<span class="sourceLineNo">789</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.789"></a>
+<span class="sourceLineNo">790</span>          throws IOException {<a name="line.790"></a>
+<span class="sourceLineNo">791</span>        oserver.postBalanceSwitch(ctx, oldValue, newValue);<a name="line.791"></a>
+<span class="sourceLineNo">792</span>      }<a name="line.792"></a>
+<span class="sourceLineNo">793</span>    });<a name="line.793"></a>
+<span class="sourceLineNo">794</span>  }<a name="line.794"></a>
+<span class="sourceLineNo">795</span><a name="line.795"></a>
+<span class="sourceLineNo">796</span>  public void preShutdown() throws IOException {<a name="line.796"></a>
+<span class="sourceLineNo">797</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.797"></a>
+<span class="sourceLineNo">798</span>      @Override<a name="line.798"></a>
+<span class="sourceLineNo">799</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.799"></a>
+<span class="sourceLineNo">800</span>          throws IOException {<a name="line.800"></a>
+<span class="sourceLineNo">801</span>        oserver.preShutdown(ctx);<a name="line.801"></a>
+<span class="sourceLineNo">802</span>      }<a name="line.802"></a>
+<span class="sourceLineNo">803</span>      @Override<a name="line.803"></a>
+<span class="sourceLineNo">804</span>      public void postEnvCall(MasterEnvironment env) {<a name="line.804"></a>
+<span class="sourceLineNo">805</span>        // invoke coprocessor stop method<a name="line.805"></a>
+<span class="sourceLineNo">806</span>        shutdown(env);<a name="line.806"></a>
+<span class="sourceLineNo">807</span>      }<a name="line.807"></a>
+<span class="sourceLineNo">808</span>    });<a name="line.808"></a>
+<span class="sourceLineNo">809</span>  }<a name="line.809"></a>
+<span class="sourceLineNo">810</span><a name="line.810"></a>
+<span class="sourceLineNo">811</span>  public void preStopMaster() throws IOException {<a name="line.811"></a>
+<span class="sourceLineNo">812</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.812"></a>
+<span class="sourceLineNo">813</span>      @Override<a name="line.813"></a>
+<span class="sourceLineNo">814</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.814"></a>
+<span class="sourceLineNo">815</span>          throws IOException {<a name="line.815"></a>
+<span class="sourceLineNo">816</span>        oserver.preStopMaster(ctx);<a name="line.816"></a>
+<span class="sourceLineNo">817</span>      }<a name="line.817"></a>
+<span class="sourceLineNo">818</span>      @Override<a name="line.818"></a>
+<span class="sourceLineNo">819</span>      public void postEnvCall(MasterEnvironment env) {<a name="line.819"></a>
+<span class="sourceLineNo">820</span>        // invoke coprocessor stop method<a name="line.820"></a>
+<span class="sourceLineNo">821</span>        shutdown(env);<a name="line.821"></a>
+<span class="sourceLineNo">822</span>      }<a name="line.822"></a>
+<span class="sourceLineNo">823</span>    });<a name="line.823"></a>
+<span class="sourceLineNo">824</span>  }<a name="line.824"></a>
+<span class="sourceLineNo">825</span><a name="line.825"></a>
+<span class="sourceLineNo">826</span>  public void preMasterInitialization() throws IOException {<a name="line.826"></a>
+<span class="sourceLineNo">827</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.827"></a>
+<span class="sourceLineNo">828</span>      @Override<a name="line.828"></a>
+<span class="sourceLineNo">829</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.829"></a>
+<span class="sourceLineNo">830</span>          throws IOException {<a name="line.830"></a>
+<span class="sourceLineNo">831</span>        oserver.preMasterInitialization(ctx);<a name="line.831"></a>
+<span class="sourceLineNo">832</span>      }<a name="line.832"></a>
+<span class="sourceLineNo">833</span>    });<a name="line.833"></a>
+<span class="sourceLineNo">834</span>  }<a name="line.834"></a>
+<span class="sourceLineNo">835</span><a name="line.835"></a>
+<span class="sourceLineNo">836</span>  public void postStartMaster() throws IOException {<a name="line.836"></a>
 <span class="sourceLineNo">837</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.837"></a>
 <span class="sourceLineNo">838</span>      @Override<a name="line.838"></a>
 <span class="sourceLineNo">839</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.839"></a>
 <span class="sourceLineNo">840</span>          throws IOException {<a name="line.840"></a>
-<span class="sourceLineNo">841</span>        oserver.postSnapshot(ctx, snapshot, hTableDescriptor);<a name="line.841"></a>
+<span class="sourceLineNo">841</span>        oserver.postStartMaster(ctx);<a name="line.841"></a>
 <span class="sourceLineNo">842</span>      }<a name="line.842"></a>
 <span class="sourceLineNo">843</span>    });<a name="line.843"></a>
 <span class="sourceLineNo">844</span>  }<a name="line.844"></a>
 <span class="sourceLineNo">845</span><a name="line.845"></a>
-<span class="sourceLineNo">846</span>  public void preListSnapshot(final SnapshotDescription snapshot) throws IOException {<a name="line.846"></a>
-<span class="sourceLineNo">847</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.847"></a>
-<span class="sourceLineNo">848</span>      @Override<a name="line.848"></a>
-<span class="sourceLineNo">849</span>      public void call(MasterObserver observer, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.849"></a>
-<span class="sourceLineNo">850</span>          throws IOException {<a name="line.850"></a>
-<span class="sourceLineNo">851</span>        observer.preListSnapshot(ctx, snapshot);<a name="line.851"></a>
-<span class="sourceLineNo">852</span>      }<a name="line.852"></a>
-<span class="sourceLineNo">853</span>    });<a name="line.853"></a>
-<span class="sourceLineNo">854</span>  }<a name="line.854"></a>
-<span class="sourceLineNo">855</span><a name="line.855"></a>
-<span class="sourceLineNo">856</span>  public void postListSnapshot(final SnapshotDescription snapshot) throws IOException {<a name="line.856"></a>
-<span class="sourceLineNo">857</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.857"></a>
-<span class="sourceLineNo">858</span>      @Override<a name="line.858"></a>
-<span class="sourceLineNo">859</span>      public void call(MasterObserver observer, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.859"></a>
-<span class="sourceLineNo">860</span>          throws IOException {<a name="line.860"></a>
-<span class="sourceLineNo">861</span>        observer.postListSnapshot(ctx, snapshot);<a name="line.861"></a>
-<span class="sourceLineNo">862</span>      }<a name="line.862"></a>
-<span class="sourceLineNo">863</span>    });<a name="line.863"></a>
-<span class="sourceLineNo">864</span>  }<a name="line.864"></a>
-<span class="sourceLineNo">865</span><a name="line.865"></a>
-<span class="sourceLineNo">866</span>  public void preCloneSnapshot(final SnapshotDescription snapshot,<a name="line.866"></a>
-<span class="sourceLineNo">867</span>      final HTableDescriptor hTableDescriptor) throws IOException {<a name="line.867"></a>
-<span class="sourceLineNo">868</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.868"></a>
-<span class="sourceLineNo">869</span>      @Override<a name="line.869"></a>
-<span class="sourceLineNo">870</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.870"></a>
-<span class="sourceLineNo">871</span>          throws IOException {<a name="line.871"></a>
-<span class="sourceLineNo">872</span>        oserver.preCloneSnapshot(ctx, snapshot, hTableDescriptor);<a name="line.872"></a>
-<span class="sourceLineNo">873</span>      }<a name="line.873"></a>
-<span class="sourceLineNo">874</span>    });<a name="line.874"></a>
-<span class="sourceLineNo">875</span>  }<a name="line.875"></a>
-<span class="sourceLineNo">876</span><a name="line.876"></a>
-<span class="sourceLineNo">877</span>  public void postCloneSnapshot(final SnapshotDescription snapshot,<a name="line.877"></a>
-<span class="sourceLineNo">878</span>      final HTableDescriptor hTableDescriptor) throws IOException {<a name="line.878"></a>
+<span class="sourceLineNo">846</span>  public void preSnapshot(final SnapshotDescription snapshot,<a name="line.846"></a>
+<span class="sourceLineNo">847</span>      final HTableDescriptor hTableDescriptor) throws IOException {<a name="line.847"></a>
+<span class="sourceLineNo">848</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.848"></a>
+<span class="sourceLineNo">849</span>      @Override<a name="line.849"></a>
+<span class="sourceLineNo">850</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.850"></a>
+<span class="sourceLineNo">851</span>          throws IOException {<a name="line.851"></a>
+<span class="sourceLineNo">852</span>        oserver.preSnapshot(ctx, snapshot, hTableDescriptor);<a name="line.852"></a>
+<span class="sourceLineNo">853</span>      }<a name="line.853"></a>
+<span class="sourceLineNo">854</span>    });<a name="line.854"></a>
+<span class="sourceLineNo">855</span>  }<a name="line.855"></a>
+<span class="sourceLineNo">856</span><a name="line.856"></a>
+<span class="sourceLineNo">857</span>  public void postSnapshot(final SnapshotDescription snapshot,<a name="line.857"></a>
+<span class="sourceLineNo">858</span>      final HTableDescriptor hTableDescriptor) throws IOException {<a name="line.858"></a>
+<span class="sourceLineNo">859</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.859"></a>
+<span class="sourceLineNo">860</span>      @Override<a name="line.860"></a>
+<span class="sourceLineNo">861</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.861"></a>
+<span class="sourceLineNo">862</span>          throws IOException {<a name="line.862"></a>
+<span class="sourceLineNo">863</span>        oserver.postSnapshot(ctx, snapshot, hTableDescriptor);<a name="line.863"></a>
+<span class="sourceLineNo">864</span>      }<a name="line.864"></a>
+<span class="sourceLineNo">865</span>    });<a name="line.865"></a>
+<span class="sourceLineNo">866</span>  }<a name="line.866"></a>
+<span class="sourceLineNo">867</span><a name="line.867"></a>
+<span class="sourceLineNo">868</span>  public void preListSnapshot(final SnapshotDescription snapshot) throws IOException {<a name="line.868"></a>
+<span class="sourceLineNo">869</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.869"></a>
+<span class="sourceLineNo">870</span>      @Override<a name="line.870"></a>
+<span class="sourceLineNo">871</span>      public void call(MasterObserver observer, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.871"></a>
+<span class="sourceLineNo">872</span>          throws IOException {<a name="line.872"></a>
+<span class="sourceLineNo">873</span>        observer.preListSnapshot(ctx, snapshot);<a name="line.873"></a>
+<span class="sourceLineNo">874</span>      }<a name="line.874"></a>
+<span class="sourceLineNo">875</span>    });<a name="line.875"></a>
+<span class="sourceLineNo">876</span>  }<a name="line.876"></a>
+<span class="sourceLineNo">877</span><a name="line.877"></a>
+<span class="sourceLineNo">878</span>  public void postListSnapshot(final SnapshotDescription snapshot) throws IOException {<a name="line.878"></a>
 <span class="sourceLineNo">879</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.879"></a>
 <span class="sourceLineNo">880</span>      @Override<a name="line.880"></a>
-<span class="sourceLineNo">881</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.881"></a>
+<span class="sourceLineNo">881</span>      public void call(MasterObserver observer, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.881"></a>
 <span class="sourceLineNo">882</span>          throws IOException {<a name="line.882"></a>
-<span class="sourceLineNo">883</span>        oserver.postCloneSnapshot(ctx, snapshot, hTableDescriptor);<a name="line.883"></a>
+<span class="sourceLineNo">883</span>        observer.postListSnapshot(ctx, snapshot);<a name="line.883"></a>
 <span class="sourceLineNo">884</span>      }<a name="line.884"></a>
 <span class="sourceLineNo">885</span>    });<a name="line.885"></a>
 <span class="sourceLineNo">886</span>  }<a name="line.886"></a>
 <span class="sourceLineNo">887</span><a name="line.887"></a>
-<span class="sourceLineNo">888</span>  public void preRestoreSnapshot(final SnapshotDescription snapshot,<a name="line.888"></a>
+<span class="sourceLineNo">888</span>  public void preCloneSnapshot(final SnapshotDescription snapshot,<a name="line.888"></a>
 <span class="sourceLineNo">889</span>      final HTableDescriptor hTableDescriptor) throws IOException {<a name="line.889"></a>
 <span class="sourceLineNo">890</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.890"></a>
 <span class="sourceLineNo">891</span>      @Override<a name="line.891"></a>
 <span class="sourceLineNo">892</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.892"></a>
 <span class="sourceLineNo">893</span>          throws IOException {<a name="line.893"></a>
-<span class="sourceLineNo">894</span>        oserver.preRestoreSnapshot(ctx, snapshot, hTableDescriptor);<a name="line.894"></a>
+<span class="sourceLineNo">894</span>        oserver.preCloneSnapshot(ctx, snapshot, hTableDescriptor);<a name="line.894"></a>
 <span class="sourceLineNo">895</span>      }<a name="line.895"></a>
 <span class="sourceLineNo">896</span>    });<a name="line.896"></a>
 <span class="sourceLineNo">897</span>  }<a name="line.897"></a>
 <span class="sourceLineNo">898</span><a name="line.898"></a>
-<span class="sourceLineNo">899</span>  public void postRestoreSnapshot(final SnapshotDescription snapshot,<a name="line.899"></a>
+<span class="sourceLineNo">899</span>  public void postCloneSnapshot(final SnapshotDescription snapshot,<a name="line.899"></a>
 <span class="sourceLineNo">900</span>      final HTableDescriptor hTableDescriptor) throws IOException {<a name="line.900"></a>
 <span class="sourceLineNo">901</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.901"></a>
 <span class="sourceLineNo">902</span>      @Override<a name="line.902"></a>
 <span class="sourceLineNo">903</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.903"></a>
 <span class="sourceLineNo">904</span>          throws IOException {<a name="line.904"></a>
-<span class="sourceLineNo">905</span>        oserver.postRestoreSnapshot(ctx, snapshot, hTableDescriptor);<a name="line.905"></a>
+<span class="sourceLineNo">905</span>        oserver.postCloneSnapshot(ctx, snapshot, hTableDescriptor);<a name="line.905"></a>
 <span class="sourceLineNo">906</span>      }<a name="line.906"></a>
 <span class="sourceLineNo">907</span>    });<a name="line.907"></a>
 <span class="sourceLineNo">908</span>  }<a name="line.908"></a>
 <span class="sourceLineNo">909</span><a name="line.909"></a>
-<span class="sourceLineNo">910</span>  public void preDeleteSnapshot(final SnapshotDescription snapshot) throws IOException {<a name="line.910"></a>
-<span class="sourceLineNo">911</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.911"></a>
-<span class="sourceLineNo">912</span>      @Override<a name="line.912"></a>
-<span class="sourceLineNo">913</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.913"></a>
-<span class="sourceLineNo">914</span>          throws IOException {<a name="line.914"></a>
-<span class="sourceLineNo">915</span>        oserver.preDeleteSnapshot(ctx, snapshot);<a name="line.915"></a>
-<span class="sourceLineNo">916</span>      }<a name="line.916"></a>
-<span class="sourceLineNo">917</span>    });<a name="line.917"></a>
-<span class="sourceLineNo">918</span>  }<a name="line.918"></a>
-<span class="sourceLineNo">919</span><a name="line.919"></a>
-<span class="sourceLineNo">920</span>  public void postDeleteSnapshot(final SnapshotDescription snapshot) throws IOException {<a name="line.920"></a>
-<span class="sourceLineNo">921</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.921"></a>
-<span class="sourceLineNo">922</span>      @Override<a name="line.922"></a>
-<span class="sourceLineNo">923</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.923"></a>
-<span class="sourceLineNo">924</span>          throws IOException {<a name="line.924"></a>
-<span class="sourceLineNo">925</span>        oserver.postDeleteSnapshot(ctx, snapshot);<a name="line.925"></a>
-<span class="sourceLineNo">926</span>      }<a name="line.926"></a>
-<span class="sourceLineNo">927</span>    });<a name="line.927"></a>
-<span class="sourceLineNo">928</span>  }<a name="line.928"></a>
-<span class="sourceLineNo">929</span><a name="line.929"></a>
-<span class="sourceLineNo">930</span>  public boolean preGetTableDescriptors(final List&lt;TableName&gt; tableNamesList,<a name="line.930"></a>
-<span class="sourceLineNo">931</span>      final List&lt;HTableDescriptor&gt; descriptors, final String regex) throws IOException {<a name="line.931"></a>
-<span class="sourceLineNo">932</span>    return execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.932"></a>
-<span class="sourceLineNo">933</span>      @Override<a name="line.933"></a>
-<span class="sourceLineNo">934</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.934"></a>
-<span class="sourceLineNo">935</span>          throws IOException {<a name="line.935"></a>
-<span class="sourceLineNo">936</span>        oserver.preGetTableDescriptors(ctx, tableNamesList, descriptors, regex);<a name="line.936"></a>
-<span class="sourceLineNo">937</span>      }<a name="line.937"></a>
-<span class="sourceLineNo">938</span>    });<a name="line.938"></a>
-<span class="sourceLineNo">939</span>  }<a name="line.939"></a>
-<span class="sourceLineNo">940</span><a name="line.940"></a>
-<span class="sourceLineNo">941</span>  public void postGetTableDescriptors(final List&lt;TableName&gt; tableNamesList,<a name="line.941"></a>
-<span class="sourceLineNo">942</span>      final List&lt;HTableDescriptor&gt; descriptors, final String regex) throws IOException {<a name="line.942"></a>
+<span class="sourceLineNo">910</span>  public void preRestoreSnapshot(final SnapshotDescription snapshot,<a name="line.910"></a>
+<span class="sourceLineNo">911</span>      final HTableDescriptor hTableDescriptor) throws IOException {<a name="line.911"></a>
+<span class="sourceLineNo">912</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.912"></a>
+<span class="sourceLineNo">913</span>      @Override<a name="line.913"></a>
+<span class="sourceLineNo">914</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.914"></a>
+<span class="sourceLineNo">915</span>          throws IOException {<a name="line.915"></a>
+<span class="sourceLineNo">916</span>        oserver.preRestoreSnapshot(ctx, snapshot, hTableDescriptor);<a name="line.916"></a>
+<span class="sourceLineNo">917</span>      }<a name="line.917"></a>
+<span class="sourceLineNo">918</span>    });<a name="line.918"></a>
+<span class="sourceLineNo">919</span>  }<a name="line.919"></a>
+<span class="sourceLineNo">920</span><a name="line.920"></a>
+<span class="sourceLineNo">921</span>  public void postRestoreSnapshot(final SnapshotDescription snapshot,<a name="line.921"></a>
+<span class="sourceLineNo">922</span>      final HTableDescriptor hTableDescriptor) throws IOException {<a name="line.922"></a>
+<span class="sourceLineNo">923</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.923"></a>
+<span class="sourceLineNo">924</span>      @Override<a name="line.924"></a>
+<span class="sourceLineNo">925</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.925"></a>
+<span class="sourceLineNo">926</span>          throws IOException {<a name="line.926"></a>
+<span class="sourceLineNo">927</span>        oserver.postRestoreSnapshot(ctx, snapshot, hTableDescriptor);<a name="line.927"></a>
+<span class="sourceLineNo">928</span>      }<a name="line.928"></a>
+<span class="sourceLineNo">929</span>    });<a name="line.929"></a>
+<span class="sourceLineNo">930</span>  }<a name="line.930"></a>
+<span class="sourceLineNo">931</span><a name="line.931"></a>
+<span class="sourceLineNo">932</span>  public void preDeleteSnapshot(final SnapshotDescription snapshot) throws IOException {<a name="line.932"></a>
+<span class="sourceLineNo">933</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.933"></a>
+<span class="sourceLineNo">934</span>      @Override<a name="line.934"></a>
+<span class="sourceLineNo">935</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.935"></a>
+<span class="sourceLineNo">936</span>          throws IOException {<a name="line.936"></a>
+<span class="sourceLineNo">937</span>        oserver.preDeleteSnapshot(ctx, snapshot);<a name="line.937"></a>
+<span class="sourceLineNo">938</span>      }<a name="line.938"></a>
+<span class="sourceLineNo">939</span>    });<a name="line.939"></a>
+<span class="sourceLineNo">940</span>  }<a name="line.940"></a>
+<span class="sourceLineNo">941</span><a name="line.941"></a>
+<span class="sourceLineNo">942</span>  public void postDeleteSnapshot(final SnapshotDescription snapshot) throws IOException {<a name="line.942"></a>
 <span class="sourceLineNo">943</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.943"></a>
 <span class="sourceLineNo">944</span>      @Override<a name="line.944"></a>
 <span class="sourceLineNo">945</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.945"></a>
 <span class="sourceLineNo">946</span>          throws IOException {<a name="line.946"></a>
-<span class="sourceLineNo">947</span>        oserver.postGetTableDescriptors(ctx, tableNamesList, descriptors, regex);<a name="line.947"></a>
+<span class="sourceLineNo">947</span>        oserver.postDeleteSnapshot(ctx, snapshot);<a name="line.947"></a>
 <span class="sourceLineNo">948</span>      }<a name="line.948"></a>
 <span class="sourceLineNo">949</span>    });<a name="line.949"></a>
 <span class="sourceLineNo">950</span>  }<a name="line.950"></a>
 <span class="sourceLineNo">951</span><a name="line.951"></a>
-<span class="sourceLineNo">952</span>  public boolean preGetTableNames(final List&lt;HTableDescriptor&gt; descriptors,<a name="line.952"></a>
-<span class="sourceLineNo">953</span>      final String regex) throws IOException {<a name="line.953"></a>
+<span class="sourceLineNo">952</span>  public boolean preGetTableDescriptors(final List&lt;TableName&gt; tableNamesList,<a name="line.952"></a>
+<span class="sourceLineNo">953</span>      final List&lt;HTableDescriptor&gt; descriptors, final String regex) throws IOException {<a name="line.953"></a>
 <span class="sourceLineNo">954</span>    return execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.954"></a>
 <span class="sourceLineNo">955</span>      @Override<a name="line.955"></a>
 <span class="sourceLineNo">956</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.956"></a>
 <span class="sourceLineNo">957</span>          throws IOException {<a name="line.957"></a>
-<span class="sourceLineNo">958</span>        oserver.preGetTableNames(ctx, descriptors, regex);<a name="line.958"></a>
+<span class="sourceLineNo">958</span>        oserver.preGetTableDescriptors(ctx, tableNamesList, descriptors, regex);<a name="line.958"></a>
 <span class="sourceLineNo">959</span>      }<a name="line.959"></a>
 <span class="sourceLineNo">960</span>    });<a name="line.960"></a>
 <span class="sourceLineNo">961</span>  }<a name="line.961"></a>
 <span class="sourceLineNo">962</span><a name="line.962"></a>
-<span class="sourceLineNo">963</span>  public void postGetTableNames(final List&lt;HTableDescriptor&gt; descriptors,<a name="line.963"></a>
-<span class="sourceLineNo">964</span>      final String regex) throws IOException {<a name="line.964"></a>
+<span class="sourceLineNo">963</span>  public void postGetTableDescriptors(final List&lt;TableName&gt; tableNamesList,<a name="line.963"></a>
+<span class="sourceLineNo">964</span>      final List&lt;HTableDescriptor&gt; descriptors, final String regex) throws IOException {<a name="line.964"></a>
 <span class="sourceLineNo">965</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.965"></a>
 <span class="sourceLineNo">966</span>      @Override<a name="line.966"></a>
 <span class="sourceLineNo">967</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.967"></a>
 <span class="sourceLineNo">968</span>          throws IOException {<a name="line.968"></a>
-<span class="sourceLineNo">969</span>        oserver.postGetTableNames(ctx, descriptors, regex);<a name="line.969"></a>
+<span class="sourceLineNo">969</span>        oserver.postGetTableDescriptors(ctx, tableNamesList, descriptors, regex);<a name="line.969"></a>
 <span class="sourceLineNo">970</span>      }<a name="line.970"></a>
 <span class="sourceLineNo">971</span>    });<a name="line.971"></a>
 <span class="sourceLineNo">972</span>  }<a name="line.972"></a>
 <span class="sourceLineNo">973</span><a name="line.973"></a>
-<span class="sourceLineNo">974</span>  public void preTableFlush(final TableName tableName) throws IOException {<a name="line.974"></a>
-<span class="sourceLineNo">975</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.975"></a>
-<span class="sourceLineNo">976</span>      @Override<a name="line.976"></a>
-<span class="sourceLineNo">977</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.977"></a>
-<span class="sourceLineNo">978</span>          throws IOException {<a name="line.978"></a>
-<span class="sourceLineNo">979</span>        oserver.preTableFlush(ctx, tableName);<a name="line.979"></a>
-<span class="sourceLineNo">980</span>      }<a name="line.980"></a>
-<span class="sourceLineNo">981</span>    });<a name="line.981"></a>
-<span class="sourceLineNo">982</span>  }<a name="line.982"></a>
-<span class="sourceLineNo">983</span><a name="line.983"></a>
-<span class="sourceLineNo">984</span>  public void postTableFlush(final TableName tableName) throws IOException {<a name="line.984"></a>
-<span class="sourceLineNo">985</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.985"></a>
-<span class="sourceLineNo">986</span>      @Override<a name="line.986"></a>
-<span class="sourceLineNo">987</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.987"></a>
-<span class="sourceLineNo">988</span>          throws IOException {<a name="line.988"></a>
-<span class="sourceLineNo">989</span>        oserver.postTableFlush(ctx, tableName);<a name="line.989"></a>
-<span class="sourceLineNo">990</span>      }<a name="line.990"></a>
-<span class="sourceLineNo">991</span>    });<a name="line.991"></a>
-<span class="sourceLineNo">992</span>  }<a name="line.992"></a>
-<span class="sourceLineNo">993</span><a name="line.993"></a>
-<span class="sourceLineNo">994</span>  public void preSetUserQuota(final String user, final Quotas quotas) throws IOException {<a name="line.994"></a>
-<span class="sourceLineNo">995</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.995"></a>
-<span class="sourceLineNo">996</span>      @Override<a name="line.996"></a>
-<span class="sourceLineNo">997</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.997"></a>
-<span class="sourceLineNo">998</span>          throws IOException {<a name="line.998"></a>
-<span class="sourceLineNo">999</span>        oserver.preSetUserQuota(ctx, user, quotas);<a name="line.999"></a>
-<span class="sourceLineNo">1000</span>      }<a name="line.1000"></a>
-<span class="sourceLineNo">1001</span>    });<a name="line.1001"></a>
-<span class="sourceLineNo">1002</span>  }<a name="line.1002"></a>
-<span class="sourceLineNo">1003</span><a name="line.1003"></a>
-<span class="sourceLineNo">1004</span>  public void postSetUserQuota(final String user, final Quotas quotas) throws IOException {<a name="line.1004"></a>
-<span class="sourceLineNo">1005</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.1005"></a>
-<span class="sourceLineNo">1006</span>      @Override<a name="line.1006"></a>
-<span class="sourceLineNo">1007</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.1007"></a>
-<span class="sourceLineNo">1008</span>          throws IOException {<a name="line.1008"></a>
-<span class="sourceLineNo">1009</span>        oserver.postSetUserQuota(ctx, user, quotas);<a name="line.1009"></a>
-<span class="sourceLineNo">1010</span>      }<a name="line.1010"></a>
-<span class="sourceLineNo">1011</span>    });<a name="line.1011"></a>
-<span class="sourceLineNo">1012</span>  }<a name="line.1012"></a>
-<span class="sourceLineNo">1013</span><a name="line.1013"></a>
-<span class="sourceLineNo">1014</span>  public void preSetUserQuota(final String user, final TableName table, final Quotas quotas)<a name="line.1014"></a>
-<span class="sourceLineNo">1015</span>      throws IOException {<a name="line.1015"></a>
-<span class="sourceLineNo">1016</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.1016"></a>
-<span class="sourceLineNo">1017</span>      @Override<a name="line.1017"></a>
-<span class="sourceLineNo">1018</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.1018"></a>
-<span class="sourceLineNo">1019</span>          throws IOException {<a name="line.1019"></a>
-<span class="sourceLineNo">1020</span>        oserver.preSetUserQuota(ctx, user, table, quotas);<a name="line.1020"></a>
-<span class="sourceLineNo">1021</span>      }<a name="line.1021"></a>
-<span class="sourceLineNo">1022</span>    });<a name="line.1022"></a>
-<span class="sourceLineNo">1023</span>  }<a name="line.1023"></a>
-<span class="sourceLineNo">1024</span><a name="line.1024"></a>
-<span class="sourceLineNo">1025</span>  public void postSetUserQuota(final String user, final TableName table, final Quotas quotas)<a name="line.1025"></a>
-<span class="sourceLineNo">1026</span>      throws IOException {<a name="line.1026"></a>
+<span class="sourceLineNo">974</span>  public boolean preGetTableNames(final List&lt;HTableDescriptor&gt; descriptors,<a name="line.974"></a>
+<span class="sourceLineNo">975</span>      final String regex) throws IOException {<a name="line.975"></a>
+<span class="sourceLineNo">976</span>    return execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.976"></a>
+<span class="sourceLineNo">977</span>      @Override<a name="line.977"></a>
+<span class="sourceLineNo">978</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.978"></a>
+<span class="sourceLineNo">979</span>          throws IOException {<a name="line.979"></a>
+<span class="sourceLineNo">980</span>        oserver.preGetTableNames(ctx, descriptors, regex);<a name="line.980"></a>
+<span class="sourceLineNo">981</span>      }<a name="line.981"></a>
+<span class="sourceLineNo">982</span>    });<a name="line.982"></a>
+<span class="sourceLineNo">983</span>  }<a name="line.983"></a>
+<span class="sourceLineNo">984</span><a name="line.984"></a>
+<span class="sourceLineNo">985</span>  public void postGetTableNames(final List&lt;HTableDescriptor&gt; descriptors,<a name="line.985"></a>
+<span class="sourceLineNo">986</span>      final String regex) throws IOException {<a name="line.986"></a>
+<span class="sourceLineNo">987</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.987"></a>
+<span class="sourceLineNo">988</span>      @Override<a name="line.988"></a>
+<span class="sourceLineNo">989</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.989"></a>
+<span class="sourceLineNo">990</span>          throws IOException {<a name="line.990"></a>
+<span class="sourceLineNo">991</span>        oserver.postGetTableNames(ctx, descriptors, regex);<a name="line.991"></a>
+<span class="sourceLineNo">992</span>      }<a name="line.992"></a>
+<span class="sourceLineNo">993</span>    });<a name="line.993"></a>
+<span class="sourceLineNo">994</span>  }<a name="line.994"></a>
+<span class="sourceLineNo">995</span><a name="line.995"></a>
+<span class="sourceLineNo">996</span>  public void preTableFlush(final TableName tableName) throws IOException {<a name="line.996"></a>
+<span class="sourceLineNo">997</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.997"></a>
+<span class="sourceLineNo">998</span>      @Override<a name="line.998"></a>
+<span class="sourceLineNo">999</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.999"></a>
+<span class="sourceLineNo">1000</span>          throws IOException {<a name="line.1000"></a>
+<span class="sourceLineNo">1001</span>        oserver.preTableFlush(ctx, tableName);<a name="line.1001"></a>
+<span class="sourceLineNo">1002</span>      }<a name="line.1002"></a>
+<span class="sourceLineNo">1003</span>    });<a name="line.1003"></a>
+<span class="sourceLineNo">1004</span>  }<a name="line.1004"></a>
+<span class="sourceLineNo">1005</span><a name="line.1005"></a>
+<span class="sourceLineNo">1006</span>  public void postTableFlush(final TableName tableName) throws IOException {<a name="line.1006"></a>
+<span class="sourceLineNo">1007</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.1007"></a>
+<span class="sourceLineNo">1008</span>      @Override<a name="line.1008"></a>
+<span class="sourceLineNo">1009</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.1009"></a>
+<span class="sourceLineNo">1010</span>          throws IOException {<a name="line.1010"></a>
+<span class="sourceLineNo">1011</span>        oserver.postTableFlush(ctx, tableName);<a name="line.1011"></a>
+<span class="sourceLineNo">1012</span>      }<a name="line.1012"></a>
+<span class="sourceLineNo">1013</span>    });<a name="line.1013"></a>
+<span class="sourceLineNo">1014</span>  }<a name="line.1014"></a>
+<span class="sourceLineNo">1015</span><a name="line.1015"></a>
+<span class="sourceLineNo">1016</span>  public void preSetUserQuota(final String user, final Quotas quotas) throws IOException {<a name="line.1016"></a>
+<span class="sourceLineNo">1017</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.1017"></a>
+<span class="sourceLineNo">1018</span>      @Override<a name="line.1018"></a>
+<span class="sourceLineNo">1019</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.1019"></a>
+<span class="sourceLineNo">1020</span>          throws IOException {<a name="line.1020"></a>
+<span class="sourceLineNo">1021</span>        oserver.preSetUserQuota(ctx, user, quotas);<a name="line.1021"></a>
+<span class="sourceLineNo">1022</span>      }<a name="line.1022"></a>
+<span class="sourceLineNo">1023</span>    });<a name="line.1023"></a>
+<span class="sourceLineNo">1024</span>  }<a name="line.1024"></a>
+<span class="sourceLineNo">1025</span><a name="line.1025"></a>
+<span class="sourceLineNo">1026</span>  public void postSetUserQuota(final String user, final Quotas quotas) throws IOException {<a name="line.1026"></a>
 <span class="sourceLineNo">1027</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.1027"></a>
 <span class="sourceLineNo">1028</span>      @Override<a name="line.1028"></a>
 <span class="sourceLineNo">1029</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.1029"></a>
 <span class="sourceLineNo">1030</span>          throws IOException {<a name="line.1030"></a>
-<span class="sourceLineNo">1031</span>        oserver.postSetUserQuota(ctx, user, table, quotas);<a name="line.1031"></a>
+<span class="sourceLineNo">1031</span>        oserver.postSetUserQuota(ctx, user, quotas);<a name="line.1031"></a>
 <span class="sourceLineNo">1032</span>      }<a name="line.1032"></a>
 <span class="sourceLineNo">1033</span>    });<a name="line.1033"></a>
 <span class="sourceLineNo">1034</span>  }<a name="line.1034"></a>
 <span class="sourceLineNo">1035</span><a name="line.1035"></a>
-<span class="sourceLineNo">1036</span>  public void preSetUserQuota(final String user, final String namespace, final Quotas quotas)<a name="line.1036"></a>
+<span class="sourceLineNo">1036</span>  public void preSetUserQuota(final String user, final TableName table, final Quotas quotas)<a name="line.1036"></a>
 <span class="sourceLineNo">1037</span>      throws IOException {<a name="line.1037"></a>
 <span class="sourceLineNo">1038</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.1038"></a>
 <span class="sourceLineNo">1039</span>      @Override<a name="line.1039"></a>
 <span class="sourceLineNo">1040</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.1040"></a>
 <span class="sourceLineNo">1041</span>          throws IOException {<a name="line.1041"></a>
-<span class="sourceLineNo">1042</span>        oserver.preSetUserQuota(ctx, user, namespace, quotas);<a name="line.1042"></a>
+<span class="sourceLineNo">1042</span>        oserver.preSetUserQuota(ctx, user, table, quotas);<a name="line.1042"></a>
 <span class="sourceLineNo">1043</span>      }<a name="line.1043"></a>
 <span class="sourceLineNo">1044</span>    });<a name="line.1044"></a>
 <span class="sourceLineNo">1045</span>  }<a name="line.1045"></a>
 <span class="sourceLineNo">1046</span><a name="line.1046"></a>
-<span class="sourceLineNo">1047</span>  public void postSetUserQuota(final String user, final String namespace, final Quotas quotas)<a name="line.1047"></a>
+<span class="sourceLineNo">1047</span>  public void postSetUserQuota(final String user, final TableName table, final Quotas quotas)<a name="line.1047"></a>
 <span class="sourceLineNo">1048</span>      throws IOException {<a name="line.1048"></a>
 <span class="sourceLineNo">1049</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.1049"></a>
 <span class="sourceLineNo">1050</span>      @Override<a name="line.1050"></a>
 <span class="sourceLineNo">1051</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.1051"></a>
 <span class="sourceLineNo">1052</span>          throws IOException {<a name="line.1052"></a>
-<span class="sourceLineNo">1053</span>        oserver.postSetUserQuota(ctx, user, namespace, quotas);<a name="line.1053"></a>
+<span class="sourceLineNo">1053</span>        oserver.postSetUserQuota(ctx, user, table, quotas);<a name="line.1053"></a>
 <span class="sourceLineNo">1054</span>      }<a name="line.1054"></a>
 <span class="sourceLineNo">1055</span>    });<a name="line.1055"></a>
 <span class="sourceLineNo">1056</span>  }<a name="line.1056"></a>
 <span class="sourceLineNo">1057</span><a name="line.1057"></a>
-<span class="sourceLineNo">1058</span>  public void preSetTableQuota(final TableName table, final Quotas quotas) throws IOException {<a name="line.1058"></a>
-<span class="sourceLineNo">1059</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.1059"></a>
-<span class="sourceLineNo">1060</span>      @Override<a name="line.1060"></a>
-<span class="sourceLineNo">1061</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.1061"></a>
-<span class="sourceLineNo">1062</span>          throws IOException {<a name="line.1062"></a>
-<span class="sourceLineNo">1063</span>        oserver.preSetTableQuota(ctx, table, quotas);<a name="line.1063"></a>
-<span class="sourceLineNo">1064</span>      }<a name="line.1064"></a>
-<span class="sourceLineNo">1065</span>    });<a name="line.1065"></a>
-<span class="sourceLineNo">1066</span>  }<a name="line.1066"></a>
-<span class="sourceLineNo">1067</span><a name="line.1067"></a>
-<span class="sourceLineNo">1068</span>  public void postSetTableQuota(final TableName table, final Quotas quotas) throws IOException {<a name="line.1068"></a>
-<span class="sourceLineNo">1069</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.1069"></a>
-<span class="sourceLineNo">1070</span>      @Override<a name="line.1070"></a>
-<span class="sourceLineNo">1071</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.1071"></a>
-<span class="sourceLineNo">1072</span>          throws IOException {<a name="line.1072"></a>
-<span class="sourceLineNo">1073</span>        oserver.postSetTableQuota(ctx, table, quotas);<a name="line.1073"></a>
-<span class="sourceLineNo">1074</span>      }<a name="line.1074"></a>
-<span class="sourceLineNo">1075</span>    });<a name="line.1075"></a>
-<span class="sourceLineNo">1076</span>  }<a name="line.1076"></a>
-<span class="sourceLineNo">1077</span><a name="line.1077"></a>
-<span class="sourceLineNo">1078</span>  public void preSetNamespaceQuota(final String namespace, final Quotas quotas) throws IOException {<a name="line.1078"></a>
-<span class="sourceLineNo">1079</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.1079"></a>
-<span class="sourceLineNo">1080</span>      @Override<a name="line.1080"></a>
-<span class="sourceLineNo">1081</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.1081"></a>
-<span class="sourceLineNo">1082</span>          throws IOException {<a name="line.1082"></a>
-<span class="sourceLineNo">1083</span>        oserver.preSetNamespaceQuota(ctx, namespace, quotas);<a name="line.1083"></a>
-<span class="sourceLineNo">1084</span>      }<a name="line.1084"></a>
-<span class="sourceLineNo">1085</span>    });<a name="line.1085"></a>
-<span class="sourceLineNo">1086</span>  }<a name="line.1086"></a>
-<span class="sourceLineNo">1087</span><a name="line.1087"></a>
-<span class="sourceLineNo">1088</span>  public void postSetNamespaceQuota(final String namespace, final Quotas quotas) throws IOException{<a name="line.1088"></a>
-<span class="sourceLineNo">1089</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.1089"></a>
-<span class="sourceLineNo">1090</span>      @Override<a name="line.1090"></a>
-<span class="sourceLineNo">1091</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.1091"></a>
-<span class="sourceLineNo">1092</span>          throws IOException {<a name="line.1092"></a>
-<span class="sourceLineNo">1093</span>        oserver.postSetNamespaceQuota(ctx, namespace, quotas);<a name="line.1093"></a>
-<span class="sourceLineNo">1094</span>      }<a name="line.1094"></a>
-<span class="sourceLineNo">1095</span>    });<a name="line.1095"></a>
-<span class="sourceLineNo">1096</span>  }<a name="line.1096"></a>
-<span class="sourceLineNo">1097</span><a name="line.1097"></a>
-<span class="sourceLineNo">1098</span>  private static abstract class CoprocessorOperation<a name="line.1098"></a>
-<span class="sourceLineNo">1099</span>      extends ObserverContext&lt;MasterCoprocessorEnvironment&gt; {<a name="line.1099"></a>
-<span class="sourceLineNo">1100</span>    public CoprocessorOperation() {<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>    public abstract void call(MasterObserver oserver,<a name="line.1103"></a>
-<span class="sourceLineNo">1104</span>        ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx) throws IOException;<a name="line.1104"></a>
-<span class="sourceLineNo">1105</span><a name="line.1105"></a>
-<span class="sourceLineNo">1106</span>    public void postEnvCall(MasterEnvironment env) {<a name="line.1106"></a>
-<span class="sourceLineNo">1107</span>    }<a name="line.1107"></a>
+<span class="sourceLineNo">1058</span>  public void preSetUserQuota(final String user, final String namespace, final Quotas quotas)<a name="line.1058"></a>
+<span class="sourceLineNo">1059</span>      throws IOException {<a name="line.1059"></a>
+<span class="sourceLineNo">1060</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.1060"></a>
+<span class="sourceLineNo">1061</span>      @Override<a name="line.1061"></a>
+<span class="sourceLineNo">1062</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.1062"></a>
+<span class="sourceLineNo">1063</span>          throws IOException {<a name="line.1063"></a>
+<span class="sourceLineNo">1064</span>        oserver.preSetUserQuota(ctx, user, namespace, quotas);<a name="line.1064"></a>
+<span class="sourceLineNo">1065</span>      }<a name="line.1065"></a>
+<span class="sourceLineNo">1066</span>    });<a name="line.1066"></a>
+<span class="sourceLineNo">1067</span>  }<a name="line.1067"></a>
+<span class="sourceLineNo">1068</span><a name="line.1068"></a>
+<span class="sourceLineNo">1069</span>  public void postSetUserQuota(final String user, final String namespace, final Quotas quotas)<a name="line.1069"></a>
+<span class="sourceLineNo">1070</span>      throws IOException {<a name="line.1070"></a>
+<span class="sourceLineNo">1071</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.1071"></a>
+<span class="sourceLineNo">1072</span>      @Override<a name="line.1072"></a>
+<span class="sourceLineNo">1073</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.1073"></a>
+<span class="sourceLineNo">1074</span>          throws IOException {<a name="line.1074"></a>
+<span class="sourceLineNo">1075</span>        oserver.postSetUserQuota(ctx, user, namespace, quotas);<a name="line.1075"></a>
+<span class="sourceLineNo">1076</span>      }<a name="line.1076"></a>
+<span class="sourceLineNo">1077</span>    });<a name="line.1077"></a>
+<span class="sourceLineNo">1078</span>  }<a name="line.1078"></a>
+<span class="sourceLineNo">1079</span><a name="line.1079"></a>
+<span class="sourceLineNo">1080</span>  public void preSetTableQuota(final TableName table, final Quotas quotas) throws IOException {<a name="line.1080"></a>
+<span class="sourceLineNo">1081</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.1081"></a>
+<span class="sourceLineNo">1082</span>      @Override<a name="line.1082"></a>
+<span class="sourceLineNo">1083</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.1083"></a>
+<span class="sourceLineNo">1084</span>          throws IOException {<a name="line.1084"></a>
+<span class="sourceLineNo">1085</span>        oserver.preSetTableQuota(ctx, table, quotas);<a name="line.1085"></a>
+<span class="sourceLineNo">1086</span>      }<a name="line.1086"></a>
+<span class="sourceLineNo">1087</span>    });<a name="line.1087"></a>
+<span class="sourceLineNo">1088</span>  }<a name="line.1088"></a>
+<span class="sourceLineNo">1089</span><a name="line.1089"></a>
+<span class="sourceLineNo">1090</span>  public void postSetTableQuota(final TableName table, final Quotas quotas) throws IOException {<a name="line.1090"></a>
+<span class="sourceLineNo">1091</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.1091"></a>
+<span class="sourceLineNo">1092</span>      @Override<a name="line.1092"></a>
+<span class="sourceLineNo">1093</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.1093"></a>
+<span class="sourceLineNo">1094</span>          throws IOException {<a name="line.1094"></a>
+<span class="sourceLineNo">1095</span>        oserver.postSetTableQuota(ctx, table, quotas);<a name="line.1095"></a>
+<span class="sourceLineNo">1096</span>      }<a name="line.1096"></a>
+<span class="sourceLineNo">1097</span>    });<a name="line.1097"></a>
+<span class="sourceLineNo">1098</span>  }<a name="line.1098"></a>
+<span class="sourceLineNo">1099</span><a name="line.1099"></a>
+<span class="sourceLineNo">1100</span>  public void preSetNamespaceQuota(final String namespace, final Quotas quotas) throws IOException {<a name="line.1100"></a>
+<span class="sourceLineNo">1101</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.1101"></a>
+<span class="sourceLineNo">1102</span>      @Override<a name="line.1102"></a>
+<span class="sourceLineNo">1103</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.1103"></a>
+<span class="sourceLineNo">1104</span>          throws IOException {<a name="line.1104"></a>
+<span class="sourceLineNo">1105</span>        oserver.preSetNamespaceQuota(ctx, namespace, quotas);<a name="line.1105"></a>
+<span class="sourceLineNo">1106</span>      }<a name="line.1106"></a>
+<span class="sourceLineNo">1107</span>    });<a name="line.1107"></a>
 <span class="sourceLineNo">1108</span>  }<a name="line.1108"></a>
 <span class="sourceLineNo">1109</span><a name="line.1109"></a>
-<span class="sourceLineNo">1110</span>  private static abstract class CoprocessorOperationWithResult&lt;T&gt; extends CoprocessorOperation {<a name="line.1110"></a>
-<span class="sourceLineNo">1111</span>    private T result = null;<a name="line.1111"></a>
-<span class="sourceLineNo">1112</span>    public void setResult(final T result) { this.result = result; }<a name="line.1112"></a>
-<span class="sourceLineNo">1113</span>    public T getResult() { return this.result; }<a name="line.1113"></a>
-<span class="sourceLineNo">1114</span>  }<a name="line.1114"></a>
-<span class="sourceLineNo">1115</span><a name="line.1115"></a>
-<span class="sourceLineNo">1116</span>  private &lt;T&gt; T execOperationWithResult(final T defaultValue,<a name="line.1116"></a>
-<span class="sourceLineNo">1117</span>      final CoprocessorOperationWithResult&lt;T&gt; ctx) throws IOException {<a name="line.1117"></a>
-<span class="sourceLineNo">1118</span>    if (ctx == null) return defaultValue;<a name="line.1118"></a>
-<span class="sourceLineNo">1119</span>    ctx.setResult(defaultValue);<a name="line.1119"></a>
-<span class="sourceLineNo">1120</span>    execOperation(ctx);<a name="line.1120"></a>
-<span class="sourceLineNo">1121</span>    return ctx.getResult();<a name="line.1121"></a>
-<span class="sourceLineNo">1122</span>  }<a name="line.1122"></a>
-<span class="sourceLineNo">1123</span><a name="line.1123"></a>
-<span class="sourceLineNo">1124</span>  private boolean execOperation(final CoprocessorOperation ctx) throws IOException {<a name="line.1124"></a>
-<span class="sourceLineNo">1125</span>    if (ctx == null) return false;<a name="line.1125"></a>
-<span class="sourceLineNo">1126</span>    boolean bypass = false;<a name="line.1126"></a>
-<span class="sourceLineNo">1127</span>    List&lt;MasterEnvironment&gt; envs = coprocessors.get();<a name="line.1127"></a>
-<span class="sourceLineNo">1128</span>    for (int i = 0; i &lt; envs.size(); i++) {<a name="line.1128"></a>
-<span class="sourceLineNo">1129</span>      MasterEnvironment env = envs.get(i);<a name="line.1129"></a>
-<span class="sourceLineNo">1130</span>      if (env.getInstance() instanceof MasterObserver) {<a name="line.1130"></a>
-<span class="sourceLineNo">1131</span>        ctx.prepare(env);<a name="line.1131"></a>
-<span class="sourceLineNo">1132</span>        Thread currentThread = Thread.currentThread();<a name="line.1132"></a>
-<span class="sourceLineNo">1133</span>        ClassLoader cl = currentThread.getContextClassLoader();<a name="line.1133"></a>
-<span class="sourceLineNo">1134</span>        try {<a name="line.1134"></a>
-<span class="sourceLineNo">1135</span>          currentThread.setContextClassLoader(env.getClassLoader());<a name="line.1135"></a>
-<span class="sourceLineNo">1136</span>          ctx.call((MasterObserver)env.getInstance(), ctx);<a name="line.1136"></a>
-<span class="sourceLineNo">1137</span>        } catch (Throwable e) {<a name="line.1137"></a>
-<span class="sourceLineNo">1138</span>          handleCoprocessorThrowable(env, e);<a name="line.1138"></a>
-<span class="sourceLineNo">1139</span>        } finally {<a name="line.1139"></a>
-<span class="sourceLineNo">1140</span>          currentThread.setContextClassLoader(cl);<a name="line.1140"></a>
-<span class="sourceLineNo">1141</span>        }<a name="line.1141"></a>
-<span class="sourceLineNo">1142</span>        bypass |= ctx.shouldBypass();<a name="line.1142"></a>
-<span class="sourceLineNo">1143</span>        if (ctx.shouldComplete()) {<a name="line.1143"></a>
-<span class="sourceLineNo">1144</span>          break;<a name="line.1144"></a>
-<span class="sourceLineNo">1145</span>        }<a name="line.1145"></a>
-<span class="sourceLineNo">1146</span>      }<a name="line.1146"></a>
-<span class="sourceLineNo">1147</span>      ctx.postEnvCall(env);<a name="line.1147"></a>
-<span class="sourceLineNo">1148</span>    }<a name="line.1148"></a>
-<span class="sourceLineNo">1149</span>    return bypass;<a name="line.1149"></a>
-<span class="sourceLineNo">1150</span>  }<a name="line.1150"></a>
-<span class="sourceLineNo">1151</span>}<a name="line.1151"></a>
+<span class="sourceLineNo">1110</span>  public void postSetNamespaceQuota(final String namespace, final Quotas quotas) throws IOException{<a name="line.1110"></a>
+<span class="sourceLineNo">1111</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.1111"></a>
+<span class="sourceLineNo">1112</span>      @Override<a name="line.1112"></a>
+<span class="sourceLineNo">1113</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.1113"></a>
+<span class="sourceLineNo">1114</span>          throws IOException {<a name="line.1114"></a>
+<span class="sourceLineNo">1115</span>        oserver.postSetNamespaceQuota(ctx, namespace, quotas);<a name="line.1115"></a>
+<span class="sourceLineNo">1116</span>      }<a name="line.1116"></a>
+<span class="sourceLineNo">1117</span>    });<a name="line.1117"></a>
+<span class="sourceLineNo">1118</span>  }<a name="line.1118"></a>
+<span class="sourceLineNo">1119</span><a name="line.1119"></a>
+<span class="sourceLineNo">1120</span>  private static abstract class CoprocessorOperation<a name="line.1120"></a>
+<span class="sourceLineNo">1121</span>      extends ObserverContext&lt;MasterCoprocessorEnvironment&gt; {<a name="line.1121"></a>
+<span class="sourceLineNo">1122</span>    public CoprocessorOperation() {<a name="line.1122"></a>
+<span class="sourceLineNo">1123</span>    }<a name="line.1123"></a>
+<span class="sourceLineNo">1124</span><a name="line.1124"></a>
+<span class="sourceLineNo">1125</span>    public abstract void call(MasterObserver oserver,<a name="line.1125"></a>
+<span class="sourceLineNo">1126</span>        ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx) throws IOException;<a name="line.1126"></a>
+<span class="sourceLineNo">1127</span><a name="line.1127"></a>
+<span class="sourceLineNo">1128</span>    public void postEnvCall(MasterEnvironment env) {<a name="line.1128"></a>
+<span class="sourceLineNo">1129</span>    }<a name="line.1129"></a>
+<span class="sourceLineNo">1130</span>  }<a name="line.1130"></a>
+<span class="sourceLineNo">1131</span><a name="line.1131"></a>
+<span class="sourceLineNo">1132</span>  private static abstract class CoprocessorOperationWithResult&lt;T&gt; extends CoprocessorOperation {<a name="line.1132"></a>
+<span class="sourceLineNo">1133</span>    private T result = null;<a name="line.1133"></a>
+<span class="sourceLineNo">1134</span>    public void setResult(final T result) { this.result = result; }<a name="line.1134"></a>
+<span class="sourceLineNo">1135</span>    public T getResult() { return this.result; }<a name="line.1135"></a>
+<span class="sourceLineNo">1136</span>  }<a name="line.1136"></a>
+<span class="sourceLineNo">1137</span><a name="line.1137"></a>
+<span class="sourceLineNo">1138</span>  private &lt;T&gt; T execOperationWithResult(final T defaultValue,<a name="line.1138"></a>
+<span class="sourceLineNo">1139</span>      final CoprocessorOperationWithResult&lt;T&gt; ctx) throws IOException {<a name="line.1139"></a>
+<span class="sourceLineNo">1140</span>    if (ctx == null) return defaultValue;<a name="line.1140"></a>
+<span class="sourceLineNo">1141</span>    ctx.setResult(defaultValue);<a name="line.1141"></a>
+<span class="sourceLineNo">1142</span>    execOperation(ctx);<a name="line.1142"></a>
+<span class="sourceLineNo">1143</span>    return ctx.getResult();<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>  private boolean execOperation(final CoprocessorOperation ctx) throws IOException {<a name="line.1146"></a>
+<span class="sourceLineNo">1147</span>    if (ctx == null) return false;<a name="line.1147"></a>
+<span class="sourceLineNo">1148</span>    boolean bypass = false;<a name="line.1148"></a>
+<span class="sourceLineNo">1149</span>    List&lt;MasterEnvironment&gt; envs = coprocessors.get();<a name="line.1149"></a>
+<span class="sourceLineNo">1150</span>    for (int i = 0; i &lt; envs.size(); i++) {<a name="line.1150"></a>
+<span class="sourceLineNo">1151</span>      MasterEnvironment env = envs.get(i);<a name="line.1151"></a>
+<span class="sourceLineNo">1152</span>      if (env.getInstance() instanceof MasterObserver) {<a name="line.1152"></a>
+<span class="sourceLineNo">1153</span>        ctx.prepare(env);<a name="line.1153"></a>
+<span class="sourceLineNo">1154</span>        Thread currentThread = Thread.currentThread();<a name="line.1154"></a>
+<span class="sourceLineNo">1155</span>        ClassLoader cl = currentThread.getContextClassLoader();<a name="line.1155"></a>
+<span class="sourceLineNo">1156</span>        try {<a name="line.1156"></a>
+<span class="sourceLineNo">1157</span>          currentThread.setContextClassLoader(env.getClassLoader());<a name="line.1157"></a>
+<span class="sourceLineNo">1158</span>          ctx.call((MasterObserver)env.getInstance(), ctx);<a name="line.1158"></a>
+<span class="sourceLineNo">1159</span>        } catch (Throwable e) {<a name="line.1159"></a>
+<span class="sourceLineNo">1160</span>          handleCoprocessorThrowable(env, e);<a name="line.1160"></a>
+<span class="sourceLineNo">1161</span>        } finally {<a name="line.1161"></a>
+<span class="sourceLineNo">1162</span>          currentThread.setContextClassLoader(cl);<a name="line.1162"></a>
+<span class="sourceLineNo">1163</span>        }<a name="line.1163"></a>
+<span class="sourceLineNo">1164</span>        bypass |= ctx.shouldBypass();<a name="line.1164"></a>
+<span class="sourceLineNo">1165</span>        if (ctx.shouldComplete()) {<a name="line.1165"></a>
+<span class="sourceLineNo">1166</span>          break;<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>      ctx.postEnvCall(env);<a name="line.1169"></a>
+<span class="sourceLineNo">1170</span>    }<a name="line.1170"></a>
+<span class="sourceLineNo">1171</span>    return bypass;<a name="line.1171"></a>
+<span class="sourceLineNo">1172</span>  }<a name="line.1172"></a>
+<span class="sourceLineNo">1173</span>}<a name="line.1173"></a>
 
 
 


Mime
View raw message