KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > joram > mom > proxies > ProxyAgentItf


1 /*
2  * JORAM: Java(TM) Open Reliable Asynchronous Messaging
3  * Copyright (C) 2003 - ScalAgent Distributed Technologies
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.1 of the License, or 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
18  * USA.
19  *
20  * Initial developer(s): Frederic Maistre (INRIA)
21  * Contributor(s):
22  */

23 package org.objectweb.joram.mom.proxies;
24
25 import fr.dyade.aaa.agent.AgentId;
26 import fr.dyade.aaa.agent.Notification;
27 import org.objectweb.joram.shared.client.AbstractJmsReply;
28
29
30 /**
31  * The <code>ProxyAgentItf</code> interface defines the methods which must be
32  * provided by a proxy agent hosting a <code>ProxyImpl</code> instance.
33  *
34  * @see org.objectweb.joram.shared.tcp.JmsProxy
35  * @see org.objectweb.joram.shared.soap.SoapProxy
36  */

37 public interface ProxyAgentItf {
38   /** Returns the proxy's <code>AgentId</code> identifier. */
39   public AgentId getId();
40
41   /** Sends a notification to a given agent. */
42   public void sendNot(AgentId to, Notification not);
43
44   /**
45    * Sends an <code>AbstractJmsReply</code> to a given client.
46    *
47    * @param id Identifies the context within which the sending occurs.
48    * @param reply The reply to send to the client.
49    */

50   public void sendToClient(int id, AbstractJmsReply reply);
51
52   public void setNoSave();
53   public void setSave();
54 }
55
Popular Tags