-
Notifications
You must be signed in to change notification settings - Fork 528
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(commons): migrate hugegraph-commons #2628
Merged
Merged
Changes from all commits
Commits
Show all changes
220 commits
Select commit
Hold shift + click to select a range
a5fa901
HugeGraph-341: First commit hugegraph-common code
Linary 5f30552
HugeGraph-344: add distributionManagement to deploy baidu maven repos…
Linary 3e5f626
HugeGraph-351: code format and clean up some warnings
Linary db55e23
HugeGraph-351: fixed bug that CoreOption constructor has been removed
Linary cccef5d
HugeGraph-357: modify return type of TriFunction
Linary 5603b9c
HugeGraph-326: add slf4j-api that has been mistakenly deleted
Linary 7bdf878
HugeGraph-407: add KeyLock class
javeme 3695904
HugeGraph-410: fixed code style of hugegraph-common
Linary d592690
HugeGraph-254: improve utils class perf with final(inline)
javeme ec2599d
HugeGraph-369
zhoney e88f54a
HugeGraph-462: add event manager
javeme 9cc9cad
HugeGraph-476: add destroy() method
javeme 9a1417f
HugeGraph-487
zhoney 171e723
HugeGraph-494: refine logic of lock() menthod
freeHackOfJeff 9778a8b
HugeGrap-499: fix english grammer in lock
freeHackOfJeff d3960c1
Always define long variable endwith 'L' indicator.
freeHackOfJeff 315000a
HugeGraph-503: using bit shift whenever, if not affect the code reada…
freeHackOfJeff 0c58069
HugeGraph-501: fix EventHub ConcurrentModificationException
javeme 5252a7e
HugeGraph-410: improve code style
javeme 9faea02
hugegraph-499
zhoney e05d130
HugeGraph-482: upgrade log4j to log4j2
Linary 6052985
hugegraph-502
zhoney b76e0ea
HugeGraph-527: add customized implemention version to manifest.mf
Linary dfd3190
HugeGraph-527: First add the version to the common module.
Linary dec8fe9
HugeGraph-531: Fix typo at OptionHolder class
freeHackOfJeff f33c093
HugeGraph-532: Rewrite checksocket class
freeHackOfJeff 5cda854
HugeGraph-525: add vertion check util
javeme a200dea
HugeGraph-131: clean up some warnings in LockGroup
javeme 8bdac2c
HugeGraph-525: add the const NAME of component hugegraph-common into …
javeme f6cdc8a
HugeGraph-547: replace tilNextMillis by tillNextMills as the later is…
freeHackOfJeff 705c27b
HugeGraph-555: add lockAll() for KeyLock
javeme 504069e
HugeGraph-623: rename LoggerFactory.getLogger() to Log.logger()
javeme c24069e
HugeGraph-625: fixed bug that there is a line length of more than 80 …
Linary b4a6cc9
HugeGraph-596: fixed bug that hugegraph-common deploy before merge
Linary ca0a983
HugeGraph-596: Passed env varibale from BCLOUD to agile module for hu…
Linary 281aab8
HugeGraph-645: Add space line between license and package for hugegra…
Linary 4d6c421
HugeGraph-726: add toList(array) method into class CollectionUtil
javeme 12c53cc
fix EventHub bugs: HugeGraph-732 and HugeGraph-733
javeme 5195740
HugeGraph-762: add isSimpleType() method to class ReflectionUtil
javeme 5e003a7
HugeGraph-830: Catch IOException if create new socket connection fail…
Linary d8d4b3e
hugegraph-911 add prefixOf method into CollectionUtil
zhoney 094f8bb
HugeGraph-935: Add a method 'allUnique'
Linary b01f3a3
HugeGraph-975: support conversion: number <==> bytes
javeme 3d3da16
HugeGraph-978: add prefixWith() for bytes
javeme 1804fa7
HugeGraph-984: Fixed bug that multi graphs has same name config optio…
Linary 6503235
HugeGraph-986: Let prefixOf support generic type
Linary 7789bc8
HugeGraph-989: add toHex()/fromHex() to class Bytes
javeme 8a44989
HugeGraph-990: Fixed bug that compile error when building project
Linary 24ff820
HugeGraph-994: Fixed bug that some key has more than one value will t…
Linary fe8b51d
HugeGraph-976: add filter-iterator
javeme 9f994b3
HugeGraph-1000: allow non-check of config options
javeme 8219a10
HugeGraph-1075: add allowValues() to OptionChecker
javeme 2ae8e15
HugeGraph-1097: fix missing check for duplicated options
javeme 749a2d9
HugeGraph-1097: fix check error when HugeConfig(Configuration config)…
javeme fde9c72
HugeGraph-1110: let iterators implement AutoCloseable and Metadatable
javeme 8d83339
HugeGraph-1158: awllow empty Iterator add to ExtendableIterator
javeme 154e030
HugeGraph-1171: Modify the way for config options registration
Linary cb33bbd
HugeGraph-1174: Let config reload if some options contains comma
Linary 12c6591
HugeGraph-1183: Add common RestClient for server and client
Linary 56a60dc
HugeGraph-1190: add OptionSpace.keys() method
javeme 1bf8d9e
HugeGraph-1191: rewrite exception handling mechanism at register method
freeHackOfJeff 5183fb0
HugeGraph-1208: Move compareNumber() from core to common module
Linary 887a4d5
HugeGraph-1196: Fix grammer at exits method
freeHackOfJeff c2db8f5
HugeGraph-81: Fixed bug that message and cause placed error
Linary aa222c4
HugeGraph-1229: add README.md for project hugegraph-common
Linary d6d92e4
HugeGraph-1229: add README.md for project hugegraph-common
Linary 9346717
HugeGraph-1236: add getMap() to HugeConfig
javeme 140cf84
hugegraph-1234 add subset util
zhoney 544b94c
HugeGraph-1257: Let jersey client use preemptive credentials
Linary daa967d
HugeGraph-1301: Move SafeDateFormat class to hugegraph-common module
Linary 8c76d5b
HugeGraph-1309: add remove() support to WrappedIterator
javeme 4aae65c
HugeGraph-81: Small optimization of package structure
Linary 92ad62a
HugeGraph-1330: add support for 128bits hash
javeme 50c7738
HugeGraph-1312: Add config to deploy to sonatype maven respority
Linary eed956d
hugegraph-81 add github link to README
zhoney 9db4310
HugeGraph-1336: move common tests from hugegraph-test to hugegraph-co…
javeme 1db56cf
HugeGraph-1341: Upgrade version to 1.4.8(1.4.7 failed deploying to ma…
Linary 553cd60
hugegraph-889 add ACCEPTED to POST, PUT and DELETE for async
zhoney a412145
HugeGraph-1349: Add some badges(licence, build, coverage and maven) i…
Linary 1c7c839
hugegraph-1364 add LICENSE for hugegraph-common
zhoney 07793f9
HugeGraph-622: Bump up to version 1.5.0
zhoney 591d3f3
HugeGraph-1399: let EventHub.notify() return Future to sync
javeme 16fbcb3
Optimize intersect action
Linary 904f426
README improve
zhoney 146e4bc
add api for setting thread pool name
javeme 476bb78
Add CollectionUtilTest to UnitTestSuite
Linary 6f20cb8
Fix dependency conflict "InjectionManagerFactory not found"
Linary bbbc8e7
Add CollectionUtil.sortByValue()
Linary 5f6012c
Support for sortable base64 encoding
javeme 5bac575
Set origin iterator last one if all iterators of extendable iterator …
zhoney 95530cc
add PerfUtil.clear()/Bytes.concat()/CollectionUtil.randomSet()
javeme 306b4f1
fix NPE in EventHub.destroy()
javeme 87c5826
Let RestClient can reuse connections
Linary 1eb2414
Add OrderLimitMap
Linary 194ed53
add Whitebox.invoke() method (#22)
javeme 5ea077f
add support of sortable negative number for NumericUtil (#23)
javeme 0822dd9
let subclass of ConfigOption be able to override parent options (#24)
javeme 1a66a60
Enhance toList and add toSet in CollectionUtil (#25)
Linary 64bd154
RestClient support to close idle connection periodically (#26)
Linary 2f453c0
support typed option (#27)
javeme 48a39fc
improve exception message for InvocationTargetException (#28)
javeme 85a6b7e
Enhance ExecutorUtil to create ScheduledThreadPool (#29)
Linary b525aef
add maxValueOf() for NumericUtil (#30)
zhoney 88d8838
Support show time in readable format (#31)
Linary ce75fb9
Enhance split in StringUtil (#32)
Linary 0436a14
add methods Bytes.contains() & Bytes.indexOf() (#33)
javeme cc46341
improve LongEncoding.decodeSortable() (#34)
zhoney f8e65f8
add Bytes.toHex() method (#35)
javeme 41bc25c
support calling superclass method for Whitebox.invoke() (#37)
javeme 0ff4b0e
Extract license common structures (#36)
Linary 4eda631
Support keyLock in LockGroup (#38)
zhoney 49bff5e
Support RowLock in LockGroup (#39)
zhoney d78b728
Split ConfigOption read into two steps: parse() and convert() (#40)
javeme 8268b75
add generic parameter for RowLock (#42)
javeme 24b8a33
support assert range conditions (#41)
javeme 4bd64ce
fix iterators may not be closed (#43)
javeme 0a71d12
Add nodes and data size to extra param (#44)
Linary fffccf1
Upgrade jackson version to 2.10.2 (#45)
Linary 0d90ae4
add encodeSignedB64() method (#46)
javeme c2c5ba4
add https support (#47)
shzcore 034e1a2
Add dateutil (#48)
zhoney b4fb1f7
refactor RestClient as interface (#49)
javeme 544599e
Fix HugeConfig save to file is empty (#51)
Linary 9f329f5
Bump log4j2.version from 2.8.2 to 2.13.3 (#52)
dependabot[bot] 630e19f
fix LockManager get/create race condition (#53)
javeme 2d4a8ee
Upgrade version to 1.8.0 for release (#55)
Linary 9962e0c
fix https+auth bug (#57)
zhoney 37de7be
Improve SafeDateFormat by joda DateTimeFormatter (#59)
Linary f4e861b
add BarrierEvent (#60)
houzhizhen c80f959
Implement PausableScheduledThreadPool (#61)
Linary cde7763
fix BatchMapperIterator stopped when fetched none in the middle batch…
javeme ccc4d3b
add LimitIterator class (#62)
javeme 42e5260
Add Class.class as an accept data type in TypedOption (#65)
Linary 1114e94
First commit
Linary 3914813
Add checkstyle plugin
Linary 98844d8
add UnitUtil class (#66)
javeme 265f74b
Add checkstyle plugin (#67)
Linary 159143c
add rpc framework based on sofa-rpc (#1)
javeme 6c80038
support random port to start rpc server (#2)
javeme d51efb6
add some test cases for util package (#70)
javeme fe19014
improve profile performance (#69)
javeme aecaf4e
remove inner hostname from cacerts.jks (#72)
shzcore 185a926
Fix senstive mail address (#71)
Linary f72fac4
Improve some license params (#73)
Linary 74b954a
disable delimiter parsing when construct from MapConfiguration (#74)
houzhizhen 27dfd9d
Bump commons-io from 2.4 to 2.7 (#75)
dependabot[bot] 9101842
Bump jackson.version from 2.10.2 to 2.12.1 (#63)
dependabot[bot] efa8e97
chore: use github action to run ci (#77)
Linary 535ae07
add Auth Context to store request header(Authorization) (#76)
corgiboygsj 49e8599
chore: add issue template & auto stale issues and pr (#78)
imbajin 3881b86
fix: unable to close the rpc thread pool at destroy (#3)
coderzc 53c6503
chore: update ubuntu version for ci actions (#79)
imbajin 1d27452
add bearer token support (#81)
guoygang c572c2b
first rename
imbajin 0789b1c
merge rpc module into commons
imbajin 24c3390
chore: merge license & checkstyle & ci
imbajin ee08712
chore: new pom & README for module
imbajin f5383d5
Merge pull request #84 (merge rpc module into commons)
javeme 3b8933c
fix log4j error (#85)
zhoney fbb743a
bump up version to 2.0.0 (#86)
javeme 4a1926f
improve java doc (#87)
zhoney 8f0f2ba
release maven package by actions (#88)
coderzc 922a4f6
upgrade log4j to version 2.17.0 (#89)
zhoney d695bd4
fix some test cases naming (#90)
javeme 4b21e94
chore: support java 11 (#83)
zyxxoo 05fe7a4
chore: use cla assistant to support robot pr (#92)
imbajin 88d2f89
chore: support code security check with codeQL (#94)
imbajin d0e5971
fix: can't delete conf file when drop graph (#93)
zyxxoo f2e8384
version 2.1.2 (#96)
zyxxoo deac513
improve Whitebox.setInternalState() (#99)
javeme db84121
refact: unify pom & remove useless file (#100)
imbajin 589ee2c
support assert-throws return future (#102)
javeme 4af14a9
add Cnm and Anm to CollectionUtil (#101)
javeme 745bd86
chore: use .asf.yaml for apache workflow rule (#98)
imbajin 09b1819
update checkstyle (#97)
seagle-yuan 42ef9c4
chore: upgrade CodeQL version to v2 (#106)
damonxue 3b1bcb1
rename package name `com.baidu` to `org.apache` (#104)
corgiboygsj e85ab38
refact: clean code & typo & update the name of getTimeZone (#105)
imbajin be72d20
chore: setup for apache maven release (#107)
imbajin b783da5
feat(apache): support check license header with RAT (#108)
imbajin ae54f28
refact: upgrade a string of dependencies to address CVEs report & cle…
imbajin dc3e9e2
chore: enable ci in all prs (#111)
imbajin 4361a51
chore: fix missing mail address & other configs (#112)
imbajin 16602cc
support custom content-type (#113)
z7658329 7347b17
fix apache revision (#114)
z7658329 952975a
add dep check ci (#116)
simon824 caa4b26
refact: address some code alert (#115)
imbajin 4dbe157
Add thrid-party dependency licenses (#117)
simon824 5bc993f
manifest version use project.version (#119)
z7658329 37e221a
delete blankspace of licenses filename (#120)
seagle-yuan c86e38a
chore: enable rebase option (#121)
imbajin a40774e
chore: prepare for release v1.0.0 (#122)
imbajin 9463119
chore: update release script & add mailing lists (#123)
imbajin 0239a1e
fix: add style files back (#125)
z7658329 e400e4d
refact(test): download binary file for https test (#126)
imbajin e339fed
fix(dist): generate doc & exit script when upload files failed
imbajin c28f8c8
chore: add DISCLAIMER & NOTICE & LICENSE file to binary package
imbajin 1f64e8a
chore: remove copyright in file header & fix some files
imbajin 8724b12
chore: fix copyright year and format
imbajin e1cb3eb
chore(license): fix 3rd party refer code (#127)
imbajin 6f9493a
1
simon824 6aa01af
Update NOTICE
simon824 f9593d4
chore: refactor the license check CI
imbajin 82f2a65
Update license-checker.yml
imbajin 297e491
fix commons dependency conflict (#131)
z7658329 c31a536
add some construction methods for more convenient use (#132)
chengxin1374 b49be05
add: dependency-review (#134)
msgui 5ad55fb
feat(common): replace jersey dependencies with OkHttp (Breaking Chang…
zhenyuT 8c93652
fix: Assert.assertThrows() should check result of exceptionConsumer (…
javeme 10f0a87
refact(common): rename jsonutil to avoid conflicts with server (#136)
imbajin dcf3752
fix the json param convert (#137)
zhenyuT 44f99e9
doc: update README for release (#138)
imbajin 33fa9ed
update licence (#139)
zhenyuT 0cfd8da
feat: support user defined RestClientConfig/HTTPClient params (#140)
zhenyuT c883f56
chore: disable clean flatten for deploy (#141)
imbajin 93c2e08
Update 'How to Contribute' link and remove duplicate 'Guidelines' li…
ZeeJJ123 9baef8b
fix(commons):fixed memory leaks occur in HugeGraph Server during data…
haohao0103 162a104
git mv to hugegraph-commons
VGalaxies 459d441
Merge remote-tracking branch 'commons/migrate-commons' into intro-com…
VGalaxies b087f08
chore(commons): basic adapt for commons migration
VGalaxies File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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,64 @@ | ||
name: "HugeGraph-Commons CI" | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- master | ||
- /^release-.*$/ | ||
- /^test-.*$/ | ||
pull_request: | ||
|
||
jobs: | ||
build-commons: | ||
runs-on: ubuntu-latest | ||
env: | ||
# TODO: reset use stage to false later | ||
USE_STAGE: 'true' # Whether to include the stage repository. | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
JAVA_VERSION: ['11'] | ||
|
||
steps: | ||
- name: Install JDK ${{ matrix.JAVA_VERSION }} | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: ${{ matrix.JAVA_VERSION }} | ||
distribution: 'zulu' | ||
|
||
- name: Cache Maven packages | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.m2 | ||
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: ${{ runner.os }}-m2 | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 2 | ||
|
||
- name: Use staged maven repo settings | ||
if: ${{ env.USE_STAGE == 'true' }} | ||
run: | | ||
cp $HOME/.m2/settings.xml /tmp/settings.xml | ||
cp -vf .github/configs/settings.xml $HOME/.m2/settings.xml && cat $HOME/.m2/settings.xml | ||
|
||
- name: Compile | ||
run: | | ||
mvn compile -Dmaven.javadoc.skip=true -ntp | ||
|
||
- name: Run common test | ||
run: | | ||
mvn test -pl hugegraph-commons/hugegraph-common -Dtest=UnitTestSuite | ||
|
||
- name: Run rpc test | ||
run: | | ||
mvn test -pl hugegraph-commons/hugegraph-rpc -Dtest=UnitTestSuite | ||
|
||
- name: Upload coverage to Codecov | ||
uses: codecov/[email protected] | ||
with: | ||
file: target/jacoco.xml |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: "Graph PD & Store & Hstore CI" | ||
name: "HugeGraph-PD & Store & Hstore CI" | ||
|
||
on: | ||
push: | ||
|
@@ -14,7 +14,8 @@ jobs: | |
runs-on: ubuntu-latest | ||
env: | ||
# TODO: avoid duplicated env setup in pd & store | ||
USE_STAGE: 'false' # Whether to include the stage repository. | ||
# TODO: reset use stage to false later | ||
USE_STAGE: 'true' # Whether to include the stage repository. | ||
# TODO: remove outdated env | ||
TRAVIS_DIR: hugegraph-server/hugegraph-dist/src/assembly/travis | ||
REPORT_DIR: target/site/jacoco | ||
|
@@ -46,11 +47,11 @@ jobs: | |
|
||
- name: Run common test | ||
run: | | ||
mvn test -pl hugegraph-pd/hg-pd-test -am -P pd-common-test | ||
mvn test -pl hugegraph-pd/hg-pd-test -am -P pd-common-test -DskipCommonsTests=true | ||
|
||
- name: Run core test | ||
run: | | ||
mvn test -pl hugegraph-pd/hg-pd-test -am -P pd-core-test | ||
mvn test -pl hugegraph-pd/hg-pd-test -am -P pd-core-test -DskipCommonsTests=true | ||
|
||
# The above tests do not require starting a PD instance. | ||
|
||
|
@@ -64,11 +65,11 @@ jobs: | |
|
||
- name: Run client test | ||
run: | | ||
mvn test -pl hugegraph-pd/hg-pd-test -am -P pd-client-test | ||
mvn test -pl hugegraph-pd/hg-pd-test -am -P pd-client-test -DskipCommonsTests=true | ||
|
||
- name: Run rest test | ||
run: | | ||
mvn test -pl hugegraph-pd/hg-pd-test -am -P pd-rest-test | ||
mvn test -pl hugegraph-pd/hg-pd-test -am -P pd-rest-test -DskipCommonsTests=true | ||
|
||
- name: Upload coverage to Codecov | ||
uses: codecov/[email protected] | ||
|
@@ -79,7 +80,7 @@ jobs: | |
# TODO: avoid duplicated env setup | ||
runs-on: ubuntu-latest | ||
env: | ||
USE_STAGE: 'false' # Whether to include the stage repository. | ||
USE_STAGE: 'true' # Whether to include the stage repository. | ||
# TODO: remove outdated env | ||
TRAVIS_DIR: hugegraph-server/hugegraph-dist/src/assembly/travis | ||
REPORT_DIR: target/site/jacoco | ||
|
@@ -120,27 +121,27 @@ jobs: | |
|
||
- name: Run common test | ||
run: | | ||
mvn test -pl hugegraph-store/hg-store-test -am -P store-common-test | ||
mvn test -pl hugegraph-store/hg-store-test -am -P store-common-test -DskipCommonsTests=true | ||
|
||
- name: Run client test | ||
run: | | ||
mvn test -pl hugegraph-store/hg-store-test -am -P store-client-test | ||
mvn test -pl hugegraph-store/hg-store-test -am -P store-client-test -DskipCommonsTests=true | ||
|
||
- name: Run core test | ||
run: | | ||
mvn test -pl hugegraph-store/hg-store-test -am -P store-core-test | ||
mvn test -pl hugegraph-store/hg-store-test -am -P store-core-test -DskipCommonsTests=true | ||
|
||
- name: Run rocksdb test | ||
run: | | ||
mvn test -pl hugegraph-store/hg-store-test -am -P store-rocksdb-test | ||
mvn test -pl hugegraph-store/hg-store-test -am -P store-rocksdb-test -DskipCommonsTests=true | ||
|
||
- name: Run server test | ||
run: | | ||
mvn test -pl hugegraph-store/hg-store-test -am -P store-server-test | ||
mvn test -pl hugegraph-store/hg-store-test -am -P store-server-test -DskipCommonsTests=true | ||
|
||
- name: Run raft-core test | ||
run: | | ||
mvn test -pl hugegraph-store/hg-store-test -am -P store-raftcore-test | ||
mvn test -pl hugegraph-store/hg-store-test -am -P store-raftcore-test -DskipCommonsTests=true | ||
|
||
- name: Upload coverage to Codecov | ||
uses: codecov/[email protected] | ||
|
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,66 @@ | ||
# hugegraph-commons | ||
|
||
[![License](https://img.shields.io/badge/license-Apache%202-0E78BA.svg)](https://www.apache.org/licenses/LICENSE-2.0.html) | ||
[![codecov](https://codecov.io/gh/hugegraph/hugegraph-common/branch/master/graph/badge.svg)](https://codecov.io/gh/hugegraph/hugegraph-common) | ||
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/org.apache.hugegraph/hugegraph-common/badge.svg)](https://mvnrepository.com/artifact/org.apache.hugegraph/hugegraph-common) | ||
[![CodeQL](https://github.com/apache/incubator-hugegraph-commons/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/apache/incubator-hugegraph-commons/actions/workflows/codeql-analysis.yml) | ||
[![hugegraph-commons ci](https://github.com/apache/incubator-hugegraph-commons/actions/workflows/ci.yml/badge.svg)](https://github.com/apache/incubator-hugegraph-commons/actions/workflows/ci.yml) | ||
|
||
|
||
hugegraph-commons is a common module for [HugeGraph](https://github.com/apache/hugegraph) and its peripheral components. | ||
hugegraph-commons encapsulates locks, configurations, events, iterators, rest and some | ||
numeric or collection util classes to simplify the development of HugeGraph and its components. | ||
|
||
## Components | ||
|
||
- Lock: atomic lock, key lock, lock group and lock manger | ||
- Config: register and load config option with security check | ||
- Event: listening and notification, do something asynchronously | ||
- Iterator: some iterators with extra functions, map, filter, extend, etc. | ||
- Rest: RESTful client implemented on OkHttp, POST, PUT, GET and DELETE | ||
- Util: performance analyzer, version checker, numeric and Collection utils, log and exception utils, etc. | ||
- Rpc: rpc component for inner module communication, currently it's based on [Sofa-RPC](https://github.com/sofastack/sofa-rpc) | ||
|
||
You could use import the dependencies in `maven` like this: | ||
|
||
```xml | ||
<dependency> | ||
<groupId>org.apache.hugegraph</groupId> | ||
<artifactId>hugegraph-common</artifactId> | ||
<version>1.2.0</version> | ||
</dependency> | ||
``` | ||
|
||
## Learn More | ||
|
||
The [doc page](https://hugegraph.apache.org/docs/) contains more information about hugegraph modules. | ||
|
||
And here are links of other repositories: | ||
1. [hugegraph-server](https://github.com/apache/hugegraph) (graph's core component - OLTP server) | ||
2. [hugegraph-toolchain](https://github.com/apache/hugegraph-toolchain) (include loader/dashboard/tool/client) | ||
3. [hugegraph-computer](https://github.com/apache/hugegraph-computer) (graph processing system - OLAP) | ||
4. [hugegraph-website/doc](https://github.com/apache/hugegraph-doc) (include doc & website code) | ||
|
||
|
||
|
||
## Contributing | ||
|
||
- Welcome to contribute to HugeGraph, please see [How to Contribute](https://hugegraph.apache.org/docs/contribution-guidelines/contribute/) for more information. | ||
- Note: It's recommended to use [GitHub Desktop](https://desktop.github.com/) to greatly simplify the PR and commit process. | ||
- Thank you to all the people who already contributed to HugeGraph! | ||
|
||
[![contributors graph](https://contrib.rocks/image?repo=apache/hugegraph-commons)](https://github.com/apache/incubator-hugegraph-commons/graphs/contributors) | ||
|
||
## Licence | ||
|
||
Same as HugeGraph, hugegraph-commons are also licensed under [Apache 2.0](./LICENSE) License. | ||
|
||
### Contact Us | ||
|
||
--- | ||
|
||
- [GitHub Issues](https://github.com/apache/incubator-hugegraph-commons/issues): Feedback on usage issues and functional requirements (quick response) | ||
- Feedback Email: [[email protected]](mailto:[email protected]) ([subscriber](https://hugegraph.apache.org/docs/contribution-guidelines/subscribe/) only) | ||
- WeChat public account: Apache HugeGraph, welcome to scan this QR code to follow us. | ||
|
||
<img src="https://raw.githubusercontent.com/apache/incubator-hugegraph-doc/master/assets/images/wechat.png" alt="QR png" width="350"/> |
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,23 @@ | ||
# hugegraph-common | ||
|
||
[![License](https://img.shields.io/badge/license-Apache%202-0E78BA.svg)](https://www.apache.org/licenses/LICENSE-2.0.html) | ||
[![Build Status](https://travis-ci.org/hugegraph/hugegraph-common.svg?branch=master)](https://travis-ci.org/hugegraph/hugegraph-common) | ||
[![codecov](https://codecov.io/gh/hugegraph/hugegraph-common/branch/master/graph/badge.svg)](https://codecov.io/gh/hugegraph/hugegraph-common) | ||
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/org.apache.hugegraph/hugegraph-common/badge.svg)](https://mvnrepository.com/artifact/org.apache.hugegraph/hugegraph-common) | ||
|
||
hugegraph-common is a common module for [HugeGraph](https://github.com/hugegraph/hugegraph) and its peripheral components. | ||
hugegraph-common encapsulates locks, configurations, events, iterators, rest and some | ||
numeric or collection util classes to simplify the development of HugeGraph and | ||
its components. | ||
|
||
## Components | ||
|
||
- Lock: atomic lock, key lock, lock group and lock manger | ||
- Config: register and load config option with security check | ||
- Event: listening and notification, do something asynchronously | ||
- Iterator: some iterators with extra functions, map, filter, extend, etc. | ||
- Rest: RESTful client implemented on Jersey, POST, PUT, GET and DELETE | ||
- Util: Performance analyzer, version checker, numeric and Collection utils, log and exception utils, etc. | ||
|
||
## Licence | ||
The same as HugeGraph, hugegraph-common is also licensed under Apache 2.0 License. |
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,23 @@ | ||
#!/usr/bin/env bash | ||
# | ||
# Licensed to the Apache Software Foundation (ASF) under one or more | ||
# contributor license agreements. See the NOTICE file distributed with | ||
# this work for additional information regarding copyright ownership. | ||
# The ASF licenses this file to You under the Apache License, Version 2.0 | ||
# (the "License"); you may not use this file except in compliance with | ||
# the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
|
||
export MAVEN_HOME=/home/scmtools/buildkit/maven/apache-maven-3.3.9/ | ||
export JAVA_HOME=/home/scmtools/buildkit/java/jdk1.8.0_25/ | ||
export PATH=$JAVA_HOME/bin:$MAVEN_HOME/bin:$PATH | ||
|
||
mvn clean test -Dtest=UnitTestSuite |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we need visit stage here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
commons-rpc depends on commons-common, which currently only exists in the maven stage repository
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: reset use stage to false later