站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 server API Documentation 英文版文档

JRMPProxyFactory (JBoss Server API) - JBoss 4.0.1 sp1 server API Documentation 英文版文档


org.jboss.invocation.jrmp.server
Class JRMPProxyFactory

java.lang.Object
  extended byorg.jboss.mx.util.JBossNotificationBroadcasterSupport
      extended byorg.jboss.system.ServiceMBeanSupport
          extended byorg.jboss.invocation.jrmp.server.JRMPProxyFactory
All Implemented Interfaces:
JRMPProxyFactoryMBean, javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, org.jboss.system.Service, org.jboss.system.ServiceMBean

public class JRMPProxyFactory
extends org.jboss.system.ServiceMBeanSupport
implements JRMPProxyFactoryMBean

Create an interface proxy that uses RMI/JRMP to communicate with the server side object that exposes the corresponding JMX invoke operation. Requests make through the proxy are sent to the JRMPInvoker instance the proxy is bound to.

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

Field Summary
protected  Object theProxy
          The Proxy object which uses the proxy as its handler
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport
log, server, SERVICE_CONTROLLER_SIG, serviceName
 
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
 
Constructor Summary
JRMPProxyFactory()
           
 
Method Summary
protected  void createProxy(Object cacheID, String proxyBindingName, ClassLoader loader, Class[] ifaces)
           
 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
protected  ArrayList getInterceptorClasses()
           
 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)
           
protected  void rebind()
           
 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[] exportedInterfaces)
          Set the RMI compatible interface that the JRMPInvokerProxy implements
 void setInvokerName(javax.management.ObjectName invokerName)
          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
protected  void startService()
          Initializes the servlet.
protected  void stopService()
           
 
Methods inherited from class org.jboss.system.ServiceMBeanSupport
create, createService, destroy, destroyService, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, stop
 
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.system.ServiceMBean
getName, getState, getStateString, jbossInternalLifecycle
 
Methods inherited from interface org.jboss.system.Service
create, destroy, start, stop
 

Field Detail

theProxy

protected Object theProxy
The Proxy object which uses the proxy as its handler

Constructor Detail

JRMPProxyFactory

public JRMPProxyFactory()
Method Detail

getInvokerName

public javax.management.ObjectName getInvokerName()
Description copied from interface: JRMPProxyFactoryMBean
Get the server side JRMPInvoker mbean that will be used as the RMI/JRMP transport handler.

Specified by:
getInvokerName in interface JRMPProxyFactoryMBean

setInvokerName

public void setInvokerName(javax.management.ObjectName invokerName)
Description copied from interface: JRMPProxyFactoryMBean
Set the server side JRMPInvoker mbean that will be used as the RMI/JRMP transport handler.

Specified by:
setInvokerName in interface JRMPProxyFactoryMBean

getTargetName

public javax.management.ObjectName getTargetName()
Description copied from interface: JRMPProxyFactoryMBean
Get the server side mbean that exposes the invoke operation for the exported interface

Specified by:
getTargetName in interface JRMPProxyFactoryMBean

setTargetName

public void setTargetName(javax.management.ObjectName targetName)
Description copied from interface: JRMPProxyFactoryMBean
Set the server side mbean that exposes the invoke operation for the exported interface

Specified by:
setTargetName in interface JRMPProxyFactoryMBean

getJndiName

public String getJndiName()
Description copied from interface: JRMPProxyFactoryMBean
Get the JNDI name under which the HttpInvokerProxy will be bound

Specified by:
getJndiName in interface JRMPProxyFactoryMBean

setJndiName

public void setJndiName(String jndiName)
Description copied from interface: JRMPProxyFactoryMBean
Set the JNDI name under which the HttpInvokerProxy will be bound

Specified by:
setJndiName in interface JRMPProxyFactoryMBean

getExportedInterface

public Class getExportedInterface()
Description copied from interface: JRMPProxyFactoryMBean
Get the RMI compatible interface that the JRMPInvokerProxy implements

Specified by:
getExportedInterface in interface JRMPProxyFactoryMBean

setExportedInterface

public void setExportedInterface(Class exportedInterface)
Description copied from interface: JRMPProxyFactoryMBean
Set the RMI compatible interface that the JRMPInvokerProxy implements

Specified by:
setExportedInterface in interface JRMPProxyFactoryMBean

getExportedInterfaces

public Class[] getExportedInterfaces()
Description copied from interface: JRMPProxyFactoryMBean
Get the RMI compatible interface that the JRMPInvokerProxy implements

Specified by:
getExportedInterfaces in interface JRMPProxyFactoryMBean

setExportedInterfaces

public void setExportedInterfaces(Class[] exportedInterfaces)
Description copied from interface: JRMPProxyFactoryMBean
Set the RMI compatible interface that the JRMPInvokerProxy implements

Specified by:
setExportedInterfaces in interface JRMPProxyFactoryMBean

getInvokeTargetMethod

public boolean getInvokeTargetMethod()
Specified by:
getInvokeTargetMethod in interface JRMPProxyFactoryMBean
Returns:
whether invocations go to the target method instead of invoke(Invocation mi)

setInvokeTargetMethod

public void setInvokeTargetMethod(boolean invokeTargetMethod)
Specified by:
setInvokeTargetMethod in interface JRMPProxyFactoryMBean
Parameters:
invokeTargetMethod - whether invocations should go to the target method instead of invoke(Invocation mi)

getClientInterceptors

public Element getClientInterceptors()
Description copied from interface: JRMPProxyFactoryMBean
Get the proxy client side interceptor configuration

Specified by:
getClientInterceptors in interface JRMPProxyFactoryMBean
Returns:
the proxy client side interceptor configuration

setClientInterceptors

public void setClientInterceptors(Element config)
                           throws Exception
Description copied from interface: JRMPProxyFactoryMBean
Set the proxy client side interceptor configuration

Specified by:
setClientInterceptors in interface JRMPProxyFactoryMBean
Parameters:
config - the proxy client side interceptor configuration
Throws:
Exception

getProxy

public Object getProxy()
Description copied from interface: JRMPProxyFactoryMBean
Get the proxy instance created by the factory.

Specified by:
getProxy in interface JRMPProxyFactoryMBean

invoke

public Object invoke(Invocation mi)
              throws Exception
Specified by:
invoke in interface JRMPProxyFactoryMBean
Throws:
Exception

startService

protected void startService()
                     throws Exception
Initializes the servlet.

Throws:
Exception

stopService

protected void stopService()
                    throws Exception
Throws:
Exception

createProxy

protected void createProxy(Object cacheID,
                           String proxyBindingName,
                           ClassLoader loader,
                           Class[] ifaces)

rebind

protected void rebind()
               throws Exception
Throws:
Exception

getInterceptorClasses

protected ArrayList getInterceptorClasses()


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