|
||||||||||
| PREV CLASS (src) NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.mx.util.JBossNotificationBroadcasterSupport (src)
org.jboss.system.ServiceMBeanSupport (src)
org.jboss.invocation.jrmp.server.JRMPProxyFactory
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.
| Field Summary | |
protected java.lang.Object |
theProxy
The Proxy object which uses the proxy as its handler |
| Fields inherited from class org.jboss.system.ServiceMBeanSupport (src) |
log, server, SERVICE_CONTROLLER_SIG, serviceName |
| Fields inherited from interface org.jboss.system.ServiceMBean (src) |
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(java.lang.Object cacheID,
java.lang.String proxyBindingName,
java.lang.ClassLoader loader,
java.lang.Class[] ifaces)
|
protected void |
destroyService()
Sub-classes should override this method to provide custum 'destroy' logic. |
org.w3c.dom.Element |
getClientInterceptors()
Get the proxy client side interceptor configuration |
java.lang.Class |
getExportedInterface()
Get the RMI compatible interface that the JRMPInvokerProxy implements |
java.lang.Class[] |
getExportedInterfaces()
Get the RMI compatible interface that the JRMPInvokerProxy implements |
protected java.util.ArrayList |
getInterceptorClasses()
|
ObjectName (src) |
getInvokerName()
Get the server side JRMPInvoker mbean that will be used as the RMI/JRMP transport handler. |
boolean |
getInvokeTargetMethod()
|
java.lang.String |
getJndiName()
Get the JNDI name under which the HttpInvokerProxy will be bound |
java.lang.Object |
getProxy()
Get the proxy instance created by the factory. |
ObjectName (src) |
getTargetName()
Get the server side mbean that exposes the invoke operation for the exported interface |
java.lang.Object |
invoke(Invocation (src) mi)
|
protected void |
rebind()
|
void |
setClientInterceptors(org.w3c.dom.Element config)
Set the proxy client side interceptor configuration |
void |
setExportedInterface(java.lang.Class exportedInterface)
Set the RMI compatible interface that the JRMPInvokerProxy implements |
void |
setExportedInterfaces(java.lang.Class[] exportedInterfaces)
Set the RMI compatible interface that the JRMPInvokerProxy implements |
void |
setInvokerName(ObjectName (src) invokerName)
Set the server side JRMPInvoker mbean that will be used as the RMI/JRMP transport handler. |
void |
setInvokeTargetMethod(boolean invokeTargetMethod)
|
void |
setJndiName(java.lang.String jndiName)
Set the JNDI name under which the HttpInvokerProxy will be bound |
void |
setTargetName(ObjectName (src) targetName)
Set the server side mbean that exposes the invoke operation for the exported interface |
protected void |
startService()
Initializes the servlet. |
protected void |
stopService()
Sub-classes should override this method to provide custum 'stop' logic. |
| Methods inherited from class org.jboss.system.ServiceMBeanSupport (src) |
create, createService, destroy, 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 (src) |
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 (src) |
getName, getState, getStateString, jbossInternalLifecycle |
| Methods inherited from interface org.jboss.system.Service (src) |
create, destroy, start, stop |
| Field Detail |
protected java.lang.Object theProxy
| Constructor Detail |
public JRMPProxyFactory()
| Method Detail |
public ObjectName (src) getInvokerName()
JRMPProxyFactoryMBean (src)
getInvokerName in interface JRMPProxyFactoryMBean (src) public void setInvokerName(ObjectName (src) invokerName)
JRMPProxyFactoryMBean (src)
setInvokerName in interface JRMPProxyFactoryMBean (src) public ObjectName (src) getTargetName()
JRMPProxyFactoryMBean (src)
getTargetName in interface JRMPProxyFactoryMBean (src) public void setTargetName(ObjectName (src) targetName)
JRMPProxyFactoryMBean (src)
setTargetName in interface JRMPProxyFactoryMBean (src) public java.lang.String getJndiName()
JRMPProxyFactoryMBean (src)
getJndiName in interface JRMPProxyFactoryMBean (src) public void setJndiName(java.lang.String jndiName)
JRMPProxyFactoryMBean (src)
setJndiName in interface JRMPProxyFactoryMBean (src) public java.lang.Class getExportedInterface()
JRMPProxyFactoryMBean (src)
getExportedInterface in interface JRMPProxyFactoryMBean (src) public void setExportedInterface(java.lang.Class exportedInterface)
JRMPProxyFactoryMBean (src)
setExportedInterface in interface JRMPProxyFactoryMBean (src) public java.lang.Class[] getExportedInterfaces()
JRMPProxyFactoryMBean (src)
getExportedInterfaces in interface JRMPProxyFactoryMBean (src) public void setExportedInterfaces(java.lang.Class[] exportedInterfaces)
JRMPProxyFactoryMBean (src)
setExportedInterfaces in interface JRMPProxyFactoryMBean (src) public boolean getInvokeTargetMethod()
getInvokeTargetMethod in interface JRMPProxyFactoryMBean (src) public void setInvokeTargetMethod(boolean invokeTargetMethod)
setInvokeTargetMethod in interface JRMPProxyFactoryMBean (src) invokeTargetMethod - whether invocations should go to the target method instead of invoke(Invocation mi)public org.w3c.dom.Element getClientInterceptors()
JRMPProxyFactoryMBean (src)
getClientInterceptors in interface JRMPProxyFactoryMBean (src)
public void setClientInterceptors(org.w3c.dom.Element config)
throws java.lang.Exception
JRMPProxyFactoryMBean (src)
setClientInterceptors in interface JRMPProxyFactoryMBean (src) config - the proxy client side interceptor configuration
java.lang.Exceptionpublic java.lang.Object getProxy()
JRMPProxyFactoryMBean (src)
getProxy in interface JRMPProxyFactoryMBean (src)
public java.lang.Object invoke(Invocation (src) mi)
throws java.lang.Exception
invoke in interface JRMPProxyFactoryMBean (src) java.lang.Exception
protected void startService()
throws java.lang.Exception
startService in class ServiceMBeanSupport (src) java.lang.Exception
protected void stopService()
throws java.lang.Exception
ServiceMBeanSupport (src) This method is empty, and is provided for convenience when concrete service classes do not need to perform anything specific for this state change.
stopService in class ServiceMBeanSupport (src) java.lang.Exception
protected void destroyService()
throws java.lang.Exception
ServiceMBeanSupport (src) This method is empty, and is provided for convenience when concrete service classes do not need to perform anything specific for this state change.
destroyService in class ServiceMBeanSupport (src) java.lang.Exception
protected void createProxy(java.lang.Object cacheID,
java.lang.String proxyBindingName,
java.lang.ClassLoader loader,
java.lang.Class[] ifaces)
protected void rebind()
throws java.lang.Exception
java.lang.Exceptionprotected java.util.ArrayList getInterceptorClasses()
|
||||||||||
| PREV CLASS (src) NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||