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