-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prepares the project for PubSub (renaming as kite and changing group …
…to io.teris.kite) - streamlines definitions, - improves exceptions handling around missing resources or failed authentication, - adds fasterxml serializer (incomplete due to gaps) - improves documentation
- Loading branch information
Oleg Sklyar
committed
Feb 2, 2018
1 parent
7554dcc
commit 1329f9a
Showing
90 changed files
with
2,023 additions
and
1,310 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
43 changes: 0 additions & 43 deletions
43
amqp/src/main/java/io/teris/rpc/amqp/AmqpServiceRouter.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
58 changes: 58 additions & 0 deletions
58
integration-tests/src/integration/java/io/teris/kite/rpc/TestAmqpInvocationRoundtrip.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
/* | ||
* Copyright (c) teris.io & Oleg Sklyar, 2017. All rights reserved | ||
*/ | ||
|
||
package io.teris.kite.rpc; | ||
|
||
import org.junit.AfterClass; | ||
import org.junit.BeforeClass; | ||
|
||
import com.rabbitmq.client.ConnectionFactory; | ||
|
||
import io.teris.kite.gson.JsonSerializer; | ||
import io.teris.kite.rpc.amqp.AmqpServiceInvoker; | ||
import io.teris.kite.rpc.amqp.AmqpServiceExporter; | ||
|
||
//@Ignore | ||
public class TestAmqpInvocationRoundtrip extends AbstractInvocationTestsuite { | ||
|
||
private static final String requestExchange = "RPC"; | ||
|
||
private static AmqpServiceInvoker invoker; | ||
|
||
private static AmqpServiceExporter provider; | ||
|
||
@BeforeClass | ||
public static void init() throws Exception { | ||
preInit(); | ||
port = 5672; | ||
|
||
ConnectionFactory connectionFactory = new ConnectionFactory(); | ||
connectionFactory.setHost("127.0.0.1"); | ||
connectionFactory.setPort(port); | ||
|
||
invoker = AmqpServiceInvoker.connectionFactory(connectionFactory) | ||
.requestExchange(requestExchange) | ||
.start(); | ||
|
||
ServiceFactory factory = ServiceFactory.invoker(invoker) | ||
.serializer(JsonSerializer.builder().build()) | ||
.build(); | ||
|
||
syncService = factory.newInstance(SyncService.class); | ||
asyncService = factory.newInstance(AsyncService.class); | ||
throwingService = factory.newInstance(ThrowingService.class); | ||
|
||
provider = AmqpServiceExporter.connectionFactory(connectionFactory) | ||
.requestExchange(requestExchange) | ||
.export(exporter1) | ||
.export(exporter2) | ||
.start(); | ||
} | ||
|
||
@AfterClass | ||
public static void teardown() throws Exception { | ||
invoker.close().get(); | ||
provider.close().get(); | ||
} | ||
} |
Oops, something went wrong.