-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* domain socket support foldin * Fix domain socket dep nightmare * Hope springs eternal * minor fluffing
- Loading branch information
1 parent
7702f93
commit 0b41031
Showing
25 changed files
with
622 additions
and
376 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,20 +1,24 @@ | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<parent> | ||
<groupId>com.salesforce.apollo</groupId> | ||
<artifactId>apollo.app</artifactId> | ||
<version>0.0.1-SNAPSHOT</version> | ||
</parent> | ||
<artifactId>domain-epoll</artifactId> | ||
<name>Domain EPoll</name> | ||
<name>Domain Sockets EPoll</name> | ||
<description>Linux Unix Domain Socket Support</description> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>com.salesforce.apollo</groupId> | ||
<artifactId>domain-sockets</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>io.netty</groupId> | ||
<artifactId>netty-transport-native-epoll</artifactId> | ||
<version>${netty.version}</version> | ||
<classifier>${os.detected.classifier}</classifier> | ||
</dependency> | ||
</dependencies> | ||
</project> | ||
</project> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,24 @@ | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<parent> | ||
<groupId>com.salesforce.apollo</groupId> | ||
<artifactId>apollo.app</artifactId> | ||
<version>0.0.1-SNAPSHOT</version> | ||
</parent> | ||
<name>Domain KQueue</name> | ||
<name>Domain Sockets KQueue</name> | ||
<description>Mac/OSx Unix Domain Socket Support</description> | ||
<artifactId>domain-kqueue</artifactId> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>com.salesforce.apollo</groupId> | ||
<artifactId>domain-sockets</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>io.netty</groupId> | ||
<artifactId>netty-transport-native-kqueue</artifactId> | ||
<version>${netty.version}</version> | ||
<classifier>${os.detected.classifier}</classifier> | ||
</dependency> | ||
</dependencies> | ||
</project> | ||
</project> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns="http://maven.apache.org/POM/4.0.0" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<parent> | ||
<groupId>com.salesforce.apollo</groupId> | ||
<artifactId>apollo.app</artifactId> | ||
<version>0.0.1-SNAPSHOT</version> | ||
</parent> | ||
<artifactId>domain-sockets</artifactId> | ||
<name>Domain Sockets</name> | ||
<description>Domain Socket Access Interface</description> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>io.grpc</groupId> | ||
<artifactId>grpc-netty</artifactId> | ||
</dependency> | ||
</dependencies> | ||
</project> |
40 changes: 40 additions & 0 deletions
40
domain-sockets/src/main/java/com/salesforce/apollo/comm/grpc/DomainSockets.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,40 @@ | ||
package com.salesforce.apollo.comm.grpc; | ||
|
||
import io.netty.channel.Channel; | ||
import io.netty.channel.EventLoopGroup; | ||
import io.netty.channel.EventLoopTaskQueueFactory; | ||
import io.netty.channel.SelectStrategyFactory; | ||
import io.netty.channel.unix.PeerCredentials; | ||
import io.netty.channel.unix.ServerDomainSocketChannel; | ||
import io.netty.util.concurrent.EventExecutorChooserFactory; | ||
import io.netty.util.concurrent.RejectedExecutionHandler; | ||
|
||
import java.util.concurrent.Executor; | ||
|
||
public interface DomainSockets { | ||
Class<? extends Channel> getChannelType(); | ||
|
||
EventLoopGroup getEventLoopGroup(); | ||
|
||
EventLoopGroup getEventLoopGroup(int threads); | ||
|
||
EventLoopGroup getEventLoopGroup(int threads, Executor executor); | ||
|
||
EventLoopGroup getEventLoopGroup(int threads, Executor executor, EventExecutorChooserFactory chooserFactory, | ||
SelectStrategyFactory selectStrategyFactory); | ||
|
||
EventLoopGroup getEventLoopGroup(int threads, Executor executor, EventExecutorChooserFactory chooserFactory, | ||
SelectStrategyFactory selectStrategyFactory, | ||
RejectedExecutionHandler rejectedExecutionHandler); | ||
|
||
EventLoopGroup getEventLoopGroup(int threads, Executor executor, EventExecutorChooserFactory chooserFactory, | ||
SelectStrategyFactory selectStrategyFactory, | ||
RejectedExecutionHandler rejectedExecutionHandler, | ||
EventLoopTaskQueueFactory queueFactory); | ||
|
||
EventLoopGroup getEventLoopGroup(int threads, Executor executor, SelectStrategyFactory selectStrategyFactory); | ||
|
||
PeerCredentials getPeerCredentials(Channel channel); | ||
|
||
Class<? extends ServerDomainSocketChannel> getServerDomainSocketChannelClass(); | ||
} |
Oops, something went wrong.