org.jboss.invocation.jrmp.server
Interface JRMPProxyFactoryMBean

All Superinterfaces:
org.jboss.system.Service, org.jboss.system.ServiceMBean
All Known Implementing Classes:
JRMPProxyFactory

public interface JRMPProxyFactoryMBean
extends org.jboss.system.ServiceMBean

An mbean interface for a proxy factory that can expose any interface with RMI compatible semantics for access to remote clients using JRMP as the transport protocol.

Version:
$Revision: 1.4.6.2 $
Author:
Scott.Stark@jboss.org

Field Summary
 
Fields inherited from interface org.jboss.system.ServiceMBean
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED
 
Method Summary
 Element getClientInterceptors()
          Get the proxy client side interceptor configuration
 Class getExportedInterface()
          Get the RMI compatible interface that the JRMPInvokerProxy implements
 Class[] getExportedInterfaces()
          Get the RMI compatible interface that the JRMPInvokerProxy implements
 javax.management.ObjectName getInvokerName()
          Get the server side JRMPInvoker mbean that will be used as the RMI/JRMP transport handler.
 boolean getInvokeTargetMethod()
           
 String getJndiName()
          Get the JNDI name under which the HttpInvokerProxy will be bound
 Object getProxy()
          Get the proxy instance created by the factory.
 javax.management.ObjectName getTargetName()
          Get the server side mbean that exposes the invoke operation for the exported interface
 Object invoke(Invocation mi)
           
 void setClientInterceptors(Element config)
          Set the proxy client side interceptor configuration
 void setExportedInterface(Class exportedInterface)
          Set the RMI compatible interface that the JRMPInvokerProxy implements
 void setExportedInterfaces(Class[] exportedInterface)
          Set the RMI compatible interface that the JRMPInvokerProxy implements
 void setInvokerName(javax.management.ObjectName jmxInvokerName)
          Set the server side JRMPInvoker mbean that will be used as the RMI/JRMP transport handler.
 void setInvokeTargetMethod(boolean invokeTargetMethod)
           
 void setJndiName(String jndiName)
          Set the JNDI name under which the HttpInvokerProxy will be bound
 void setTargetName(javax.management.ObjectName targetName)
          Set the server side mbean that exposes the invoke operation for the exported interface
 
Methods inherited from interface org.jboss.system.ServiceMBean
getName, getState, getStateString, jbossInternalLifecycle
 
Methods inherited from interface org.jboss.system.Service
create, destroy, start, stop
 

Method Detail

getInvokerName

javax.management.ObjectName getInvokerName()
Get the server side JRMPInvoker mbean that will be used as the RMI/JRMP transport handler.


setInvokerName

void setInvokerName(javax.management.ObjectName jmxInvokerName)
Set the server side JRMPInvoker mbean that will be used as the RMI/JRMP transport handler.


getTargetName

javax.management.ObjectName getTargetName()
Get the server side mbean that exposes the invoke operation for the exported interface


setTargetName

void setTargetName(javax.management.ObjectName targetName)
Set the server side mbean that exposes the invoke operation for the exported interface


getJndiName

String getJndiName()
Get the JNDI name under which the HttpInvokerProxy will be bound


setJndiName

void setJndiName(String jndiName)
Set the JNDI name under which the HttpInvokerProxy will be bound


getExportedInterface

Class getExportedInterface()
Get the RMI compatible interface that the JRMPInvokerProxy implements


setExportedInterface

void setExportedInterface(Class exportedInterface)
Set the RMI compatible interface that the JRMPInvokerProxy implements


getExportedInterfaces

Class[] getExportedInterfaces()
Get the RMI compatible interface that the JRMPInvokerProxy implements


setExportedInterfaces

void setExportedInterfaces(Class[] exportedInterface)
Set the RMI compatible interface that the JRMPInvokerProxy implements


getClientInterceptors

Element getClientInterceptors()
Get the proxy client side interceptor configuration

Returns:
the proxy client side interceptor configuration

setClientInterceptors

void setClientInterceptors(Element config)
                           throws Exception
Set the proxy client side interceptor configuration

Parameters:
config - the proxy client side interceptor configuration
Throws:
Exception

getInvokeTargetMethod

boolean getInvokeTargetMethod()
Returns:
whether invocations go to the target method instead of invoke(Invocation mi)

setInvokeTargetMethod

void setInvokeTargetMethod(boolean invokeTargetMethod)
Parameters:
invokeTargetMethod - whether invocations should go to the target method instead of invoke(Invocation mi)

getProxy

Object getProxy()
Get the proxy instance created by the factory.


invoke

Object invoke(Invocation mi)
              throws Exception
Throws:
Exception


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.