Commit Graph

84 Commits

Author SHA1 Message Date
cdfive 62efb78d4e
Refactor SpiLoader and enhance SPI mechanism (#1383)
* Add `@Spi` annotation as the general annotation for SPI definition.
* Add isDefault in @Spi, add loadDefaultInstance and improve loadFirstInstanceOrDefault method, improve test cases
* Add SpiLoaderException class for thrown when something goes wrong while loading Provider
* Rearrange packages of base SPI mechanism

NOTE: this PR contains breaking changes regarding API.
2021-01-27 09:45:56 +08:00
polarbear567 82826fa886
Support both HTTP and HTTPS protocol heart beating to dashboard (#1896)
Apply to both simple-http and netty-http modules.
2020-12-16 09:34:40 +08:00
nickChenyx cc2d1a69a9
Optimize logging statements using placeholder (#1736)
* Optimize logging statements using placeholder to avoid unnecessary concatenation (issue #1735)
2020-09-17 20:42:01 +08:00
HelloCoCooo 7192bcfb5b Fix the dependency conflict issue 2020-09-17 16:07:48 +08:00
M4Y 10aa39f822
doc: Fix typo in code comments (#1721) 2020-09-10 22:59:45 +08:00
Eric Zhao e58267012d Bump version to 1.8.1-SNAPSHOT
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2020-08-21 14:36:49 +08:00
Eric Zhao d17bf8c7cc Bump version to 1.8.0
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2020-08-20 19:47:20 +08:00
HupJ 4f31b2c61b
Add explicit null checking for charset in SimpleHttpClient#encodeRequestParams (#1589) 2020-07-07 09:43:46 +08:00
Eric Zhao a0196b6b00 Bump version to 1.8.0-SNAPSHOT
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2020-04-13 20:19:22 +08:00
Eric Zhao 6a7ec708bc Bump version to 1.7.2
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2020-04-08 09:42:02 +08:00
Jason Joo 49e60a3e51
Force modifyRule command handler to fail if an incompatible old fastjson found (#1377)
* Note that this is only a temporary solution.
2020-04-03 15:32:42 +08:00
Eric Zhao e4769293dc
Move CommandCenterLog to sentinel-transport-common and polish related code (#1341)
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2020-03-16 22:30:29 +08:00
Eric Zhao 22df09b427 Polish code of transport command centers and heartbeat senders
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2020-03-14 20:13:21 +08:00
Jason Joo 05e3caf618
Fix the parsing issue in large post request for sentinel-transport-simple-http (#1255) 2020-03-13 11:15:45 +08:00
Lin.Liang 72bfe870cb
Improve the logs when the heartbeat response indicates failure (#1303) 2020-03-04 23:38:53 +08:00
Jason Joo cd1d9be0ea
refactor: Migrate the console server's specifying logic into sentinel-transport-common (#926) 2020-02-24 22:45:59 +08:00
mantuliu f3b1b126c8
Improve singleton logic in SendMetricCommandHandler (#1294) 2020-02-19 19:38:24 +08:00
Eric Zhao 87142ce512 Bump version to 1.7.2-SNAPSHOT
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-12-25 11:19:07 +08:00
Eric Zhao 9c909e3631 Bump version to 1.7.1
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-12-24 20:05:23 +08:00
Eric Zhao f6badb0622 Improve logs in HttpEventTask of sentinel-transport-simple-http module
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-12-23 19:11:28 +08:00
zhenxianyimeng 50f3080add Fix content-type parsing bug in transport module and support UTF-8 encoding in SentinelApiClient (#1207)
* Fix content-type parsing bug in `sentinel-transport-simple-http` module
* Change the charset of UrlEncodedFormEntity to UTF-8 in SentinelApiClient of the dashboard to support non-ASCII characters
2019-12-19 20:50:20 +08:00
Eric Zhao 9d02e84674 Improve logic for configuring the heartbeat API path in TransportConfig
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-12-10 10:54:41 +08:00
nick.tan 9beb655b42 Support configuration for the heartbeat API path in transport module (#515) 2019-12-10 10:25:00 +08:00
Eric Zhao 9705f54611 Bump version to 1.7.1-SNAPSHOT
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-11-12 11:08:14 +08:00
Eric Zhao 8cdf1de854 Bump version to 1.7.0
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-11-11 21:12:58 +08:00
Eric Zhao b0905547ff Use ServiceLoaderUtil to create SPI ServiceLoader
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-10-23 19:20:53 +08:00
cdfive e810ab849e Fix multiple slash command name issue in sentinel-transport-netty-http module (#817) 2019-06-12 09:36:25 +08:00
Eric Zhao f8ebbbccf4 Bump version to 1.7.0-SNAPSHOT
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-05-25 15:07:19 +08:00
Eric Zhao 3d2c33ef1d Bump version to 1.6.1 (release)
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-05-23 09:49:15 +08:00
Carpenter Lee 18d8b4c8a7
Add CPU usage and system load to metric (#749)
Signed-off-by: Carpenter Lee <hooleeucas@163.com>
2019-05-10 14:20:00 +08:00
Eric Zhao 346e9b274e Bump version to 1.6.1-SNAPSHOT
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-04-25 09:38:59 +08:00
Eric Zhao b1345f751f Bump version to 1.6.0 (release)
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-04-24 20:42:32 +08:00
Eric Zhao 268c5502ed Update transport module to carry appName in heartbeat message
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-04-23 21:06:31 +08:00
Eric Zhao 030ec23736 Make CommandCenterProvider and HeartBeatSenderProvider choose the instance with highest precedence
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-04-17 14:47:09 +08:00
jason aaeeea37e5 Feature: Make transport-netty-http/transport-simple-http support posting 2019-04-12 10:42:08 +08:00
Eric Zhao 0c3bf96678 Bump version to 1.6.0-SNAPSHOT
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-03-27 18:00:06 +08:00
Eric Zhao 48286e0ff8 Bump version to 1.5.1 (release)
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-03-27 15:23:11 +08:00
Bo Zhang a3369378ad Apply Alibaba p3c pmd plugin/rules and fix/ignore all violations of priority 1 (#574) 2019-03-15 09:24:39 +08:00
Eric Zhao 0d4c47b23e Bump version to 1.5.1-SNAPSHOT
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-03-14 16:50:53 +08:00
Eric Zhao 053f7172a3 Bump version to 1.5.0 (release)
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-03-14 15:33:57 +08:00
Jason Joo 78c0dd8f86 transport: netty-http revert the default port to 80 of console.server and add unit test (#567) 2019-03-14 10:25:01 +08:00
Eric Zhao 4b1ccd93e2
Refactor Node interface: change return type of `xxxQps` method from long to double (#564)
- Update test cases (use assertEquals(e, a, delta) instead)
- Also add `totalPass` method in Node interface

Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-03-13 22:10:20 +08:00
Eric Zhao 860e7eb16e Update javadoc for CommandCenterProvider
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-03-11 20:49:29 +08:00
cdfive 61fede3827 Add a CommandCenterProvider to resolve and cache the CommandCenter instance (#409) 2019-03-04 17:34:41 +08:00
Eric Zhao ed5ecd8580 Update command handler demo and code refinement
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-03-01 13:56:55 +08:00
逅弈 59d923ebc1 Add an ApiCommandHandler to list all available commands and description (#491)
* Add a ApiCommandHandler which fetch all registered CommandHandlers so that user can get all available CommandHandlers by request /api
* Add a customized CommandHandler demo
2019-03-01 13:39:50 +08:00
Eric Zhao 5b260a9f75 Bump version to 1.5.0-SNAPSHOT
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-02-21 19:41:50 +08:00
Eric Zhao 2e0fe23384 Bump version to 1.4.2 (release)
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-02-20 14:15:33 +08:00
Eric Zhao d4d85dbc7c Bump version to 1.4.2-SNAPSHOT
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-01-04 19:08:07 +08:00
Eric Zhao 225d81ed93 Bump version to 1.4.1
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-01-04 14:59:50 +08:00