1 package net.sf.mavenhist.persistency;
2
3 /**
4 * Metric persistency interface.
5 */
6 public interface IPersistency {
7
8 /**
9 * Stores a collection of metrics to a persistable form.
10 *
11 * @param metrics to store
12 * @throws PersistencyException in case of error
13 */
14 void storeMetrics(Metric[] metrics) throws PersistencyException;
15
16 /**
17 * Creates the needed tables to store the metricdata in.
18 *
19 * @throws PersistencyException in case of error
20 */
21 void initializeMetricsDataBase() throws PersistencyException;
22 }