/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

package org.apache.jmeter.samplers;

/**
 * Allows notification just before and just after a sample is invoked.
 * Intended for the SampleTimeout test element
 */
public interface SampleMonitor {

    /**
     * A sample is about to start
     */
    void sampleStarting(Sampler sampler);

    /**
     * A sample has just finished
     */
    void sampleEnded(Sampler sampler);
}

@@ -1001,33 +1001,53 @@
 %0A    /**%0A     * 
-A
+Will be called when a
  sample is about
@@ -1056,16 +1056,66 @@
 o start%0A
+     * @param sampler sample that will be started%0A
      */%0A
@@ -1172,17 +1172,37 @@
 %0A     * 
-A
+Will be called when a
  sample 
@@ -1219,16 +1219,54 @@
 inished%0A
+     * @param sampler finished sample%0A
      */%0A

Javadoc. Add param attribute and rephrase description a bit.