public abstract class AbstractEndpointFactory extends Object implements EndpointFactory
| 限定符和类型 | 字段和说明 |
|---|---|
protected Map<org.jboss.resteasy.client.jaxrs.ResteasyWebTarget,Set<String>> |
client2UrlsShareChannel |
protected Map<String,org.jboss.resteasy.client.jaxrs.ResteasyWebTarget> |
ipPort2ClientShareChannel |
protected Map<String,RestServer> |
ipPort2ServerShareChannel
维持share channel 的service列表
|
protected Map<RestServer,Set<String>> |
server2UrlsShareChannel |
| 构造器和说明 |
|---|
AbstractEndpointFactory() |
| 限定符和类型 | 方法和说明 |
|---|---|
org.jboss.resteasy.client.jaxrs.ResteasyWebTarget |
createClient(com.weibo.api.motan.rpc.URL url) |
RestServer |
createServer(com.weibo.api.motan.rpc.URL url) |
protected org.jboss.resteasy.client.jaxrs.ResteasyWebTarget |
innerCreateClient(com.weibo.api.motan.rpc.URL url) |
protected abstract RestServer |
innerCreateServer(com.weibo.api.motan.rpc.URL url) |
void |
safeReleaseResource(org.jboss.resteasy.client.jaxrs.ResteasyWebTarget client,
com.weibo.api.motan.rpc.URL url) |
void |
safeReleaseResource(RestServer server,
com.weibo.api.motan.rpc.URL url) |
protected final Map<String,RestServer> ipPort2ServerShareChannel
protected final Map<String,org.jboss.resteasy.client.jaxrs.ResteasyWebTarget> ipPort2ClientShareChannel
protected Map<RestServer,Set<String>> server2UrlsShareChannel
public RestServer createServer(com.weibo.api.motan.rpc.URL url)
createServer 在接口中 EndpointFactorypublic org.jboss.resteasy.client.jaxrs.ResteasyWebTarget createClient(com.weibo.api.motan.rpc.URL url)
createClient 在接口中 EndpointFactorypublic void safeReleaseResource(RestServer server, com.weibo.api.motan.rpc.URL url)
safeReleaseResource 在接口中 EndpointFactorypublic void safeReleaseResource(org.jboss.resteasy.client.jaxrs.ResteasyWebTarget client,
com.weibo.api.motan.rpc.URL url)
safeReleaseResource 在接口中 EndpointFactoryprotected abstract RestServer innerCreateServer(com.weibo.api.motan.rpc.URL url)
protected org.jboss.resteasy.client.jaxrs.ResteasyWebTarget innerCreateClient(com.weibo.api.motan.rpc.URL url)
Copyright © 2023. All rights reserved.