KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > invocation > jrmp > server > JRMPProxyFactoryMBean


1 /*
2 * JBoss, Home of Professional Open Source
3 * Copyright 2005, JBoss Inc., and individual contributors as indicated
4 * by the @authors tag. See the copyright.txt in the distribution for a
5 * full listing of individual contributors.
6 *
7 * This is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU Lesser General Public License as
9 * published by the Free Software Foundation; either version 2.1 of
10 * the License, or (at your option) any later version.
11 *
12 * This software is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this software; if not, write to the Free
19 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20 * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
21 */

22 package org.jboss.invocation.jrmp.server;
23
24 import javax.management.ObjectName JavaDoc;
25
26 import org.jboss.system.ServiceMBean;
27 import org.jboss.invocation.Invocation;
28
29 import org.w3c.dom.Element JavaDoc;
30
31 /** An mbean interface for a proxy factory that can expose any interface
32  * with RMI compatible semantics for access to remote clients using JRMP
33  * as the transport protocol.
34  *
35  * @author Scott.Stark@jboss.org
36  * @version $Revision: 37459 $
37  */

38 public interface JRMPProxyFactoryMBean extends ServiceMBean
39 {
40    /** Get the server side JRMPInvoker mbean that will be used as the
41     * RMI/JRMP transport handler.
42     */

43    public ObjectName JavaDoc getInvokerName();
44    /** Set the server side JRMPInvoker mbean that will be used as the
45     * RMI/JRMP transport handler.
46     */

47    public void setInvokerName(ObjectName JavaDoc jmxInvokerName);
48
49    /** Get the server side mbean that exposes the invoke operation for the
50     exported interface */

51    public ObjectName JavaDoc getTargetName();
52    /** Set the server side mbean that exposes the invoke operation for the
53     exported interface */

54    public void setTargetName(ObjectName JavaDoc targetName);
55
56    /** Get the JNDI name under which the HttpInvokerProxy will be bound */
57    public String JavaDoc getJndiName();
58    /** Set the JNDI name under which the HttpInvokerProxy will be bound */
59    public void setJndiName(String JavaDoc jndiName);
60
61    /** Get the RMI compatible interface that the JRMPInvokerProxy implements */
62    public Class JavaDoc getExportedInterface();
63    /** Set the RMI compatible interface that the JRMPInvokerProxy implements */
64    public void setExportedInterface(Class JavaDoc exportedInterface);
65
66    /** Get the RMI compatible interface that the JRMPInvokerProxy implements */
67    public Class JavaDoc[] getExportedInterfaces();
68    /** Set the RMI compatible interface that the JRMPInvokerProxy implements */
69    public void setExportedInterfaces(Class JavaDoc[] exportedInterface);
70
71    /** Get the proxy client side interceptor configuration
72     *
73     * @return the proxy client side interceptor configuration
74     */

75    public Element JavaDoc getClientInterceptors();
76    /** Set the proxy client side interceptor configuration
77     *
78     * @param config the proxy client side interceptor configuration
79     */

80    public void setClientInterceptors(Element JavaDoc config) throws Exception JavaDoc;
81
82    /**
83     * @return whether invocations go to the target method instead of invoke(Invocation mi)
84     */

85    public boolean getInvokeTargetMethod();
86    /**
87     * @param invokeTargetMethod whether invocations should go to the target method instead of invoke(Invocation mi)
88     */

89    public void setInvokeTargetMethod(boolean invokeTargetMethod);
90
91    /** Get the proxy instance created by the factory.
92     */

93    public Object JavaDoc getProxy();
94
95    public Object JavaDoc invoke(Invocation mi) throws Exception JavaDoc;
96 }
97
Popular Tags