|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.softamis.cluster4spring.rmi.support.RmiEndpointFactory<SI>
SI
- - information about service.public class RmiEndpointFactory<SI extends ServiceMoniker>
Endpoint factory used to create RMI related endpoints.
Field Summary | |
---|---|
static java.lang.String |
RMI_PROTOCOL_PREFIX
Prefix used for constructing full RMI specific URL. |
Constructor Summary | |
---|---|
RmiEndpointFactory()
|
Method Summary | |
---|---|
protected RmiEndpoint<SI> |
createRmiEndpoint(org.springframework.remoting.support.RemoteInvocationFactory aRemoteInvocationFactory,
java.lang.String aEndpointKey,
SI aServiceInfo,
java.rmi.Remote aRemote)
Creates RMIEndpoint using given parameters |
RmiEndpoint<SI> |
createServiceEndpoint(org.springframework.remoting.support.RemoteInvocationFactory aFactory,
java.lang.String aBeanName,
SI aServiceInfo)
Creates endpoint for cluster4spring protocol supported by particular factory. |
java.lang.String |
getServiceUrl(SI aServiceInfo)
Returns URL used to lookup remote object. |
protected java.rmi.Remote |
obtainRemoteStub(java.lang.String aBeanName,
SI aServiceInfo)
Obtains remote stub based on given information about service. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String RMI_PROTOCOL_PREFIX
rmi://
) it will append it first.
Constructor Detail |
---|
public RmiEndpointFactory()
Method Detail |
---|
public RmiEndpoint<SI> createServiceEndpoint(org.springframework.remoting.support.RemoteInvocationFactory aFactory, java.lang.String aBeanName, SI aServiceInfo) throws org.springframework.remoting.RemoteAccessException
RMIEndpoint
.
createServiceEndpoint
in interface EndpointFactory<RmiEndpoint<SI extends ServiceMoniker>,SI extends ServiceMoniker>
aFactory
- factory used to create remote invocationsaBeanName
- name of bean/serviceaServiceInfo
- information about remote service
org.springframework.remoting.RemoteAccessException
- thrown if endpoint could not be created.obtainRemoteStub(String, ServiceMoniker)
,
createRmiEndpoint(org.springframework.remoting.support.RemoteInvocationFactory, String, ServiceMoniker, java.rmi.Remote)
protected RmiEndpoint<SI> createRmiEndpoint(org.springframework.remoting.support.RemoteInvocationFactory aRemoteInvocationFactory, java.lang.String aEndpointKey, SI aServiceInfo, java.rmi.Remote aRemote)
aRemoteInvocationFactory
- factory used to create remote invocationaEndpointKey
- endpoint keyaServiceInfo
- information about serviceaRemote
- remote object used by RMIEndpoint
protected java.rmi.Remote obtainRemoteStub(java.lang.String aBeanName, SI aServiceInfo) throws java.rmi.NotBoundException, java.net.MalformedURLException, java.rmi.RemoteException
aBeanName
- name of proxy beanaServiceInfo
- information about service (remote object)
java.rmi.NotBoundException
java.net.MalformedURLException
java.rmi.RemoteException
getServiceUrl(ServiceMoniker)
public java.lang.String getServiceUrl(SI aServiceInfo)
rmi://
protocol prefix
aServiceInfo
- service info
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |