com.alibaba.dubbo.rpc.gen.dubbo.Demo Java Examples
The following examples show how to use
com.alibaba.dubbo.rpc.gen.dubbo.Demo.
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: AbstractTest.java From dubbo-2.6.5 with Apache License 2.0 | 5 votes |
protected TProcessor getProcessor() { MultiServiceProcessor result = new MultiServiceProcessor(); result.addProcessor( com.alibaba.dubbo.rpc.gen.dubbo.Demo.class, new $__DemoStub.Processor(getServiceImpl())); return result; }
Example #2
Source File: AbstractTest.java From dubbox with Apache License 2.0 | 5 votes |
protected TProcessor getProcessor() { MultiServiceProcessor result = new MultiServiceProcessor(); result.addProcessor( com.alibaba.dubbo.rpc.gen.dubbo.Demo.class, new $__DemoStub.Processor( getServiceImpl() ) ); return result; }
Example #3
Source File: AbstractTest.java From dubbox with Apache License 2.0 | 5 votes |
protected TProcessor getProcessor() { MultiServiceProcessor result = new MultiServiceProcessor(); result.addProcessor( com.alibaba.dubbo.rpc.gen.dubbo.Demo.class, new $__DemoStub.Processor( getServiceImpl() ) ); return result; }
Example #4
Source File: AbstractTest.java From dubbox with Apache License 2.0 | 5 votes |
protected TProcessor getProcessor() { MultiServiceProcessor result = new MultiServiceProcessor(); result.addProcessor( com.alibaba.dubbo.rpc.gen.dubbo.Demo.class, new $__DemoStub.Processor( getServiceImpl() ) ); return result; }
Example #5
Source File: AbstractTest.java From dubbox-hystrix with Apache License 2.0 | 5 votes |
protected TProcessor getProcessor() { MultiServiceProcessor result = new MultiServiceProcessor(); result.addProcessor( com.alibaba.dubbo.rpc.gen.dubbo.Demo.class, new $__DemoStub.Processor( getServiceImpl() ) ); return result; }
Example #6
Source File: AbstractTest.java From dubbox-hystrix with Apache License 2.0 | 4 votes |
protected Class<?> getInterface() { return Demo.class; }
Example #7
Source File: AbstractTest.java From dubbox with Apache License 2.0 | 4 votes |
protected Class<?> getInterface() { return Demo.class; }
Example #8
Source File: AbstractTest.java From dubbox with Apache License 2.0 | 4 votes |
protected Class<?> getInterface() { return Demo.class; }
Example #9
Source File: AbstractTest.java From dubbo-2.6.5 with Apache License 2.0 | 4 votes |
protected Class<?> getInterface() { return Demo.class; }
Example #10
Source File: AbstractTest.java From dubbox with Apache License 2.0 | 4 votes |
protected Class<?> getInterface() { return Demo.class; }
Example #11
Source File: ThriftProtocolTest.java From dubbox with Apache License 2.0 | 3 votes |
@Before public void setUp() throws Exception { init(); protocol = new ThriftProtocol(); url = URL.valueOf( ThriftProtocol.NAME + "://127.0.0.1:" + PORT + "/" + Demo.class.getName() ); }
Example #12
Source File: ServiceMethodNotFoundTest.java From dubbox with Apache License 2.0 | 3 votes |
@Before public void setUp() throws Exception { init(); protocol = new ThriftProtocol(); url = URL.valueOf( ThriftProtocol.NAME + "://127.0.0.1:" + PORT + "/" + Demo.class.getName() ); }
Example #13
Source File: ThriftProtocolTest.java From dubbox with Apache License 2.0 | 3 votes |
@Before public void setUp() throws Exception { init(); protocol = new ThriftProtocol(); url = URL.valueOf( ThriftProtocol.NAME + "://127.0.0.1:" + PORT + "/" + Demo.class.getName() ); }
Example #14
Source File: ServiceMethodNotFoundTest.java From dubbox with Apache License 2.0 | 3 votes |
@Before public void setUp() throws Exception { init(); protocol = new ThriftProtocol(); url = URL.valueOf( ThriftProtocol.NAME + "://127.0.0.1:" + PORT + "/" + Demo.class.getName() ); }
Example #15
Source File: ServiceMethodNotFoundTest.java From dubbo-2.6.5 with Apache License 2.0 | 3 votes |
@Before public void setUp() throws Exception { init(); protocol = new ThriftProtocol(); url = URL.valueOf(ThriftProtocol.NAME + "://127.0.0.1:" + PORT + "/" + Demo.class.getName()); }
Example #16
Source File: ThriftProtocolTest.java From dubbox with Apache License 2.0 | 3 votes |
@Before public void setUp() throws Exception { init(); protocol = new ThriftProtocol(); url = URL.valueOf( ThriftProtocol.NAME + "://127.0.0.1:" + PORT + "/" + Demo.class.getName() ); }
Example #17
Source File: ServiceMethodNotFoundTest.java From dubbox-hystrix with Apache License 2.0 | 3 votes |
@Before public void setUp() throws Exception { init(); protocol = new ThriftProtocol(); url = URL.valueOf( ThriftProtocol.NAME + "://127.0.0.1:" + PORT + "/" + Demo.class.getName() ); }
Example #18
Source File: ThriftProtocolTest.java From dubbo-2.6.5 with Apache License 2.0 | 3 votes |
@Before public void setUp() throws Exception { init(); protocol = new ThriftProtocol(); url = URL.valueOf(ThriftProtocol.NAME + "://127.0.0.1:" + PORT + "/" + Demo.class.getName()); }
Example #19
Source File: ThriftProtocolTest.java From dubbox-hystrix with Apache License 2.0 | 3 votes |
@Before public void setUp() throws Exception { init(); protocol = new ThriftProtocol(); url = URL.valueOf( ThriftProtocol.NAME + "://127.0.0.1:" + PORT + "/" + Demo.class.getName() ); }
Example #20
Source File: ServiceMethodNotFoundTest.java From dubbox with Apache License 2.0 | 3 votes |
@Before public void setUp() throws Exception { init(); protocol = new ThriftProtocol(); url = URL.valueOf( ThriftProtocol.NAME + "://127.0.0.1:" + PORT + "/" + Demo.class.getName() ); }
Example #21
Source File: ServiceMethodNotFoundTest.java From dubbox with Apache License 2.0 | 2 votes |
protected void init() throws Exception { TServerTransport serverTransport = new TServerSocket( PORT ); DubboDemoImpl impl = new DubboDemoImpl(); $__DemoStub.Processor processor = new $__DemoStub.Processor( impl ); // for test Field field = processor.getClass().getSuperclass().getDeclaredField( "processMap" ); field.setAccessible( true ); Object obj = field.get( processor ); if ( obj instanceof Map ) { ( ( Map ) obj ).remove( "echoString" ); } // ~ TBinaryProtocol.Factory bFactory = new TBinaryProtocol.Factory(); MultiServiceProcessor wrapper = new MultiServiceProcessor(); wrapper.addProcessor( Demo.class, processor ); server = new TThreadPoolServer( new TThreadPoolServer.Args( serverTransport ) .inputProtocolFactory( bFactory ) .outputProtocolFactory( bFactory ) .inputTransportFactory( getTransportFactory() ) .outputTransportFactory( getTransportFactory() ) .processor( wrapper ) ); Thread startTread = new Thread() { @Override public void run() { server.serve(); } }; startTread.start(); while ( !server.isServing() ) { Thread.sleep( 100 ); } }
Example #22
Source File: ServiceMethodNotFoundTest.java From dubbox with Apache License 2.0 | 2 votes |
protected void init() throws Exception { TServerTransport serverTransport = new TServerSocket( PORT ); DubboDemoImpl impl = new DubboDemoImpl(); $__DemoStub.Processor processor = new $__DemoStub.Processor( impl ); // for test Field field = processor.getClass().getSuperclass().getDeclaredField( "processMap" ); field.setAccessible( true ); Object obj = field.get( processor ); if ( obj instanceof Map ) { ( ( Map ) obj ).remove( "echoString" ); } // ~ TBinaryProtocol.Factory bFactory = new TBinaryProtocol.Factory(); MultiServiceProcessor wrapper = new MultiServiceProcessor(); wrapper.addProcessor( Demo.class, processor ); server = new TThreadPoolServer( new TThreadPoolServer.Args( serverTransport ) .inputProtocolFactory( bFactory ) .outputProtocolFactory( bFactory ) .inputTransportFactory( getTransportFactory() ) .outputTransportFactory( getTransportFactory() ) .processor( wrapper ) ); Thread startTread = new Thread() { @Override public void run() { server.serve(); } }; startTread.start(); while ( !server.isServing() ) { Thread.sleep( 100 ); } }
Example #23
Source File: ServiceMethodNotFoundTest.java From dubbox-hystrix with Apache License 2.0 | 2 votes |
protected void init() throws Exception { TServerTransport serverTransport = new TServerSocket( PORT ); DubboDemoImpl impl = new DubboDemoImpl(); $__DemoStub.Processor processor = new $__DemoStub.Processor( impl ); // for test Field field = processor.getClass().getSuperclass().getDeclaredField( "processMap" ); field.setAccessible( true ); Object obj = field.get( processor ); if ( obj instanceof Map ) { ( ( Map ) obj ).remove( "echoString" ); } // ~ TBinaryProtocol.Factory bFactory = new TBinaryProtocol.Factory(); MultiServiceProcessor wrapper = new MultiServiceProcessor(); wrapper.addProcessor( Demo.class, processor ); server = new TThreadPoolServer( new TThreadPoolServer.Args( serverTransport ) .inputProtocolFactory( bFactory ) .outputProtocolFactory( bFactory ) .inputTransportFactory( getTransportFactory() ) .outputTransportFactory( getTransportFactory() ) .processor( wrapper ) ); Thread startTread = new Thread() { @Override public void run() { server.serve(); } }; startTread.start(); while ( !server.isServing() ) { Thread.sleep( 100 ); } }
Example #24
Source File: ServiceMethodNotFoundTest.java From dubbo-2.6.5 with Apache License 2.0 | 2 votes |
protected void init() throws Exception { TServerTransport serverTransport = new TServerSocket(PORT); DubboDemoImpl impl = new DubboDemoImpl(); $__DemoStub.Processor processor = new $__DemoStub.Processor(impl); // for test Field field = processor.getClass().getSuperclass().getDeclaredField("processMap"); field.setAccessible(true); Object obj = field.get(processor); if (obj instanceof Map) { ((Map) obj).remove("echoString"); } // ~ TBinaryProtocol.Factory bFactory = new TBinaryProtocol.Factory(); MultiServiceProcessor wrapper = new MultiServiceProcessor(); wrapper.addProcessor(Demo.class, processor); server = new TThreadPoolServer( new TThreadPoolServer.Args(serverTransport) .inputProtocolFactory(bFactory) .outputProtocolFactory(bFactory) .inputTransportFactory(getTransportFactory()) .outputTransportFactory(getTransportFactory()) .processor(wrapper)); Thread startTread = new Thread() { @Override public void run() { server.serve(); } }; startTread.start(); while (!server.isServing()) { Thread.sleep(100); } }
Example #25
Source File: ServiceMethodNotFoundTest.java From dubbox with Apache License 2.0 | 2 votes |
protected void init() throws Exception { TServerTransport serverTransport = new TServerSocket( PORT ); DubboDemoImpl impl = new DubboDemoImpl(); $__DemoStub.Processor processor = new $__DemoStub.Processor( impl ); // for test Field field = processor.getClass().getSuperclass().getDeclaredField( "processMap" ); field.setAccessible( true ); Object obj = field.get( processor ); if ( obj instanceof Map ) { ( ( Map ) obj ).remove( "echoString" ); } // ~ TBinaryProtocol.Factory bFactory = new TBinaryProtocol.Factory(); MultiServiceProcessor wrapper = new MultiServiceProcessor(); wrapper.addProcessor( Demo.class, processor ); server = new TThreadPoolServer( new TThreadPoolServer.Args( serverTransport ) .inputProtocolFactory( bFactory ) .outputProtocolFactory( bFactory ) .inputTransportFactory( getTransportFactory() ) .outputTransportFactory( getTransportFactory() ) .processor( wrapper ) ); Thread startTread = new Thread() { @Override public void run() { server.serve(); } }; startTread.start(); while ( !server.isServing() ) { Thread.sleep( 100 ); } }