forked from opensearch-project/OpenSearch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename gRPC transport settings and move to aux package.
Signed-off-by: Finn Carroll <[email protected]>
- Loading branch information
1 parent
8a3f634
commit 1a9170a
Showing
8 changed files
with
82 additions
and
63 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
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
55 changes: 55 additions & 0 deletions
55
server/src/main/java/org/opensearch/aux/AuxTransportSettings.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,55 @@ | ||
/* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* The OpenSearch Contributors require contributions made to | ||
* this file be licensed under the Apache-2.0 license or a | ||
* compatible open source license. | ||
*/ | ||
|
||
package org.opensearch.aux; | ||
|
||
import org.opensearch.common.settings.Setting; | ||
import org.opensearch.common.settings.Setting.Property; | ||
import org.opensearch.common.transport.PortsRange; | ||
|
||
import java.util.List; | ||
import java.util.function.Function; | ||
|
||
import static java.util.Collections.emptyList; | ||
import static org.opensearch.common.settings.Setting.intSetting; | ||
import static org.opensearch.common.settings.Setting.listSetting; | ||
|
||
/** | ||
* Auxiliary transport server settings. | ||
* | ||
* @opensearch.internal | ||
*/ | ||
public final class AuxTransportSettings { | ||
|
||
public static final Setting<PortsRange> SETTING_AUX_PORT = new Setting<>("aux.port", "9400-9500", PortsRange::new, Property.NodeScope); | ||
|
||
public static final Setting<Integer> SETTING_AUX_PUBLISH_PORT = intSetting("aux.publish_port", -1, -1, Setting.Property.NodeScope); | ||
|
||
public static final Setting<List<String>> SETTING_AUX_HOST = listSetting( | ||
"aux.host", | ||
emptyList(), | ||
Function.identity(), | ||
Setting.Property.NodeScope | ||
); | ||
|
||
public static final Setting<List<String>> SETTING_AUX_PUBLISH_HOST = listSetting( | ||
"aux.publish_host", | ||
SETTING_AUX_HOST, | ||
Function.identity(), | ||
Setting.Property.NodeScope | ||
); | ||
|
||
public static final Setting<List<String>> SETTING_AUX_BIND_HOST = listSetting( | ||
"aux.bind_host", | ||
SETTING_AUX_HOST, | ||
Function.identity(), | ||
Setting.Property.NodeScope | ||
); | ||
|
||
private AuxTransportSettings() {} | ||
} |
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,12 @@ | ||
/* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* The OpenSearch Contributors require contributions made to | ||
* this file be licensed under the Apache-2.0 license or a | ||
* compatible open source license. | ||
*/ | ||
|
||
/** | ||
* Settings and configuration helpers for optional auxiliary client/server transports provided by installed plugins. | ||
*/ | ||
package org.opensearch.aux; |
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
25 changes: 0 additions & 25 deletions
25
server/src/main/java/org/opensearch/grpc/AuxTransportSettings.java
This file was deleted.
Oops, something went wrong.