KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > clif > supervisor > api > TestControl


1 /*
2 * CLIF is a Load Injection Framework
3 * Copyright (C) 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.supervisor.api;
25
26 import org.objectweb.clif.server.api.ActivityControl;
27 import java.util.Observer JavaDoc;
28
29 /**
30  * Interface for controling a (distributed) test plan: deployment, initialization, start, stop...
31  * @author Bruno Dillenseger
32  */

33 public interface TestControl extends ActivityControl
34 {
35     static public final String JavaDoc TEST_CONTROL = "Test control";
36
37     /**
38      * Collects all data generated by the latest test, from every CLIF server
39      */

40     public void collect();
41
42     /**
43      * Retrieve the ActionStat of a specific host.
44      * @param bladeId The blade identifier to get the statistical data from
45      * @return An array containing some informations about the test for this host
46      */

47     public long[] getStats(String JavaDoc bladeId);
48
49     /**
50      * Retrieve the ActionStat of a specific host.
51      * @param bladeId The blade identifier to get the statistics labels from
52      * @return An array containing some informations about the test for this host
53      */

54     public String JavaDoc[] getStatLabels(String JavaDoc bladeId);
55
56     public void addObserver(Observer JavaDoc obs);
57
58     public void deleteObservers();
59 }
60
Popular Tags