KickJava   Java API By Example, From Geeks To Geeks.

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


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
27 /**
28  * For scenario deployment definition.
29  * @author Bruno Dillenseger
30  */

31 public class DeployDefinition
32 {
33     protected String JavaDoc servername;
34     protected String JavaDoc classname;
35     protected String JavaDoc argument;
36     protected String JavaDoc role;
37
38
39     /**
40      * Creates a new scenario deployment definition.
41      * @param servername the name of the CLIF server where this scenario must be deployed
42      * @param classname the fully qualified class name of the scenario class that must be
43      * instantiated
44      * @param argument the scenario argument to be set
45      * @param role an arbitrary String to be associated with this scenario (e.g. a role for
46      * the scenario or any other useful information for monitoring or results reading...)
47      */

48     public DeployDefinition(String JavaDoc servername, String JavaDoc classname, String JavaDoc argument, String JavaDoc role)
49     {
50         this.servername = servername;
51         this.classname = classname;
52         this.argument = argument;
53         this.role = role;
54     }
55
56
57     /**
58      * @return the CLIF server name involved by this deployment definition.
59      */

60     public String JavaDoc getServerName()
61     {
62         return servername;
63     }
64
65
66     /**
67      * @return the scenario class name
68      */

69     public String JavaDoc getClassName()
70     {
71         return classname;
72     }
73
74
75     /**
76      * @return the scenario argument string
77      */

78     public String JavaDoc getArgument()
79     {
80         return argument;
81     }
82
83
84     /**
85      * @return the role played by the scenario (an arbitrary string)
86      */

87     public String JavaDoc getRole()
88     {
89         return role;
90     }
91
92     public String JavaDoc toString()
93     {
94         return
95             "server=" + servername
96             + ", class=" + classname
97             + ", argument=" + argument
98             + ", role=" + role;
99     }
100 }
101
Popular Tags