-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
增加TestPattern单元测试。删除接口函数签名中的throws Exception声明
- Loading branch information
1 parent
fa62aed
commit 7bb761d
Showing
29 changed files
with
582 additions
and
110 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
40 changes: 40 additions & 0 deletions
40
nop-stream/nop-stream-cep/src/main/java/io/nop/stream/cep/NopCepConfigs.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 io.nop.stream.cep; | ||
|
||
import io.nop.api.core.annotations.core.Description; | ||
import io.nop.api.core.config.IConfigReference; | ||
import io.nop.api.core.util.SourceLocation; | ||
|
||
import java.time.Duration; | ||
import java.time.temporal.ChronoUnit; | ||
|
||
import static io.nop.api.core.config.AppConfig.varRef; | ||
|
||
public interface NopCepConfigs { | ||
SourceLocation s_loc = SourceLocation.fromClass(NopCepConfigs.class); | ||
|
||
String COMMON_HINT = | ||
"And it could accelerate the CEP operate process " | ||
+ "speed and limit the capacity of cache in pure memory. Note: It's only effective to " | ||
+ "limit usage of memory when 'state.backend' was set as 'rocksdb', which would " | ||
+ "transport the elements exceeded the number of the cache into the rocksdb state " | ||
+ "storage instead of memory state storage."; | ||
|
||
@Description("The Config option to set the maximum element number the " | ||
+ "eventsBufferCache of SharedBuffer could hold. " | ||
+ COMMON_HINT) | ||
IConfigReference<Integer> CEP_SHARED_BUFFER_EVENT_CACHE_SLOTS = | ||
varRef(s_loc, "nop.cep.pipeline.sharedbuffer.cache.event-slots", Integer.class, 1024); | ||
|
||
@Description("The Config option to set the maximum element number the entryCache" | ||
+ " of SharedBuffer could hold. And it could accelerate the" | ||
+ " CEP operate process speed with state." | ||
+ COMMON_HINT) | ||
IConfigReference<Integer> CEP_SHARED_BUFFER_ENTRY_CACHE_SLOTS = | ||
varRef(s_loc, "nop.cep.pipeline.sharedbuffer.cache.entry-slots", Integer.class, 1024); | ||
|
||
@Description("The interval to log the information of cache state statistics in " | ||
+ "CEP operator.") | ||
IConfigReference<Duration> CEP_CACHE_STATISTICS_INTERVAL = | ||
varRef(s_loc, "nop.cep.pipeline.sharedbuffer.cache.statistics-interval", Duration.class, Duration.of(30, ChronoUnit.MINUTES)); | ||
|
||
} |
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
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
Oops, something went wrong.