-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge with the branch 'feature/json-rpc'.
- Loading branch information
Showing
953 changed files
with
40,138 additions
and
3,011 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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
.idea/ | ||
target/ | ||
*.iml | ||
|
||
# Compiled class file | ||
*.class | ||
|
||
# Log file | ||
*.log | ||
|
||
# BlueJ files | ||
*.ctxt | ||
|
||
# Mobile Tools for Java (J2ME) | ||
.mtj.tmp/ | ||
|
||
# Package Files # | ||
*.jar | ||
*.war | ||
*.nar | ||
*.ear | ||
*.zip | ||
*.tar.gz | ||
*.rar | ||
|
||
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml | ||
hs_err_pid* |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"$id": "https://github.com/Enfernuz/quik-lua-rpc-java-client/schema_client-config.json", | ||
"title": "Схема конфигурации клиента QLua RPC-сервиса", | ||
"description": "Конфигурация клиента QLua RPC-сервиса", | ||
"type": "object", | ||
"properties": { | ||
"address": { | ||
"description": "Адрес точки подключения к QLua RPC-сервису", | ||
"type": "object", | ||
"properties": { | ||
"host": { | ||
"description": "IP-адрес/хост точки подключения к QLua RPC-сервису", | ||
"type": "string", | ||
"minLength": 1 | ||
}, | ||
"port": { | ||
"description": "Номер порта точки подключения к QLua RPC-сервису", | ||
"type": "number", | ||
"minimum": 0, | ||
"maximum": 65535 | ||
} | ||
}, | ||
"required": ["host", "port"] | ||
}, | ||
"serde_protocol": { | ||
"description": "Протокол сериализации/десериализации сообщений", | ||
"type": "string", | ||
"pattern": "protobuf|json" | ||
}, | ||
"auth": { | ||
"description": "Информация об используемом механизме аутентификации соединения", | ||
"type": "object", | ||
"properties": { | ||
"mechanism": { | ||
"description": "Тип механизма аутентификации ZeroMQ", | ||
"type": "string", | ||
"pattern": "NULL|PLAIN|CURVE" | ||
}, | ||
"plain": { | ||
"description": "Информация о простом механизме аутентификации соединения (пара 'пользователь/пароль')", | ||
"type": "object", | ||
"properties": { | ||
"username": { | ||
"description": "Пользователь", | ||
"type": "string", | ||
"minLength": 1 | ||
}, | ||
"password": { | ||
"description": "Пароль", | ||
"type": "string" | ||
} | ||
}, | ||
"required": ["username", "password"] | ||
}, | ||
"curve": { | ||
"description": "Информация о механизме аутентификации соединения с использованием шифрования", | ||
"type": "object", | ||
"properties": { | ||
"client": { | ||
"description": "Ключевая пара клиента", | ||
"type": "object", | ||
"properties": { | ||
"public": { | ||
"description": "Публичный CURVE-ключ клиента в формате Z85", | ||
"type": "string", | ||
"pattern": "^[0-9a-zA-Z.\\-:+=^!/*?&<>()\\[\\]{\\}@%$#]{40}$" | ||
}, | ||
"secret": { | ||
"description": "Приватный CURVE-ключ клиента в формате Z85", | ||
"type": "string", | ||
"pattern": "^[0-9a-zA-Z.\\-:+=^!/*?&<>()\\[\\]{\\}@%$#]{40}$" | ||
} | ||
}, | ||
"required": ["public", "secret"] | ||
}, | ||
"server": { | ||
"description": "Информация о CURVE-ключе точки подключения", | ||
"type": "object", | ||
"properties": { | ||
"public": { | ||
"description": "Публичный CURVE-ключ точки подключения в формате Z85", | ||
"type": "string", | ||
"pattern": "^[0-9a-zA-Z.\\-:+=^!/*?&<>()\\[\\]{\\}@%$#]{40}$" | ||
} | ||
}, | ||
"required": ["public"] | ||
} | ||
}, | ||
"required": ["client", "server"] | ||
} | ||
}, | ||
"required": ["mechanism"] | ||
} | ||
}, | ||
"required": ["address", "serde_protocol", "auth"] | ||
} |
16 changes: 16 additions & 0 deletions
16
src/main/java/com/enfernuz/quik/lua/rpc/api/ClientRpcException.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,16 @@ | ||
package com.enfernuz.quik.lua.rpc.api; | ||
|
||
public final class ClientRpcException extends RpcException { | ||
|
||
public ClientRpcException(final String message) { | ||
super(message); | ||
} | ||
|
||
public ClientRpcException(final Throwable cause) { | ||
super(cause); | ||
} | ||
|
||
public ClientRpcException(final String message, final Throwable cause) { | ||
super(message, cause); | ||
} | ||
} |
Oops, something went wrong.