-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#78 - configuration migration to startup-parameters library
- Loading branch information
akorobov
committed
Feb 15, 2024
1 parent
94ac689
commit 06b3bcb
Showing
11 changed files
with
87 additions
and
56 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
15 changes: 15 additions & 0 deletions
15
...og-service/src/main/java/com/payneteasy/srvlog/adapter/logback/ILogbackAdapterConfig.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,15 @@ | ||
package com.payneteasy.srvlog.adapter.logback; | ||
|
||
import com.payneteasy.startup.parameters.AStartupParameter; | ||
|
||
public interface ILogbackAdapterConfig { | ||
|
||
@AStartupParameter(name = "LOGBACK_PROGRAM", value = "paynet") | ||
String getProgram(); | ||
|
||
@AStartupParameter(name = "LOGBACK_TCP_PORT", value = "4713") | ||
int getTcpPort(); | ||
|
||
@AStartupParameter(name = "LOGBACK_UDP_PORT", value = "4713") | ||
int getUdpPort(); | ||
} |
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
9 changes: 9 additions & 0 deletions
9
srvlog-service/src/main/java/com/payneteasy/srvlog/service/impl/ILogBroadcastingConfig.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,9 @@ | ||
package com.payneteasy.srvlog.service.impl; | ||
|
||
import com.payneteasy.startup.parameters.AStartupParameter; | ||
|
||
public interface ILogBroadcastingConfig { | ||
|
||
@AStartupParameter(name = "LOG_STORAGE_CAPACITY", value = "1000") | ||
int getProgramLogStorageCapacity(); | ||
} |
18 changes: 18 additions & 0 deletions
18
srvlog-service/src/main/java/com/payneteasy/srvlog/service/impl/ISphinxConfig.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,18 @@ | ||
package com.payneteasy.srvlog.service.impl; | ||
|
||
import com.payneteasy.startup.parameters.AStartupParameter; | ||
|
||
public interface ISphinxConfig { | ||
|
||
@AStartupParameter(name = "SPHINX_HOST", value = "localhost") | ||
String getHost(); | ||
|
||
@AStartupParameter(name = "SPHINX_PORT", value = "9312") | ||
int getPort(); | ||
|
||
@AStartupParameter(name = "SPHINX_CONNECT_TIMEOUT", value = "30000") | ||
int getConnectTimeout(); | ||
|
||
@AStartupParameter(name = "SPHINX_QUERY_INDEXES", value = "srvlog_index_main,srvlog_index_delta") | ||
String getQueryIndexes(); | ||
} |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.