KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > joram > shared > admin > CreateDestinationRequest


1 /*
2  * JORAM: Java(TM) Open Reliable Asynchronous Messaging
3  * Copyright (C) 2001 - 2006 ScalAgent Distributed Technologies
4  * Copyright (C) 1996 - 2000 Dyade
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
19  * USA.
20  *
21  * Initial developer(s): ScalAgent Distributed Technologies
22  * Contributor(s):
23  */

24 package org.objectweb.joram.shared.admin;
25
26 import java.util.Properties JavaDoc;
27
28 /**
29  * A <code>CreateDestinationRequest</code> instance requests the creation of a
30  * destination on a given server.
31  */

32 public class CreateDestinationRequest extends AdminRequest {
33   private static final long serialVersionUID = 4956998807717134521L;
34
35   /** Id of the server where deploying the destination. */
36   private int serverId;
37
38   /** Name attributed to the destination. */
39   private String JavaDoc name;
40
41   /** Name of the class to be instanciated. */
42   private String JavaDoc className;
43  
44   /** Properties needed to create destination object. */
45   private Properties JavaDoc props;
46
47   private String JavaDoc expectedType;
48
49   /**
50    * Constructs a <code>CreateDestinationRequest</code> instance.
51    *
52    * @param serverId The id of the server where deploying the destination.
53    * @param name Name attributed to the destination.
54    * @param className Name of the class to be instanciated.
55    */

56   public CreateDestinationRequest(int serverId,
57                                   String JavaDoc name,
58                                   String JavaDoc className,
59                                   Properties JavaDoc props,
60                                   String JavaDoc expectedType) {
61     this.serverId = serverId;
62     this.name = name;
63     this.className = className;
64     this.props = props;
65     this.expectedType = expectedType;
66   }
67
68   /** Returns the id of the server where deploying the destination. */
69   public final int getServerId() {
70     return serverId;
71   }
72
73   /** Returns the name attributed to the destination. */
74   public final String JavaDoc getDestinationName() {
75     return name;
76   }
77
78   /** Returns the class name of destination (queue, topic, ...). */
79   public final String JavaDoc getClassName() {
80     return className;
81   }
82
83   /** Returns the destination properties. */
84   public final Properties JavaDoc getProperties() {
85     return props;
86   }
87
88   public final String JavaDoc getExpectedType() {
89     return expectedType;
90   }
91 }
92
Popular Tags