KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > clif > datacollector > api > DataCollectorWrite


1 /*
2 * CLIF is a Load Injection Framework
3 * Copyright (C) 2003,2004 France Telecom R&D
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 *
19 * CLIF $Name: $
20 *
21 * Contact: clif@objectweb.org
22 */

23
24 package org.objectweb.clif.datacollector.api;
25
26
27 import org.objectweb.clif.storage.api.LifeCycleEvent;
28 import org.objectweb.clif.storage.api.AlarmEvent;
29 import org.objectweb.clif.storage.api.ActionEvent;
30 import org.objectweb.clif.storage.api.ProbeEvent;
31
32 import java.io.Serializable JavaDoc;
33
34
35 /**
36  * Interface for collecting information generated by a blade.
37  *
38  * @author Bruno Dillenseger
39  */

40 public interface DataCollectorWrite
41 {
42     public final String JavaDoc DATA_COLLECTOR_WRITE = "Data collector write";
43
44
45     /**
46      * Initialize a test
47      * @param testId test identifier
48      * @param bladeId scenario identifier
49      */

50     public void init(Serializable JavaDoc testId, String JavaDoc bladeId);
51
52
53     /**
54      * End of a test
55      */

56     public void terminate();
57
58
59     /**
60      * Add a new lifecycle event
61      * @param event new lifecycle event
62      */

63     public void add(LifeCycleEvent event);
64
65     /**
66      * Add a new action (injection) event
67      * @param action new measure
68      */

69     public void add(ActionEvent action);
70
71     /**
72      * Add a new alarm
73      * @param alarm new alarm event
74      */

75      public void add(AlarmEvent alarm);
76
77      /**
78       * Add a new probe (measure) event
79       * @param measure
80       */

81      public void add(ProbeEvent measure);
82 }
83
Popular Tags