com.baidu.jprotobuf.pbrpc.spring
类 HaRpcProxyFactoryBean

java.lang.Object
  继承者 com.baidu.jprotobuf.pbrpc.transport.RpcClientOptions
      继承者 com.baidu.jprotobuf.pbrpc.spring.HaRpcProxyFactoryBean
所有已实现的接口:
org.aopalliance.aop.Advice, org.aopalliance.intercept.Interceptor, org.aopalliance.intercept.MethodInterceptor, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.FactoryBean<Object>, org.springframework.beans.factory.InitializingBean

public class HaRpcProxyFactoryBean
extends RpcClientOptions
implements org.springframework.beans.factory.FactoryBean<Object>, org.springframework.beans.factory.InitializingBean, org.aopalliance.intercept.MethodInterceptor, org.springframework.beans.factory.DisposableBean

FactoryBean for Ha PbRpc proxies

从以下版本开始:
2.17
作者:
xiemalin

构造方法摘要
HaRpcProxyFactoryBean()
           
 
方法摘要
 void afterPropertiesSet()
           
 void destroy()
           
 Object getObject()
           
 Class getObjectType()
           
 Class getServiceInterface()
          Return the interface of the service to access.
 Object invoke(org.aopalliance.intercept.MethodInvocation invocation)
           
 boolean isLookupStubOnStartup()
          get the lookupStubOnStartup
 boolean isSingleton()
           
 void setLookupStubOnStartup(boolean lookupStubOnStartup)
          set lookupStubOnStartup value to lookupStubOnStartup
 void setNamingService(NamingService namingService)
          set namingService value to namingService
protected  void setRemoteInvocationFactory(org.springframework.remoting.support.RemoteInvocationFactory remoteInvocationFactory)
          set remoteInvocationFactory value to remoteInvocationFactory
 void setServiceInterface(Class serviceInterface)
          Set the interface of the service to access.
 
从类 com.baidu.jprotobuf.pbrpc.transport.RpcClientOptions 继承的方法
copyFrom, getChunkPackageTimeout, getChunkSize, getConnectTimeout, getIdleTimeout, getMaxIdleSize, getMaxWait, getMinEvictableIdleTime, getMinIdleSize, getOnceTalkTimeout, getReceiveBufferSize, getSendBufferSize, getTcpNoDelay, getThreadPoolSize, isKeepAlive, isReuseAddress, isShareThreadPoolUnderEachProxy, isShortConnection, isTestOnBorrow, isTestOnReturn, setChunkPackageTimeout, setChunkSize, setConnectTimeout, setIdleTimeout, setKeepAlive, setMaxIdleSize, setMaxWait, setMinEvictableIdleTime, setMinIdleSize, setOnceTalkTimeout, setReceiveBufferSize, setReuseAddress, setSendBufferSize, setShareThreadPoolUnderEachProxy, setShortConnection, setTcpNoDelay, setTestOnBorrow, setTestOnReturn, setThreadPoolSize
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

HaRpcProxyFactoryBean

public HaRpcProxyFactoryBean()
方法详细信息

isLookupStubOnStartup

public boolean isLookupStubOnStartup()
get the lookupStubOnStartup

返回:
the lookupStubOnStartup

setLookupStubOnStartup

public void setLookupStubOnStartup(boolean lookupStubOnStartup)
set lookupStubOnStartup value to lookupStubOnStartup

参数:
lookupStubOnStartup - the lookupStubOnStartup to set

setNamingService

public void setNamingService(NamingService namingService)
set namingService value to namingService

参数:
namingService - the namingService to set

setServiceInterface

public void setServiceInterface(Class serviceInterface)
Set the interface of the service to access. The interface must be suitable for the particular service and remoting strategy.

Typically required to be able to create a suitable service proxy, but can also be optional if the lookup returns a typed proxy.


getServiceInterface

public Class getServiceInterface()
Return the interface of the service to access.


getObject

public Object getObject()
                 throws Exception
指定者:
接口 org.springframework.beans.factory.FactoryBean<Object> 中的 getObject
抛出:
Exception

getObjectType

public Class getObjectType()
指定者:
接口 org.springframework.beans.factory.FactoryBean<Object> 中的 getObjectType

isSingleton

public boolean isSingleton()
指定者:
接口 org.springframework.beans.factory.FactoryBean<Object> 中的 isSingleton

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
指定者:
接口 org.springframework.beans.factory.InitializingBean 中的 afterPropertiesSet
抛出:
Exception

invoke

public Object invoke(org.aopalliance.intercept.MethodInvocation invocation)
              throws Throwable
指定者:
接口 org.aopalliance.intercept.MethodInterceptor 中的 invoke
抛出:
Throwable

setRemoteInvocationFactory

protected void setRemoteInvocationFactory(org.springframework.remoting.support.RemoteInvocationFactory remoteInvocationFactory)
set remoteInvocationFactory value to remoteInvocationFactory

参数:
remoteInvocationFactory - the remoteInvocationFactory to set

destroy

public void destroy()
             throws Exception
指定者:
接口 org.springframework.beans.factory.DisposableBean 中的 destroy
抛出:
Exception


Copyright © 2015 Baidu, Inc.. All Rights Reserved.