|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jboss.mx.util.JBossNotificationBroadcasterSupport
org.jboss.system.ServiceMBeanSupport
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 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)
|
protected void |
destroyService()
|
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, 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 |
protected Object theProxy
| Constructor Detail |
public JRMPProxyFactory()
| Method Detail |
public javax.management.ObjectName getInvokerName()
JRMPProxyFactoryMBean
getInvokerName in interface JRMPProxyFactoryMBeanpublic void setInvokerName(javax.management.ObjectName invokerName)
JRMPProxyFactoryMBean
setInvokerName in interface JRMPProxyFactoryMBeanpublic javax.management.ObjectName getTargetName()
JRMPProxyFactoryMBean
getTargetName in interface JRMPProxyFactoryMBeanpublic void setTargetName(javax.management.ObjectName targetName)
JRMPProxyFactoryMBean
setTargetName in interface JRMPProxyFactoryMBeanpublic String getJndiName()
JRMPProxyFactoryMBean
getJndiName in interface JRMPProxyFactoryMBeanpublic void setJndiName(String jndiName)
JRMPProxyFactoryMBean
setJndiName in interface JRMPProxyFactoryMBeanpublic Class getExportedInterface()
JRMPProxyFactoryMBean
getExportedInterface in interface JRMPProxyFactoryMBeanpublic void setExportedInterface(Class exportedInterface)
JRMPProxyFactoryMBean
setExportedInterface in interface JRMPProxyFactoryMBeanpublic Class[] getExportedInterfaces()
JRMPProxyFactoryMBean
getExportedInterfaces in interface JRMPProxyFactoryMBeanpublic void setExportedInterfaces(Class[] exportedInterfaces)
JRMPProxyFactoryMBean
setExportedInterfaces in interface JRMPProxyFactoryMBeanpublic boolean getInvokeTargetMethod()
getInvokeTargetMethod in interface JRMPProxyFactoryMBeanpublic void setInvokeTargetMethod(boolean invokeTargetMethod)
setInvokeTargetMethod in interface JRMPProxyFactoryMBeaninvokeTargetMethod - whether invocations should go to the target method instead of invoke(Invocation mi)public Element getClientInterceptors()
JRMPProxyFactoryMBean
getClientInterceptors in interface JRMPProxyFactoryMBeanpublic void setClientInterceptors(Element config) throws Exception
JRMPProxyFactoryMBean
setClientInterceptors in interface JRMPProxyFactoryMBeanconfig - the proxy client side interceptor configuration
Exceptionpublic Object getProxy()
JRMPProxyFactoryMBean
getProxy in interface JRMPProxyFactoryMBeanpublic Object invoke(Invocation mi) throws Exception
invoke in interface JRMPProxyFactoryMBeanException
protected void startService()
throws Exception
Exception
protected void stopService()
throws Exception
Exception
protected void destroyService()
throws Exception
Exceptionprotected void createProxy(Object cacheID, String proxyBindingName, ClassLoader loader, Class[] ifaces)
protected void rebind()
throws Exception
Exceptionprotected ArrayList getInterceptorClasses()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||