Available Methods
- RECONNECT_KEY
- PATH_SEPARATOR
- PROXY_KEY
- TRANSPORTER_KEY
- CODEC_KEY
- MIN_BUFFER_SIZE
- TIMEOUT_KEY
- INTERFACE_KEY
- GROUP_KEY
- THREADPOOL_KEY
- EXCHANGER_KEY
- DEFAULT_DUBBO_PROPERTIES
- SHUTDOWN_TIMEOUT_KEY
- MAX_BUFFER_SIZE
- TOKEN_KEY
- APPLICATION_KEY
- INVOKER_LISTENER_KEY
- SERVER_KEY
- DEFAULT_RECONNECT_PERIOD
- ON_THROW_METHOD_KEY
- DISPATCHER_KEY
- ANYHOST_VALUE
- CALLBACK_SERVICE_KEY
- CALLBACK_SERVICE_PROXY_KEY
- EXECUTOR_SERVICE_COMPONENT_KEY
- $INVOKE ( )
- DEFAULT_PAYLOAD
- STUB_EVENT_KEY
- CONSUMERS_CATEGORY
- ON_INVOKE_INSTANCE_KEY
- BIND_PORT_KEY
- DEFAULT_BUFFER_SIZE
- ON_RETURN_INSTANCE_KEY
- ROUTERS_CATEGORY
- REFERENCE_FILTER_KEY
- DEFAULT_SCRIPT_TYPE_KEY
- ON_THROW_INSTANCE_KEY
- PROVIDERS_CATEGORY
- ON_RETURN_METHOD_KEY
Related Classes
- java.util.Arrays
- java.util.Collections
- java.util.concurrent.TimeUnit
- java.lang.reflect.Method
- java.lang.reflect.InvocationTargetException
- java.util.concurrent.atomic.AtomicInteger
- org.junit.Assert
- java.net.InetSocketAddress
- java.util.concurrent.ConcurrentMap
- junit.framework.Assert
- redis.clients.jedis.Jedis
- redis.clients.jedis.JedisPool
- com.alibaba.dubbo.rpc.RpcContext
- com.alibaba.dubbo.rpc.Invocation
- com.alibaba.dubbo.rpc.Invoker
- com.alibaba.dubbo.common.URL
- com.alibaba.dubbo.rpc.Result
- com.alibaba.dubbo.rpc.RpcException
- com.alibaba.dubbo.rpc.service.GenericService
- com.alibaba.dubbo.rpc.RpcResult
- com.alibaba.dubbo.common.extension.ExtensionLoader
- com.alibaba.dubbo.common.utils.ConfigUtils
- com.alibaba.dubbo.common.utils.NetUtils
- com.alibaba.dubbo.common.utils.StringUtils
- com.alibaba.dubbo.registry.NotifyListener
Java Code Examples for com.alibaba.dubbo.common.Constants#BIND_PORT_KEY
The following examples show how to use
com.alibaba.dubbo.common.Constants#BIND_PORT_KEY .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: GrizzlyTransporterTest.java From dubbo-2.6.5 with Apache License 2.0 | 5 votes |
@Test public void shouldAbleToBindGrizzly() throws Exception { int port = NetUtils.getAvailablePort(); URL url = new URL("http", "localhost", port, new String[]{Constants.BIND_PORT_KEY, String.valueOf(port)}); Server server = new GrizzlyTransporter().bind(url, new ChannelHandlerAdapter()); assertThat(server.isBound(), is(true)); }
Example 2
Source File: NettyTransporterTest.java From dubbo-2.6.5 with Apache License 2.0 | 5 votes |
@Test public void shouldAbleToBindNetty4() throws Exception { int port = NetUtils.getAvailablePort(); URL url = new URL("http", "localhost", port, new String[]{Constants.BIND_PORT_KEY, String.valueOf(port)}); Server server = new NettyTransporter().bind(url, new ChannelHandlerAdapter()); assertThat(server.isBound(), is(true)); }