1 /* 2 * Sun Public License 3 * 4 * The contents of this file are subject to the Sun Public License Version 5 * 1.0 (the "License"). You may not use this file except in compliance with 6 * the License. A copy of the License is available at http://www.sun.com/ 7 * 8 * The Original Code is the SLAMD Distributed Load Generation Engine. 9 * The Initial Developer of the Original Code is Neil A. Wilson. 10 * Portions created by Neil A. Wilson are Copyright (C) 2004. 11 * Some preexisting portions Copyright (C) 2002-2004 Sun Microsystems, Inc. 12 * All Rights Reserved. 13 * 14 * Contributor(s): Neil A. Wilson 15 */ 16 package com.sun.slamd.example; 17 18 19 20 import com.sun.slamd.job.*; 21 import com.sun.slamd.stat.*; 22 23 24 25 /** 26 * This class defines a generic type of job class that may be used in checking 27 * latency associated with replicated operations. It merely defines a few 28 * additional attributes that are expected to be present in subclasses that can 29 * be accessed by the threads that perform the work of checking the latency. 30 * 31 * 32 * @author Neil A. Wilson 33 */ 34 public abstract class ReplicaLatencyCheckJobClass 35 extends JobClass 36 { 37 // The stat tracker that is used to categorize the latencies by second. 38 protected CategoricalTracker latencyCategories; 39 40 // The mutex used to help in the latency timing. 41 protected Object latencyCheckMutex; 42 43 // The stat tracker that is used to determine how much time passes between a 44 // change occurs on a master and the change appears in a consumer. 45 protected TimeTracker latencyTime; 46 } 47 48