KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > versant > core > metric > MetricDataSource


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 /**
15  * Provides data for a number of Metric's.
16  * @keep-all
17  */

18 public interface MetricDataSource {
19
20     /**
21      * Get the value of sampleNo for the given metricIndex. If sampleNo is
22      * before the first sample then return the first sample. If sampleNo is
23      * after the last sample then return the last sample.
24      */

25     public int getSample(int sampleNo, int metricIndex);
26
27 }
28
29
Popular Tags