public class DssServiceRpcFactory extends java.lang.Object implements IRpcServiceFactory
Create client-side proxies to server RPC interface objects.
| Constructor and Description |
|---|
DssServiceRpcFactory() |
DssServiceRpcFactory(long timeoutInMillis) |
| Modifier and Type | Method and Description |
|---|---|
<T extends IRpcService> |
getService(RpcServiceInterfaceVersionDTO ifaceVersion,
java.lang.Class<T> ifaceClazz,
java.lang.String serverURL,
boolean getServerCertificateFromServer)
Get a proxy to the RPC service interface specified by
ifaceVersion. |
java.util.Collection<RpcServiceInterfaceDTO> |
getSupportedInterfaces(java.lang.String serverURL,
boolean getServerCertificateFromServer)
Get the RPC service interfaces supported by the server.
|
public DssServiceRpcFactory()
public DssServiceRpcFactory(long timeoutInMillis)
public java.util.Collection<RpcServiceInterfaceDTO> getSupportedInterfaces(java.lang.String serverURL, boolean getServerCertificateFromServer) throws IncompatibleAPIVersionsException
IRpcServiceFactorygetSupportedInterfaces in interface IRpcServiceFactoryserverURL - The URL of the data store server to query.getServerCertificateFromServer - If the URL scheme is https and
shouldGetServerCertificateFromServer is true, the factory will retrieve the SSL
certificate from the server.IncompatibleAPIVersionsExceptionpublic <T extends IRpcService> T getService(RpcServiceInterfaceVersionDTO ifaceVersion, java.lang.Class<T> ifaceClazz, java.lang.String serverURL, boolean getServerCertificateFromServer) throws IncompatibleAPIVersionsException
IRpcServiceFactoryifaceVersion.getService in interface IRpcServiceFactoryifaceVersion - The proxy interface to returnifaceClazz - The class of the interfaceserverURL - The url of the server that exports the servicegetServerCertificateFromServer - True if the certificate should be retrieved from the
server.IncompatibleAPIVersionsException