com.baidu.jprotobuf.pbrpc.spring
类 RpcServiceExporter

java.lang.Object
  继承者 com.baidu.jprotobuf.pbrpc.transport.RpcServerOptions
      继承者 com.baidu.jprotobuf.pbrpc.spring.RpcServiceExporter
所有已实现的接口:
org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean

public class RpcServiceExporter
extends RpcServerOptions
implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean

PBRPC exporter for standard PROTOBUF RPC implementation from jprotobuf-rpc-socket.

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

字段摘要
 
从类 com.baidu.jprotobuf.pbrpc.transport.RpcServerOptions 继承的字段
tcpNoDelay
 
构造方法摘要
RpcServiceExporter()
           
 
方法摘要
 void afterPropertiesSet()
           
 void destroy()
           
protected  java.lang.String getHost()
          get the host
 java.util.List<java.lang.Object> getRegisterServices()
          get the registerServices
 org.springframework.remoting.support.RemoteInvocationExecutor getRemoteInvocationExecutor()
          Return the RemoteInvocationExecutor used by this exporter.
protected  int getServicePort()
          get the servicePort
 void setHost(java.lang.String host)
          set host value to host
 void setRegisterServices(java.util.List<java.lang.Object> registerServices)
          set registerServices value to registerServices
 void setRegistryCenterService(RegistryCenterService registryCenterService)
          set registryCenterService value to registryCenterService
 void setRemoteInvocationExecutor(org.springframework.remoting.support.RemoteInvocationExecutor remoteInvocationExecutor)
          Set the RemoteInvocationExecutor to use for this exporter.
 void setRpcServiceRegistryBean(RpcServiceRegistryBean rpcServiceRegistryBean)
          set rpcServiceRegistryBean value to rpcServiceRegistryBean
 void setServicePort(int servicePort)
          set servicePort value to servicePort
 
从类 com.baidu.jprotobuf.pbrpc.transport.RpcServerOptions 继承的方法
copyFrom, getAcceptorThreads, getBacklog, getByteOrder, getChunkPackageTimeout, getChunkSize, getConnectTimeout, getKeepAliveTime, getReaderIdleTime, getReceiveBufferSize, getSendBufferSize, getSoLinger, getWorkThreads, getWriterIdleTime, isKeepAlive, isTcpNoDelay, setAcceptorThreads, setBacklog, setByteOrder, setChunkPackageTimeout, setChunkSize, setConnectTimeout, setKeepAlive, setKeepAliveTime, setReaderIdleTime, setReceiveBufferSize, setSendBufferSize, setSoLinger, setTcpNoDelay, setWorkThreads, setWriterIdleTime
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

RpcServiceExporter

public RpcServiceExporter()
方法详细信息

setRegistryCenterService

public void setRegistryCenterService(RegistryCenterService registryCenterService)
set registryCenterService value to registryCenterService

参数:
registryCenterService - the registryCenterService to set

setRemoteInvocationExecutor

public void setRemoteInvocationExecutor(org.springframework.remoting.support.RemoteInvocationExecutor remoteInvocationExecutor)
Set the RemoteInvocationExecutor to use for this exporter. Default is a DefaultRemoteInvocationExecutor.

A custom invocation executor can extract further context information from the invocation, for example user credentials.


getRemoteInvocationExecutor

public org.springframework.remoting.support.RemoteInvocationExecutor getRemoteInvocationExecutor()
Return the RemoteInvocationExecutor used by this exporter.


setRpcServiceRegistryBean

public void setRpcServiceRegistryBean(RpcServiceRegistryBean rpcServiceRegistryBean)
set rpcServiceRegistryBean value to rpcServiceRegistryBean

参数:
rpcServiceRegistryBean - the rpcServiceRegistryBean to set

getRegisterServices

public java.util.List<java.lang.Object> getRegisterServices()
get the registerServices

返回:
the registerServices

setRegisterServices

public void setRegisterServices(java.util.List<java.lang.Object> registerServices)
set registerServices value to registerServices

参数:
registerServices - the registerServices to set

getServicePort

protected int getServicePort()
get the servicePort

返回:
the servicePort

setServicePort

public void setServicePort(int servicePort)
set servicePort value to servicePort

参数:
servicePort - the servicePort to set

getHost

protected java.lang.String getHost()
get the host

返回:
the host

setHost

public void setHost(java.lang.String host)
set host value to host

参数:
host - the host to set

destroy

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

afterPropertiesSet

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


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