/* The contents of this file are subject to the terms * of the Common Development and Distribution License * (the License). You may not use this file except in * compliance with the License. * * You can obtain a copy of the License at * http://www.sun.com/cddl/cddl.html or * install_dir/legal/LICENSE * See the License for the specific language governing * permission and limitations under the License. * * When distributing Covered Code, include this CDDL * Header Notice in each file and include the License file * at install_dir/legal/LICENSE. * If applicable, add the following below the CDDL Header, * with the fields enclosed by brackets [] replaced by * your own identifying information: * "Portions Copyrighted [year] [name of copyright owner]" * * $Id$ * * Copyright 2005-2009 Sun Microsystems Inc. All Rights Reserved */ package sample.harness; import com.sun.faban.harness.Configure; import com.sun.faban.harness.DefaultFabanBenchmark2; import java.util.logging.Logger; /** * Harness hook for the sample web benchmark. This class is not needed * for benchmarks implemented using the Faban Driver Framework if the * default behavior is sufficient. We just show the hooks you can * customize in this class. If the default behavior is desired, you can * leave out the benchmark-class element in benchmark.xml. * * @author Akara Sucharitakul */ public class WebBenchmark extends DefaultFabanBenchmark2 { static Logger logger = Logger.getLogger(WebBenchmark.class.getName()); /** * This method is called to configure the specific benchmark run * Tasks done in this method include reading user parameters, * logging them and initializing various local variables. * * @throws Exception If configuration was not successful */ @Configure public void configure() throws Exception { } // Equivalently, you can also override the @Validate, @StartRun, @EndRun, // @PostRun, and @Kill signatures. }