1 2 /* 3 * Copyright (c) 1998 - 2005 Versant Corporation 4 * All rights reserved. This program and the accompanying materials 5 * are made available under the terms of the Eclipse Public License v1.0 6 * which accompanies this distribution, and is available at 7 * http://www.eclipse.org/legal/epl-v10.html 8 * 9 * Contributors: 10 * Versant Corporation - initial API and implementation 11 */ 12 package com.versant.core.metric; 13 14 import java.util.List; 15 16 /** 17 * Classes that keep performance metrics implement this. 18 */ 19 public interface HasMetrics { 20 21 /** 22 * Add all Metric's to the List. 23 */ 24 public void addMetrics(List list); 25 26 /** 27 * Get values for our metrics. 28 */ 29 public void sampleMetrics(int[][] buf, int pos); 30 31 } 32 33