KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > clif > deploy > 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.deploy;
25
26 import java.util.Map JavaDoc;
27
28
29 /**
30  * For scenario deployment definition.
31  * @author Bruno Dillenseger
32  */

33 public class DeployDefinition
34 {
35     private String JavaDoc servername;
36     private String JavaDoc adlDefinition;
37     private Map JavaDoc context;
38     private String JavaDoc argument;
39     private String JavaDoc comment;
40
41
42     /**
43      * Creates a new scenario deployment definition.
44      * @param servername the name of the CLIF server where this scenario must be deployed
45      * @param adlDefinition the fully qualified name of the file containing the Fractal definition
46      * for the component to be deployed
47      * @param context the context that will be used when instantiating the component
48      * @param argument the blade argument to be set
49      * @param comment an arbitrary String to be associated with this blade (e.g. a role for
50      * the blade or any other useful information or comment for monitoring or results reading...)
51      */

52     public DeployDefinition(
53         String JavaDoc servername,
54         String JavaDoc adlDefinition,
55         Map JavaDoc context,
56         String JavaDoc argument,
57         String JavaDoc comment)
58     {
59         this.servername = servername;
60         this.adlDefinition = adlDefinition;
61         this.context = context;
62         this.argument = argument;
63         this.comment = comment;
64     }
65
66
67     /**
68      * @return the CLIF server name involved by this deployment definition.
69      */

70     public String JavaDoc getServerName()
71     {
72         return servername;
73     }
74
75
76     /**
77      * @return the fully qualified name of the resource file holding the ADL definition
78      * for the deployed component.
79      */

80     public String JavaDoc getAdlDefinition()
81     {
82         return adlDefinition;
83     }
84
85
86     /**
87      * @return the blade creation context
88      */

89     public Map JavaDoc getContext()
90     {
91         return context;
92     }
93
94
95     /**
96      * @return the scenario argument string
97      */

98     public String JavaDoc getArgument()
99     {
100         return argument;
101     }
102
103
104     /**
105      * @return the comment played by the scenario (an arbitrary string)
106      */

107     public String JavaDoc getComment()
108     {
109         return comment;
110     }
111
112
113     public String JavaDoc toString()
114     {
115         return
116             "server=" + servername
117             + ", ADL definition=" + adlDefinition
118             + ", context=" + context
119             + ", argument=" + argument
120             + ", comment=" + comment;
121     }
122 }
123
Popular Tags