hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From git-site-r...@apache.org
Subject [12/51] [partial] hbase-site git commit: Published site at .
Date Wed, 03 Jan 2018 15:19:45 GMT
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/bb398572/devapidocs/src-html/org/apache/hadoop/hbase/coprocessor/CoprocessorHost.ObserverGetter.html
----------------------------------------------------------------------
diff --git a/devapidocs/src-html/org/apache/hadoop/hbase/coprocessor/CoprocessorHost.ObserverGetter.html b/devapidocs/src-html/org/apache/hadoop/hbase/coprocessor/CoprocessorHost.ObserverGetter.html
index b8e321a..439a50d 100644
--- a/devapidocs/src-html/org/apache/hadoop/hbase/coprocessor/CoprocessorHost.ObserverGetter.html
+++ b/devapidocs/src-html/org/apache/hadoop/hbase/coprocessor/CoprocessorHost.ObserverGetter.html
@@ -468,274 +468,216 @@
 <span class="sourceLineNo">460</span>  }<a name="line.460"></a>
 <span class="sourceLineNo">461</span><a name="line.461"></a>
 <span class="sourceLineNo">462</span>  /**<a name="line.462"></a>
-<span class="sourceLineNo">463</span>   * Used to gracefully handle fallback to deprecated methods when we<a name="line.463"></a>
-<span class="sourceLineNo">464</span>   * evolve coprocessor APIs.<a name="line.464"></a>
-<span class="sourceLineNo">465</span>   *<a name="line.465"></a>
-<span class="sourceLineNo">466</span>   * When a particular Coprocessor API is updated to change methods, hosts can support fallback<a name="line.466"></a>
-<span class="sourceLineNo">467</span>   * to the deprecated API by using this method to determine if an instance implements the new API.<a name="line.467"></a>
-<span class="sourceLineNo">468</span>   * In the event that said support is partial, then in the face of a runtime issue that prevents<a name="line.468"></a>
-<span class="sourceLineNo">469</span>   * proper operation {@link #legacyWarning(Class, String)} should be used to let operators know.<a name="line.469"></a>
-<span class="sourceLineNo">470</span>   *<a name="line.470"></a>
-<span class="sourceLineNo">471</span>   * For examples of this in action, see the implementation of<a name="line.471"></a>
-<span class="sourceLineNo">472</span>   * &lt;ul&gt;<a name="line.472"></a>
-<span class="sourceLineNo">473</span>   *   &lt;li&gt;{@link org.apache.hadoop.hbase.regionserver.RegionCoprocessorHost}<a name="line.473"></a>
-<span class="sourceLineNo">474</span>   *   &lt;li&gt;{@link org.apache.hadoop.hbase.regionserver.wal.WALCoprocessorHost}<a name="line.474"></a>
-<span class="sourceLineNo">475</span>   * &lt;/ul&gt;<a name="line.475"></a>
-<span class="sourceLineNo">476</span>   *<a name="line.476"></a>
-<span class="sourceLineNo">477</span>   * @param clazz Coprocessor you wish to evaluate<a name="line.477"></a>
-<span class="sourceLineNo">478</span>   * @param methodName the name of the non-deprecated method version<a name="line.478"></a>
-<span class="sourceLineNo">479</span>   * @param parameterTypes the Class of the non-deprecated method's arguments in the order they are<a name="line.479"></a>
-<span class="sourceLineNo">480</span>   *     declared.<a name="line.480"></a>
-<span class="sourceLineNo">481</span>   */<a name="line.481"></a>
-<span class="sourceLineNo">482</span>  @InterfaceAudience.Private<a name="line.482"></a>
-<span class="sourceLineNo">483</span>  protected static boolean useLegacyMethod(final Class&lt;? extends Coprocessor&gt; clazz,<a name="line.483"></a>
-<span class="sourceLineNo">484</span>      final String methodName, final Class&lt;?&gt;... parameterTypes) {<a name="line.484"></a>
-<span class="sourceLineNo">485</span>    boolean useLegacy;<a name="line.485"></a>
-<span class="sourceLineNo">486</span>    // Use reflection to see if they implement the non-deprecated version<a name="line.486"></a>
-<span class="sourceLineNo">487</span>    try {<a name="line.487"></a>
-<span class="sourceLineNo">488</span>      clazz.getDeclaredMethod(methodName, parameterTypes);<a name="line.488"></a>
-<span class="sourceLineNo">489</span>      LOG.debug("Found an implementation of '" + methodName + "' that uses updated method " +<a name="line.489"></a>
-<span class="sourceLineNo">490</span>          "signature. Skipping legacy support for invocations in '" + clazz +"'.");<a name="line.490"></a>
-<span class="sourceLineNo">491</span>      useLegacy = false;<a name="line.491"></a>
-<span class="sourceLineNo">492</span>    } catch (NoSuchMethodException exception) {<a name="line.492"></a>
-<span class="sourceLineNo">493</span>      useLegacy = true;<a name="line.493"></a>
-<span class="sourceLineNo">494</span>    } catch (SecurityException exception) {<a name="line.494"></a>
-<span class="sourceLineNo">495</span>      LOG.warn("The Security Manager denied our attempt to detect if the coprocessor '" + clazz +<a name="line.495"></a>
-<span class="sourceLineNo">496</span>          "' requires legacy support; assuming it does. If you get later errors about legacy " +<a name="line.496"></a>
-<span class="sourceLineNo">497</span>          "coprocessor use, consider updating your security policy to allow access to the package" +<a name="line.497"></a>
-<span class="sourceLineNo">498</span>          " and declared members of your implementation.");<a name="line.498"></a>
-<span class="sourceLineNo">499</span>      LOG.debug("Details of Security Manager rejection.", exception);<a name="line.499"></a>
-<span class="sourceLineNo">500</span>      useLegacy = true;<a name="line.500"></a>
+<span class="sourceLineNo">463</span>   * Used to limit legacy handling to once per Coprocessor class per classloader.<a name="line.463"></a>
+<span class="sourceLineNo">464</span>   */<a name="line.464"></a>
+<span class="sourceLineNo">465</span>  private static final Set&lt;Class&lt;? extends Coprocessor&gt;&gt; legacyWarning =<a name="line.465"></a>
+<span class="sourceLineNo">466</span>      new ConcurrentSkipListSet&lt;&gt;(<a name="line.466"></a>
+<span class="sourceLineNo">467</span>          new Comparator&lt;Class&lt;? extends Coprocessor&gt;&gt;() {<a name="line.467"></a>
+<span class="sourceLineNo">468</span>            @Override<a name="line.468"></a>
+<span class="sourceLineNo">469</span>            public int compare(Class&lt;? extends Coprocessor&gt; c1, Class&lt;? extends Coprocessor&gt; c2) {<a name="line.469"></a>
+<span class="sourceLineNo">470</span>              if (c1.equals(c2)) {<a name="line.470"></a>
+<span class="sourceLineNo">471</span>                return 0;<a name="line.471"></a>
+<span class="sourceLineNo">472</span>              }<a name="line.472"></a>
+<span class="sourceLineNo">473</span>              return c1.getName().compareTo(c2.getName());<a name="line.473"></a>
+<span class="sourceLineNo">474</span>            }<a name="line.474"></a>
+<span class="sourceLineNo">475</span>          });<a name="line.475"></a>
+<span class="sourceLineNo">476</span><a name="line.476"></a>
+<span class="sourceLineNo">477</span>  /**<a name="line.477"></a>
+<span class="sourceLineNo">478</span>   * Implementations defined function to get an observer of type {@code O} from a coprocessor of<a name="line.478"></a>
+<span class="sourceLineNo">479</span>   * type {@code C}. Concrete implementations of CoprocessorHost define one getter for each<a name="line.479"></a>
+<span class="sourceLineNo">480</span>   * observer they can handle. For e.g. RegionCoprocessorHost will use 3 getters, one for<a name="line.480"></a>
+<span class="sourceLineNo">481</span>   * each of RegionObserver, EndpointObserver and BulkLoadObserver.<a name="line.481"></a>
+<span class="sourceLineNo">482</span>   * These getters are used by {@code ObserverOperation} to get appropriate observer from the<a name="line.482"></a>
+<span class="sourceLineNo">483</span>   * coprocessor.<a name="line.483"></a>
+<span class="sourceLineNo">484</span>   */<a name="line.484"></a>
+<span class="sourceLineNo">485</span>  @FunctionalInterface<a name="line.485"></a>
+<span class="sourceLineNo">486</span>  public interface ObserverGetter&lt;C, O&gt; extends Function&lt;C, Optional&lt;O&gt;&gt; {}<a name="line.486"></a>
+<span class="sourceLineNo">487</span><a name="line.487"></a>
+<span class="sourceLineNo">488</span>  private abstract class ObserverOperation&lt;O&gt; extends ObserverContextImpl&lt;E&gt; {<a name="line.488"></a>
+<span class="sourceLineNo">489</span>    ObserverGetter&lt;C, O&gt; observerGetter;<a name="line.489"></a>
+<span class="sourceLineNo">490</span><a name="line.490"></a>
+<span class="sourceLineNo">491</span>    ObserverOperation(ObserverGetter&lt;C, O&gt; observerGetter) {<a name="line.491"></a>
+<span class="sourceLineNo">492</span>      this(observerGetter, null);<a name="line.492"></a>
+<span class="sourceLineNo">493</span>    }<a name="line.493"></a>
+<span class="sourceLineNo">494</span><a name="line.494"></a>
+<span class="sourceLineNo">495</span>    ObserverOperation(ObserverGetter&lt;C, O&gt; observerGetter, User user) {<a name="line.495"></a>
+<span class="sourceLineNo">496</span>      this(observerGetter, user, false);<a name="line.496"></a>
+<span class="sourceLineNo">497</span>    }<a name="line.497"></a>
+<span class="sourceLineNo">498</span><a name="line.498"></a>
+<span class="sourceLineNo">499</span>    ObserverOperation(ObserverGetter&lt;C, O&gt; observerGetter, boolean bypassable) {<a name="line.499"></a>
+<span class="sourceLineNo">500</span>      this(observerGetter, null, bypassable);<a name="line.500"></a>
 <span class="sourceLineNo">501</span>    }<a name="line.501"></a>
-<span class="sourceLineNo">502</span>    return useLegacy;<a name="line.502"></a>
-<span class="sourceLineNo">503</span>  }<a name="line.503"></a>
-<span class="sourceLineNo">504</span><a name="line.504"></a>
-<span class="sourceLineNo">505</span>  /**<a name="line.505"></a>
-<span class="sourceLineNo">506</span>   * Used to limit legacy handling to once per Coprocessor class per classloader.<a name="line.506"></a>
-<span class="sourceLineNo">507</span>   */<a name="line.507"></a>
-<span class="sourceLineNo">508</span>  private static final Set&lt;Class&lt;? extends Coprocessor&gt;&gt; legacyWarning =<a name="line.508"></a>
-<span class="sourceLineNo">509</span>      new ConcurrentSkipListSet&lt;&gt;(<a name="line.509"></a>
-<span class="sourceLineNo">510</span>          new Comparator&lt;Class&lt;? extends Coprocessor&gt;&gt;() {<a name="line.510"></a>
-<span class="sourceLineNo">511</span>            @Override<a name="line.511"></a>
-<span class="sourceLineNo">512</span>            public int compare(Class&lt;? extends Coprocessor&gt; c1, Class&lt;? extends Coprocessor&gt; c2) {<a name="line.512"></a>
-<span class="sourceLineNo">513</span>              if (c1.equals(c2)) {<a name="line.513"></a>
-<span class="sourceLineNo">514</span>                return 0;<a name="line.514"></a>
-<span class="sourceLineNo">515</span>              }<a name="line.515"></a>
-<span class="sourceLineNo">516</span>              return c1.getName().compareTo(c2.getName());<a name="line.516"></a>
-<span class="sourceLineNo">517</span>            }<a name="line.517"></a>
-<span class="sourceLineNo">518</span>          });<a name="line.518"></a>
-<span class="sourceLineNo">519</span><a name="line.519"></a>
-<span class="sourceLineNo">520</span>  /**<a name="line.520"></a>
-<span class="sourceLineNo">521</span>   * limits the amount of logging to once per coprocessor class.<a name="line.521"></a>
-<span class="sourceLineNo">522</span>   * Used in concert with {@link #useLegacyMethod(Class, String, Class[])} when a runtime issue<a name="line.522"></a>
-<span class="sourceLineNo">523</span>   * prevents properly supporting the legacy version of a coprocessor API.<a name="line.523"></a>
-<span class="sourceLineNo">524</span>   * Since coprocessors can be in tight loops this serves to limit the amount of log spam we create.<a name="line.524"></a>
-<span class="sourceLineNo">525</span>   */<a name="line.525"></a>
-<span class="sourceLineNo">526</span>  @InterfaceAudience.Private<a name="line.526"></a>
-<span class="sourceLineNo">527</span>  protected void legacyWarning(final Class&lt;? extends Coprocessor&gt; clazz, final String message) {<a name="line.527"></a>
-<span class="sourceLineNo">528</span>    if(legacyWarning.add(clazz)) {<a name="line.528"></a>
-<span class="sourceLineNo">529</span>      LOG.error("You have a legacy coprocessor loaded and there are events we can't map to the " +<a name="line.529"></a>
-<span class="sourceLineNo">530</span>          " deprecated API. Your coprocessor will not see these events.  Please update '" + clazz +<a name="line.530"></a>
-<span class="sourceLineNo">531</span>          "'. Details of the problem: " + message);<a name="line.531"></a>
-<span class="sourceLineNo">532</span>    }<a name="line.532"></a>
-<span class="sourceLineNo">533</span>  }<a name="line.533"></a>
-<span class="sourceLineNo">534</span><a name="line.534"></a>
-<span class="sourceLineNo">535</span>  /**<a name="line.535"></a>
-<span class="sourceLineNo">536</span>   * Implementations defined function to get an observer of type {@code O} from a coprocessor of<a name="line.536"></a>
-<span class="sourceLineNo">537</span>   * type {@code C}. Concrete implementations of CoprocessorHost define one getter for each<a name="line.537"></a>
-<span class="sourceLineNo">538</span>   * observer they can handle. For e.g. RegionCoprocessorHost will use 3 getters, one for<a name="line.538"></a>
-<span class="sourceLineNo">539</span>   * each of RegionObserver, EndpointObserver and BulkLoadObserver.<a name="line.539"></a>
-<span class="sourceLineNo">540</span>   * These getters are used by {@code ObserverOperation} to get appropriate observer from the<a name="line.540"></a>
-<span class="sourceLineNo">541</span>   * coprocessor.<a name="line.541"></a>
-<span class="sourceLineNo">542</span>   */<a name="line.542"></a>
-<span class="sourceLineNo">543</span>  @FunctionalInterface<a name="line.543"></a>
-<span class="sourceLineNo">544</span>  public interface ObserverGetter&lt;C, O&gt; extends Function&lt;C, Optional&lt;O&gt;&gt; {}<a name="line.544"></a>
+<span class="sourceLineNo">502</span><a name="line.502"></a>
+<span class="sourceLineNo">503</span>    ObserverOperation(ObserverGetter&lt;C, O&gt; observerGetter, User user, boolean bypassable) {<a name="line.503"></a>
+<span class="sourceLineNo">504</span>      super(user != null? user: RpcServer.getRequestUser().orElse(null), bypassable);<a name="line.504"></a>
+<span class="sourceLineNo">505</span>      this.observerGetter = observerGetter;<a name="line.505"></a>
+<span class="sourceLineNo">506</span>    }<a name="line.506"></a>
+<span class="sourceLineNo">507</span><a name="line.507"></a>
+<span class="sourceLineNo">508</span>    abstract void callObserver() throws IOException;<a name="line.508"></a>
+<span class="sourceLineNo">509</span>    protected void postEnvCall() {}<a name="line.509"></a>
+<span class="sourceLineNo">510</span>  }<a name="line.510"></a>
+<span class="sourceLineNo">511</span><a name="line.511"></a>
+<span class="sourceLineNo">512</span>  // Can't derive ObserverOperation from ObserverOperationWithResult (R = Void) because then all<a name="line.512"></a>
+<span class="sourceLineNo">513</span>  // ObserverCaller implementations will have to have a return statement.<a name="line.513"></a>
+<span class="sourceLineNo">514</span>  // O = observer, E = environment, C = coprocessor, R=result type<a name="line.514"></a>
+<span class="sourceLineNo">515</span>  public abstract class ObserverOperationWithoutResult&lt;O&gt; extends ObserverOperation&lt;O&gt; {<a name="line.515"></a>
+<span class="sourceLineNo">516</span>    protected abstract void call(O observer) throws IOException;<a name="line.516"></a>
+<span class="sourceLineNo">517</span><a name="line.517"></a>
+<span class="sourceLineNo">518</span>    public ObserverOperationWithoutResult(ObserverGetter&lt;C, O&gt; observerGetter) {<a name="line.518"></a>
+<span class="sourceLineNo">519</span>      super(observerGetter);<a name="line.519"></a>
+<span class="sourceLineNo">520</span>    }<a name="line.520"></a>
+<span class="sourceLineNo">521</span><a name="line.521"></a>
+<span class="sourceLineNo">522</span>    public ObserverOperationWithoutResult(ObserverGetter&lt;C, O&gt; observerGetter, User user) {<a name="line.522"></a>
+<span class="sourceLineNo">523</span>      super(observerGetter, user);<a name="line.523"></a>
+<span class="sourceLineNo">524</span>    }<a name="line.524"></a>
+<span class="sourceLineNo">525</span><a name="line.525"></a>
+<span class="sourceLineNo">526</span>    public ObserverOperationWithoutResult(ObserverGetter&lt;C, O&gt; observerGetter, User user,<a name="line.526"></a>
+<span class="sourceLineNo">527</span>        boolean bypassable) {<a name="line.527"></a>
+<span class="sourceLineNo">528</span>      super(observerGetter, user, bypassable);<a name="line.528"></a>
+<span class="sourceLineNo">529</span>    }<a name="line.529"></a>
+<span class="sourceLineNo">530</span><a name="line.530"></a>
+<span class="sourceLineNo">531</span>    /**<a name="line.531"></a>
+<span class="sourceLineNo">532</span>     * In case of coprocessors which have many kinds of observers (for eg, {@link RegionCoprocessor}<a name="line.532"></a>
+<span class="sourceLineNo">533</span>     * has BulkLoadObserver, RegionObserver, etc), some implementations may not need all<a name="line.533"></a>
+<span class="sourceLineNo">534</span>     * observers, in which case they will return null for that observer's getter.<a name="line.534"></a>
+<span class="sourceLineNo">535</span>     * We simply ignore such cases.<a name="line.535"></a>
+<span class="sourceLineNo">536</span>     */<a name="line.536"></a>
+<span class="sourceLineNo">537</span>    @Override<a name="line.537"></a>
+<span class="sourceLineNo">538</span>    void callObserver() throws IOException {<a name="line.538"></a>
+<span class="sourceLineNo">539</span>      Optional&lt;O&gt; observer = observerGetter.apply(getEnvironment().getInstance());<a name="line.539"></a>
+<span class="sourceLineNo">540</span>      if (observer.isPresent()) {<a name="line.540"></a>
+<span class="sourceLineNo">541</span>        call(observer.get());<a name="line.541"></a>
+<span class="sourceLineNo">542</span>      }<a name="line.542"></a>
+<span class="sourceLineNo">543</span>    }<a name="line.543"></a>
+<span class="sourceLineNo">544</span>  }<a name="line.544"></a>
 <span class="sourceLineNo">545</span><a name="line.545"></a>
-<span class="sourceLineNo">546</span>  private abstract class ObserverOperation&lt;O&gt; extends ObserverContextImpl&lt;E&gt; {<a name="line.546"></a>
-<span class="sourceLineNo">547</span>    ObserverGetter&lt;C, O&gt; observerGetter;<a name="line.547"></a>
+<span class="sourceLineNo">546</span>  public abstract class ObserverOperationWithResult&lt;O, R&gt; extends ObserverOperation&lt;O&gt; {<a name="line.546"></a>
+<span class="sourceLineNo">547</span>    protected abstract R call(O observer) throws IOException;<a name="line.547"></a>
 <span class="sourceLineNo">548</span><a name="line.548"></a>
-<span class="sourceLineNo">549</span>    ObserverOperation(ObserverGetter&lt;C, O&gt; observerGetter) {<a name="line.549"></a>
-<span class="sourceLineNo">550</span>      this(observerGetter, null);<a name="line.550"></a>
-<span class="sourceLineNo">551</span>    }<a name="line.551"></a>
-<span class="sourceLineNo">552</span><a name="line.552"></a>
-<span class="sourceLineNo">553</span>    ObserverOperation(ObserverGetter&lt;C, O&gt; observerGetter, User user) {<a name="line.553"></a>
-<span class="sourceLineNo">554</span>      this(observerGetter, user, false);<a name="line.554"></a>
-<span class="sourceLineNo">555</span>    }<a name="line.555"></a>
-<span class="sourceLineNo">556</span><a name="line.556"></a>
-<span class="sourceLineNo">557</span>    ObserverOperation(ObserverGetter&lt;C, O&gt; observerGetter, boolean bypassable) {<a name="line.557"></a>
-<span class="sourceLineNo">558</span>      this(observerGetter, null, bypassable);<a name="line.558"></a>
-<span class="sourceLineNo">559</span>    }<a name="line.559"></a>
-<span class="sourceLineNo">560</span><a name="line.560"></a>
-<span class="sourceLineNo">561</span>    ObserverOperation(ObserverGetter&lt;C, O&gt; observerGetter, User user, boolean bypassable) {<a name="line.561"></a>
-<span class="sourceLineNo">562</span>      super(user != null? user: RpcServer.getRequestUser().orElse(null), bypassable);<a name="line.562"></a>
-<span class="sourceLineNo">563</span>      this.observerGetter = observerGetter;<a name="line.563"></a>
-<span class="sourceLineNo">564</span>    }<a name="line.564"></a>
-<span class="sourceLineNo">565</span><a name="line.565"></a>
-<span class="sourceLineNo">566</span>    abstract void callObserver() throws IOException;<a name="line.566"></a>
-<span class="sourceLineNo">567</span>    protected void postEnvCall() {}<a name="line.567"></a>
-<span class="sourceLineNo">568</span>  }<a name="line.568"></a>
-<span class="sourceLineNo">569</span><a name="line.569"></a>
-<span class="sourceLineNo">570</span>  // Can't derive ObserverOperation from ObserverOperationWithResult (R = Void) because then all<a name="line.570"></a>
-<span class="sourceLineNo">571</span>  // ObserverCaller implementations will have to have a return statement.<a name="line.571"></a>
-<span class="sourceLineNo">572</span>  // O = observer, E = environment, C = coprocessor, R=result type<a name="line.572"></a>
-<span class="sourceLineNo">573</span>  public abstract class ObserverOperationWithoutResult&lt;O&gt; extends ObserverOperation&lt;O&gt; {<a name="line.573"></a>
-<span class="sourceLineNo">574</span>    protected abstract void call(O observer) throws IOException;<a name="line.574"></a>
-<span class="sourceLineNo">575</span><a name="line.575"></a>
-<span class="sourceLineNo">576</span>    public ObserverOperationWithoutResult(ObserverGetter&lt;C, O&gt; observerGetter) {<a name="line.576"></a>
-<span class="sourceLineNo">577</span>      super(observerGetter);<a name="line.577"></a>
-<span class="sourceLineNo">578</span>    }<a name="line.578"></a>
-<span class="sourceLineNo">579</span><a name="line.579"></a>
-<span class="sourceLineNo">580</span>    public ObserverOperationWithoutResult(ObserverGetter&lt;C, O&gt; observerGetter, User user) {<a name="line.580"></a>
-<span class="sourceLineNo">581</span>      super(observerGetter, user);<a name="line.581"></a>
-<span class="sourceLineNo">582</span>    }<a name="line.582"></a>
-<span class="sourceLineNo">583</span><a name="line.583"></a>
-<span class="sourceLineNo">584</span>    public ObserverOperationWithoutResult(ObserverGetter&lt;C, O&gt; observerGetter, User user,<a name="line.584"></a>
-<span class="sourceLineNo">585</span>        boolean bypassable) {<a name="line.585"></a>
-<span class="sourceLineNo">586</span>      super(observerGetter, user, bypassable);<a name="line.586"></a>
-<span class="sourceLineNo">587</span>    }<a name="line.587"></a>
-<span class="sourceLineNo">588</span><a name="line.588"></a>
-<span class="sourceLineNo">589</span>    /**<a name="line.589"></a>
-<span class="sourceLineNo">590</span>     * In case of coprocessors which have many kinds of observers (for eg, {@link RegionCoprocessor}<a name="line.590"></a>
-<span class="sourceLineNo">591</span>     * has BulkLoadObserver, RegionObserver, etc), some implementations may not need all<a name="line.591"></a>
-<span class="sourceLineNo">592</span>     * observers, in which case they will return null for that observer's getter.<a name="line.592"></a>
-<span class="sourceLineNo">593</span>     * We simply ignore such cases.<a name="line.593"></a>
-<span class="sourceLineNo">594</span>     */<a name="line.594"></a>
-<span class="sourceLineNo">595</span>    @Override<a name="line.595"></a>
-<span class="sourceLineNo">596</span>    void callObserver() throws IOException {<a name="line.596"></a>
-<span class="sourceLineNo">597</span>      Optional&lt;O&gt; observer = observerGetter.apply(getEnvironment().getInstance());<a name="line.597"></a>
-<span class="sourceLineNo">598</span>      if (observer.isPresent()) {<a name="line.598"></a>
-<span class="sourceLineNo">599</span>        call(observer.get());<a name="line.599"></a>
-<span class="sourceLineNo">600</span>      }<a name="line.600"></a>
-<span class="sourceLineNo">601</span>    }<a name="line.601"></a>
-<span class="sourceLineNo">602</span>  }<a name="line.602"></a>
-<span class="sourceLineNo">603</span><a name="line.603"></a>
-<span class="sourceLineNo">604</span>  public abstract class ObserverOperationWithResult&lt;O, R&gt; extends ObserverOperation&lt;O&gt; {<a name="line.604"></a>
-<span class="sourceLineNo">605</span>    protected abstract R call(O observer) throws IOException;<a name="line.605"></a>
-<span class="sourceLineNo">606</span><a name="line.606"></a>
-<span class="sourceLineNo">607</span>    private R result;<a name="line.607"></a>
-<span class="sourceLineNo">608</span><a name="line.608"></a>
-<span class="sourceLineNo">609</span>    public ObserverOperationWithResult(ObserverGetter&lt;C, O&gt; observerGetter, R result) {<a name="line.609"></a>
-<span class="sourceLineNo">610</span>      this(observerGetter, result, false);<a name="line.610"></a>
-<span class="sourceLineNo">611</span>    }<a name="line.611"></a>
-<span class="sourceLineNo">612</span><a name="line.612"></a>
-<span class="sourceLineNo">613</span>    public ObserverOperationWithResult(ObserverGetter&lt;C, O&gt; observerGetter, R result,<a name="line.613"></a>
-<span class="sourceLineNo">614</span>        boolean bypassable) {<a name="line.614"></a>
-<span class="sourceLineNo">615</span>      this(observerGetter, result, null, bypassable);<a name="line.615"></a>
-<span class="sourceLineNo">616</span>    }<a name="line.616"></a>
-<span class="sourceLineNo">617</span><a name="line.617"></a>
-<span class="sourceLineNo">618</span>    public ObserverOperationWithResult(ObserverGetter&lt;C, O&gt; observerGetter, R result,<a name="line.618"></a>
-<span class="sourceLineNo">619</span>        User user) {<a name="line.619"></a>
-<span class="sourceLineNo">620</span>      this(observerGetter, result, user, false);<a name="line.620"></a>
-<span class="sourceLineNo">621</span>    }<a name="line.621"></a>
-<span class="sourceLineNo">622</span><a name="line.622"></a>
-<span class="sourceLineNo">623</span>    private ObserverOperationWithResult(ObserverGetter&lt;C, O&gt; observerGetter, R result, User user,<a name="line.623"></a>
-<span class="sourceLineNo">624</span>        boolean bypassable) {<a name="line.624"></a>
-<span class="sourceLineNo">625</span>      super(observerGetter, user, bypassable);<a name="line.625"></a>
-<span class="sourceLineNo">626</span>      this.result = result;<a name="line.626"></a>
-<span class="sourceLineNo">627</span>    }<a name="line.627"></a>
-<span class="sourceLineNo">628</span><a name="line.628"></a>
-<span class="sourceLineNo">629</span>    protected R getResult() {<a name="line.629"></a>
-<span class="sourceLineNo">630</span>      return this.result;<a name="line.630"></a>
-<span class="sourceLineNo">631</span>    }<a name="line.631"></a>
-<span class="sourceLineNo">632</span><a name="line.632"></a>
-<span class="sourceLineNo">633</span>    void callObserver() throws IOException {<a name="line.633"></a>
-<span class="sourceLineNo">634</span>      Optional&lt;O&gt; observer = observerGetter.apply(getEnvironment().getInstance());<a name="line.634"></a>
-<span class="sourceLineNo">635</span>      if (observer.isPresent()) {<a name="line.635"></a>
-<span class="sourceLineNo">636</span>        result = call(observer.get());<a name="line.636"></a>
-<span class="sourceLineNo">637</span>      }<a name="line.637"></a>
-<span class="sourceLineNo">638</span>    }<a name="line.638"></a>
-<span class="sourceLineNo">639</span>  }<a name="line.639"></a>
-<span class="sourceLineNo">640</span><a name="line.640"></a>
-<span class="sourceLineNo">641</span>  //////////////////////////////////////////////////////////////////////////////////////////<a name="line.641"></a>
-<span class="sourceLineNo">642</span>  // Functions to execute observer hooks and handle results (if any)<a name="line.642"></a>
-<span class="sourceLineNo">643</span>  //////////////////////////////////////////////////////////////////////////////////////////<a name="line.643"></a>
-<span class="sourceLineNo">644</span><a name="line.644"></a>
-<span class="sourceLineNo">645</span>  /**<a name="line.645"></a>
-<span class="sourceLineNo">646</span>   * Do not call with an observerOperation that is null! Have the caller check.<a name="line.646"></a>
-<span class="sourceLineNo">647</span>   */<a name="line.647"></a>
-<span class="sourceLineNo">648</span>  protected &lt;O, R&gt; R execOperationWithResult(<a name="line.648"></a>
-<span class="sourceLineNo">649</span>      final ObserverOperationWithResult&lt;O, R&gt; observerOperation) throws IOException {<a name="line.649"></a>
-<span class="sourceLineNo">650</span>    boolean bypass = execOperation(observerOperation);<a name="line.650"></a>
-<span class="sourceLineNo">651</span>    R result = observerOperation.getResult();<a name="line.651"></a>
-<span class="sourceLineNo">652</span>    return bypass == observerOperation.isBypassable()? result: null;<a name="line.652"></a>
-<span class="sourceLineNo">653</span>  }<a name="line.653"></a>
-<span class="sourceLineNo">654</span><a name="line.654"></a>
-<span class="sourceLineNo">655</span>  /**<a name="line.655"></a>
-<span class="sourceLineNo">656</span>   * @return True if we are to bypass (Can only be &lt;code&gt;true&lt;/code&gt; if<a name="line.656"></a>
-<span class="sourceLineNo">657</span>   * ObserverOperation#isBypassable().<a name="line.657"></a>
-<span class="sourceLineNo">658</span>   */<a name="line.658"></a>
-<span class="sourceLineNo">659</span>  protected &lt;O&gt; boolean execOperation(final ObserverOperation&lt;O&gt; observerOperation)<a name="line.659"></a>
-<span class="sourceLineNo">660</span>      throws IOException {<a name="line.660"></a>
-<span class="sourceLineNo">661</span>    boolean bypass = false;<a name="line.661"></a>
-<span class="sourceLineNo">662</span>    if (observerOperation == null) {<a name="line.662"></a>
-<span class="sourceLineNo">663</span>      return bypass;<a name="line.663"></a>
-<span class="sourceLineNo">664</span>    }<a name="line.664"></a>
-<span class="sourceLineNo">665</span>    List&lt;E&gt; envs = coprocEnvironments.get();<a name="line.665"></a>
+<span class="sourceLineNo">549</span>    private R result;<a name="line.549"></a>
+<span class="sourceLineNo">550</span><a name="line.550"></a>
+<span class="sourceLineNo">551</span>    public ObserverOperationWithResult(ObserverGetter&lt;C, O&gt; observerGetter, R result) {<a name="line.551"></a>
+<span class="sourceLineNo">552</span>      this(observerGetter, result, false);<a name="line.552"></a>
+<span class="sourceLineNo">553</span>    }<a name="line.553"></a>
+<span class="sourceLineNo">554</span><a name="line.554"></a>
+<span class="sourceLineNo">555</span>    public ObserverOperationWithResult(ObserverGetter&lt;C, O&gt; observerGetter, R result,<a name="line.555"></a>
+<span class="sourceLineNo">556</span>        boolean bypassable) {<a name="line.556"></a>
+<span class="sourceLineNo">557</span>      this(observerGetter, result, null, bypassable);<a name="line.557"></a>
+<span class="sourceLineNo">558</span>    }<a name="line.558"></a>
+<span class="sourceLineNo">559</span><a name="line.559"></a>
+<span class="sourceLineNo">560</span>    public ObserverOperationWithResult(ObserverGetter&lt;C, O&gt; observerGetter, R result,<a name="line.560"></a>
+<span class="sourceLineNo">561</span>        User user) {<a name="line.561"></a>
+<span class="sourceLineNo">562</span>      this(observerGetter, result, user, false);<a name="line.562"></a>
+<span class="sourceLineNo">563</span>    }<a name="line.563"></a>
+<span class="sourceLineNo">564</span><a name="line.564"></a>
+<span class="sourceLineNo">565</span>    private ObserverOperationWithResult(ObserverGetter&lt;C, O&gt; observerGetter, R result, User user,<a name="line.565"></a>
+<span class="sourceLineNo">566</span>        boolean bypassable) {<a name="line.566"></a>
+<span class="sourceLineNo">567</span>      super(observerGetter, user, bypassable);<a name="line.567"></a>
+<span class="sourceLineNo">568</span>      this.result = result;<a name="line.568"></a>
+<span class="sourceLineNo">569</span>    }<a name="line.569"></a>
+<span class="sourceLineNo">570</span><a name="line.570"></a>
+<span class="sourceLineNo">571</span>    protected R getResult() {<a name="line.571"></a>
+<span class="sourceLineNo">572</span>      return this.result;<a name="line.572"></a>
+<span class="sourceLineNo">573</span>    }<a name="line.573"></a>
+<span class="sourceLineNo">574</span><a name="line.574"></a>
+<span class="sourceLineNo">575</span>    void callObserver() throws IOException {<a name="line.575"></a>
+<span class="sourceLineNo">576</span>      Optional&lt;O&gt; observer = observerGetter.apply(getEnvironment().getInstance());<a name="line.576"></a>
+<span class="sourceLineNo">577</span>      if (observer.isPresent()) {<a name="line.577"></a>
+<span class="sourceLineNo">578</span>        result = call(observer.get());<a name="line.578"></a>
+<span class="sourceLineNo">579</span>      }<a name="line.579"></a>
+<span class="sourceLineNo">580</span>    }<a name="line.580"></a>
+<span class="sourceLineNo">581</span>  }<a name="line.581"></a>
+<span class="sourceLineNo">582</span><a name="line.582"></a>
+<span class="sourceLineNo">583</span>  //////////////////////////////////////////////////////////////////////////////////////////<a name="line.583"></a>
+<span class="sourceLineNo">584</span>  // Functions to execute observer hooks and handle results (if any)<a name="line.584"></a>
+<span class="sourceLineNo">585</span>  //////////////////////////////////////////////////////////////////////////////////////////<a name="line.585"></a>
+<span class="sourceLineNo">586</span><a name="line.586"></a>
+<span class="sourceLineNo">587</span>  /**<a name="line.587"></a>
+<span class="sourceLineNo">588</span>   * Do not call with an observerOperation that is null! Have the caller check.<a name="line.588"></a>
+<span class="sourceLineNo">589</span>   */<a name="line.589"></a>
+<span class="sourceLineNo">590</span>  protected &lt;O, R&gt; R execOperationWithResult(<a name="line.590"></a>
+<span class="sourceLineNo">591</span>      final ObserverOperationWithResult&lt;O, R&gt; observerOperation) throws IOException {<a name="line.591"></a>
+<span class="sourceLineNo">592</span>    boolean bypass = execOperation(observerOperation);<a name="line.592"></a>
+<span class="sourceLineNo">593</span>    R result = observerOperation.getResult();<a name="line.593"></a>
+<span class="sourceLineNo">594</span>    return bypass == observerOperation.isBypassable()? result: null;<a name="line.594"></a>
+<span class="sourceLineNo">595</span>  }<a name="line.595"></a>
+<span class="sourceLineNo">596</span><a name="line.596"></a>
+<span class="sourceLineNo">597</span>  /**<a name="line.597"></a>
+<span class="sourceLineNo">598</span>   * @return True if we are to bypass (Can only be &lt;code&gt;true&lt;/code&gt; if<a name="line.598"></a>
+<span class="sourceLineNo">599</span>   * ObserverOperation#isBypassable().<a name="line.599"></a>
+<span class="sourceLineNo">600</span>   */<a name="line.600"></a>
+<span class="sourceLineNo">601</span>  protected &lt;O&gt; boolean execOperation(final ObserverOperation&lt;O&gt; observerOperation)<a name="line.601"></a>
+<span class="sourceLineNo">602</span>      throws IOException {<a name="line.602"></a>
+<span class="sourceLineNo">603</span>    boolean bypass = false;<a name="line.603"></a>
+<span class="sourceLineNo">604</span>    if (observerOperation == null) {<a name="line.604"></a>
+<span class="sourceLineNo">605</span>      return bypass;<a name="line.605"></a>
+<span class="sourceLineNo">606</span>    }<a name="line.606"></a>
+<span class="sourceLineNo">607</span>    List&lt;E&gt; envs = coprocEnvironments.get();<a name="line.607"></a>
+<span class="sourceLineNo">608</span>    for (E env : envs) {<a name="line.608"></a>
+<span class="sourceLineNo">609</span>      observerOperation.prepare(env);<a name="line.609"></a>
+<span class="sourceLineNo">610</span>      Thread currentThread = Thread.currentThread();<a name="line.610"></a>
+<span class="sourceLineNo">611</span>      ClassLoader cl = currentThread.getContextClassLoader();<a name="line.611"></a>
+<span class="sourceLineNo">612</span>      try {<a name="line.612"></a>
+<span class="sourceLineNo">613</span>        currentThread.setContextClassLoader(env.getClassLoader());<a name="line.613"></a>
+<span class="sourceLineNo">614</span>        observerOperation.callObserver();<a name="line.614"></a>
+<span class="sourceLineNo">615</span>      } catch (Throwable e) {<a name="line.615"></a>
+<span class="sourceLineNo">616</span>        handleCoprocessorThrowable(env, e);<a name="line.616"></a>
+<span class="sourceLineNo">617</span>      } finally {<a name="line.617"></a>
+<span class="sourceLineNo">618</span>        currentThread.setContextClassLoader(cl);<a name="line.618"></a>
+<span class="sourceLineNo">619</span>      }<a name="line.619"></a>
+<span class="sourceLineNo">620</span>      // Internal to shouldBypass, it checks if obeserverOperation#isBypassable().<a name="line.620"></a>
+<span class="sourceLineNo">621</span>      bypass |= observerOperation.shouldBypass();<a name="line.621"></a>
+<span class="sourceLineNo">622</span>      observerOperation.postEnvCall();<a name="line.622"></a>
+<span class="sourceLineNo">623</span>      if (bypass) {<a name="line.623"></a>
+<span class="sourceLineNo">624</span>        // If CP says bypass, skip out w/o calling any following CPs; they might ruin our response.<a name="line.624"></a>
+<span class="sourceLineNo">625</span>        // In hbase1, this used to be called 'complete'. In hbase2, we unite bypass and 'complete'.<a name="line.625"></a>
+<span class="sourceLineNo">626</span>        break;<a name="line.626"></a>
+<span class="sourceLineNo">627</span>      }<a name="line.627"></a>
+<span class="sourceLineNo">628</span>    }<a name="line.628"></a>
+<span class="sourceLineNo">629</span>    return bypass;<a name="line.629"></a>
+<span class="sourceLineNo">630</span>  }<a name="line.630"></a>
+<span class="sourceLineNo">631</span><a name="line.631"></a>
+<span class="sourceLineNo">632</span>  /**<a name="line.632"></a>
+<span class="sourceLineNo">633</span>   * Coprocessor classes can be configured in any order, based on that priority is set and<a name="line.633"></a>
+<span class="sourceLineNo">634</span>   * chained in a sorted order. Should be used preStop*() hooks i.e. when master/regionserver is<a name="line.634"></a>
+<span class="sourceLineNo">635</span>   * going down. This function first calls coprocessor methods (using ObserverOperation.call())<a name="line.635"></a>
+<span class="sourceLineNo">636</span>   * and then shutdowns the environment in postEnvCall(). &lt;br&gt;<a name="line.636"></a>
+<span class="sourceLineNo">637</span>   * Need to execute all coprocessor methods first then postEnvCall(), otherwise some coprocessors<a name="line.637"></a>
+<span class="sourceLineNo">638</span>   * may remain shutdown if any exception occurs during next coprocessor execution which prevent<a name="line.638"></a>
+<span class="sourceLineNo">639</span>   * master/regionserver stop or cluster shutdown. (Refer:<a name="line.639"></a>
+<span class="sourceLineNo">640</span>   * &lt;a href="https://issues.apache.org/jira/browse/HBASE-16663"&gt;HBASE-16663&lt;/a&gt;<a name="line.640"></a>
+<span class="sourceLineNo">641</span>   * @return true if bypaas coprocessor execution, false if not.<a name="line.641"></a>
+<span class="sourceLineNo">642</span>   * @throws IOException<a name="line.642"></a>
+<span class="sourceLineNo">643</span>   */<a name="line.643"></a>
+<span class="sourceLineNo">644</span>  protected &lt;O&gt; boolean execShutdown(final ObserverOperation&lt;O&gt; observerOperation)<a name="line.644"></a>
+<span class="sourceLineNo">645</span>      throws IOException {<a name="line.645"></a>
+<span class="sourceLineNo">646</span>    if (observerOperation == null) return false;<a name="line.646"></a>
+<span class="sourceLineNo">647</span>    boolean bypass = false;<a name="line.647"></a>
+<span class="sourceLineNo">648</span>    List&lt;E&gt; envs = coprocEnvironments.get();<a name="line.648"></a>
+<span class="sourceLineNo">649</span>    // Iterate the coprocessors and execute ObserverOperation's call()<a name="line.649"></a>
+<span class="sourceLineNo">650</span>    for (E env : envs) {<a name="line.650"></a>
+<span class="sourceLineNo">651</span>      observerOperation.prepare(env);<a name="line.651"></a>
+<span class="sourceLineNo">652</span>      Thread currentThread = Thread.currentThread();<a name="line.652"></a>
+<span class="sourceLineNo">653</span>      ClassLoader cl = currentThread.getContextClassLoader();<a name="line.653"></a>
+<span class="sourceLineNo">654</span>      try {<a name="line.654"></a>
+<span class="sourceLineNo">655</span>        currentThread.setContextClassLoader(env.getClassLoader());<a name="line.655"></a>
+<span class="sourceLineNo">656</span>        observerOperation.callObserver();<a name="line.656"></a>
+<span class="sourceLineNo">657</span>      } catch (Throwable e) {<a name="line.657"></a>
+<span class="sourceLineNo">658</span>        handleCoprocessorThrowable(env, e);<a name="line.658"></a>
+<span class="sourceLineNo">659</span>      } finally {<a name="line.659"></a>
+<span class="sourceLineNo">660</span>        currentThread.setContextClassLoader(cl);<a name="line.660"></a>
+<span class="sourceLineNo">661</span>      }<a name="line.661"></a>
+<span class="sourceLineNo">662</span>      bypass |= observerOperation.shouldBypass();<a name="line.662"></a>
+<span class="sourceLineNo">663</span>    }<a name="line.663"></a>
+<span class="sourceLineNo">664</span><a name="line.664"></a>
+<span class="sourceLineNo">665</span>    // Iterate the coprocessors and execute ObserverOperation's postEnvCall()<a name="line.665"></a>
 <span class="sourceLineNo">666</span>    for (E env : envs) {<a name="line.666"></a>
 <span class="sourceLineNo">667</span>      observerOperation.prepare(env);<a name="line.667"></a>
-<span class="sourceLineNo">668</span>      Thread currentThread = Thread.currentThread();<a name="line.668"></a>
-<span class="sourceLineNo">669</span>      ClassLoader cl = currentThread.getContextClassLoader();<a name="line.669"></a>
-<span class="sourceLineNo">670</span>      try {<a name="line.670"></a>
-<span class="sourceLineNo">671</span>        currentThread.setContextClassLoader(env.getClassLoader());<a name="line.671"></a>
-<span class="sourceLineNo">672</span>        observerOperation.callObserver();<a name="line.672"></a>
-<span class="sourceLineNo">673</span>      } catch (Throwable e) {<a name="line.673"></a>
-<span class="sourceLineNo">674</span>        handleCoprocessorThrowable(env, e);<a name="line.674"></a>
-<span class="sourceLineNo">675</span>      } finally {<a name="line.675"></a>
-<span class="sourceLineNo">676</span>        currentThread.setContextClassLoader(cl);<a name="line.676"></a>
-<span class="sourceLineNo">677</span>      }<a name="line.677"></a>
-<span class="sourceLineNo">678</span>      // Internal to shouldBypass, it checks if obeserverOperation#isBypassable().<a name="line.678"></a>
-<span class="sourceLineNo">679</span>      bypass |= observerOperation.shouldBypass();<a name="line.679"></a>
-<span class="sourceLineNo">680</span>      observerOperation.postEnvCall();<a name="line.680"></a>
-<span class="sourceLineNo">681</span>      if (bypass) {<a name="line.681"></a>
-<span class="sourceLineNo">682</span>        // If CP says bypass, skip out w/o calling any following CPs; they might ruin our response.<a name="line.682"></a>
-<span class="sourceLineNo">683</span>        // In hbase1, this used to be called 'complete'. In hbase2, we unite bypass and 'complete'.<a name="line.683"></a>
-<span class="sourceLineNo">684</span>        break;<a name="line.684"></a>
-<span class="sourceLineNo">685</span>      }<a name="line.685"></a>
-<span class="sourceLineNo">686</span>    }<a name="line.686"></a>
-<span class="sourceLineNo">687</span>    return bypass;<a name="line.687"></a>
-<span class="sourceLineNo">688</span>  }<a name="line.688"></a>
-<span class="sourceLineNo">689</span><a name="line.689"></a>
-<span class="sourceLineNo">690</span>  /**<a name="line.690"></a>
-<span class="sourceLineNo">691</span>   * Coprocessor classes can be configured in any order, based on that priority is set and<a name="line.691"></a>
-<span class="sourceLineNo">692</span>   * chained in a sorted order. Should be used preStop*() hooks i.e. when master/regionserver is<a name="line.692"></a>
-<span class="sourceLineNo">693</span>   * going down. This function first calls coprocessor methods (using ObserverOperation.call())<a name="line.693"></a>
-<span class="sourceLineNo">694</span>   * and then shutdowns the environment in postEnvCall(). &lt;br&gt;<a name="line.694"></a>
-<span class="sourceLineNo">695</span>   * Need to execute all coprocessor methods first then postEnvCall(), otherwise some coprocessors<a name="line.695"></a>
-<span class="sourceLineNo">696</span>   * may remain shutdown if any exception occurs during next coprocessor execution which prevent<a name="line.696"></a>
-<span class="sourceLineNo">697</span>   * master/regionserver stop or cluster shutdown. (Refer:<a name="line.697"></a>
-<span class="sourceLineNo">698</span>   * &lt;a href="https://issues.apache.org/jira/browse/HBASE-16663"&gt;HBASE-16663&lt;/a&gt;<a name="line.698"></a>
-<span class="sourceLineNo">699</span>   * @return true if bypaas coprocessor execution, false if not.<a name="line.699"></a>
-<span class="sourceLineNo">700</span>   * @throws IOException<a name="line.700"></a>
-<span class="sourceLineNo">701</span>   */<a name="line.701"></a>
-<span class="sourceLineNo">702</span>  protected &lt;O&gt; boolean execShutdown(final ObserverOperation&lt;O&gt; observerOperation)<a name="line.702"></a>
-<span class="sourceLineNo">703</span>      throws IOException {<a name="line.703"></a>
-<span class="sourceLineNo">704</span>    if (observerOperation == null) return false;<a name="line.704"></a>
-<span class="sourceLineNo">705</span>    boolean bypass = false;<a name="line.705"></a>
-<span class="sourceLineNo">706</span>    List&lt;E&gt; envs = coprocEnvironments.get();<a name="line.706"></a>
-<span class="sourceLineNo">707</span>    // Iterate the coprocessors and execute ObserverOperation's call()<a name="line.707"></a>
-<span class="sourceLineNo">708</span>    for (E env : envs) {<a name="line.708"></a>
-<span class="sourceLineNo">709</span>      observerOperation.prepare(env);<a name="line.709"></a>
-<span class="sourceLineNo">710</span>      Thread currentThread = Thread.currentThread();<a name="line.710"></a>
-<span class="sourceLineNo">711</span>      ClassLoader cl = currentThread.getContextClassLoader();<a name="line.711"></a>
-<span class="sourceLineNo">712</span>      try {<a name="line.712"></a>
-<span class="sourceLineNo">713</span>        currentThread.setContextClassLoader(env.getClassLoader());<a name="line.713"></a>
-<span class="sourceLineNo">714</span>        observerOperation.callObserver();<a name="line.714"></a>
-<span class="sourceLineNo">715</span>      } catch (Throwable e) {<a name="line.715"></a>
-<span class="sourceLineNo">716</span>        handleCoprocessorThrowable(env, e);<a name="line.716"></a>
-<span class="sourceLineNo">717</span>      } finally {<a name="line.717"></a>
-<span class="sourceLineNo">718</span>        currentThread.setContextClassLoader(cl);<a name="line.718"></a>
-<span class="sourceLineNo">719</span>      }<a name="line.719"></a>
-<span class="sourceLineNo">720</span>      bypass |= observerOperation.shouldBypass();<a name="line.720"></a>
-<span class="sourceLineNo">721</span>    }<a name="line.721"></a>
-<span class="sourceLineNo">722</span><a name="line.722"></a>
-<span class="sourceLineNo">723</span>    // Iterate the coprocessors and execute ObserverOperation's postEnvCall()<a name="line.723"></a>
-<span class="sourceLineNo">724</span>    for (E env : envs) {<a name="line.724"></a>
-<span class="sourceLineNo">725</span>      observerOperation.prepare(env);<a name="line.725"></a>
-<span class="sourceLineNo">726</span>      observerOperation.postEnvCall();<a name="line.726"></a>
-<span class="sourceLineNo">727</span>    }<a name="line.727"></a>
-<span class="sourceLineNo">728</span>    return bypass;<a name="line.728"></a>
-<span class="sourceLineNo">729</span>  }<a name="line.729"></a>
-<span class="sourceLineNo">730</span>}<a name="line.730"></a>
+<span class="sourceLineNo">668</span>      observerOperation.postEnvCall();<a name="line.668"></a>
+<span class="sourceLineNo">669</span>    }<a name="line.669"></a>
+<span class="sourceLineNo">670</span>    return bypass;<a name="line.670"></a>
+<span class="sourceLineNo">671</span>  }<a name="line.671"></a>
+<span class="sourceLineNo">672</span>}<a name="line.672"></a>
 
 
 


Mime
View raw message