KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > joram > mom > notifications > SetFatherRequest


1 /*
2  * JORAM: Java(TM) Open Reliable Asynchronous Messaging
3  * Copyright (C) 2001 - ScalAgent Distributed Technologies
4  * Copyright (C) 1996 - 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): Frederic Maistre (INRIA)
22  * Contributor(s):
23  */

24 package org.objectweb.joram.mom.notifications;
25
26 import fr.dyade.aaa.agent.AgentId;
27
28 /**
29  * A <code>SetFatherRequest</code> instance is used by a client agent
30  * for notifying a topic it belongs to a hierarchy as the son of a given
31  * topic.
32  */

33 public class SetFatherRequest extends AdminRequest
34 {
35   /** The hierarchical father identifier. */
36   private AgentId fatherId;
37
38
39   /**
40    * Constructs a <code>SetFatherRequest</code> instance.
41    *
42    * @param id Identifier of the request, may be null.
43    * @param fatherId The hierarchical father identifier.
44    */

45   public SetFatherRequest(String JavaDoc id, AgentId fatherId)
46   {
47     super(id);
48     this.fatherId = fatherId;
49   }
50
51
52   /** Returns the hierarchical father identifier. */
53   public AgentId getFatherId()
54   {
55     return fatherId;
56   }
57 }
58
Popular Tags