01: /*
02: * Copyright (c) 1998 - 2005 Versant Corporation
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * Versant Corporation - initial API and implementation
10: */
11: package com.versant.core.metric;
12:
13: /**
14: * Provides data for a number of Metric's.
15: * @keep-all
16: */
17: public interface MetricDataSource {
18:
19: /**
20: * Get the value of sampleNo for the given metricIndex. If sampleNo is
21: * before the first sample then return the first sample. If sampleNo is
22: * after the last sample then return the last sample.
23: */
24: public int getSample(int sampleNo, int metricIndex);
25:
26: }
|