Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
kalaiyarasiganeshalingam committed Jul 26, 2023
2 parents c82b945 + 93369da commit 5512713
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 55 deletions.
4 changes: 2 additions & 2 deletions ballerina-test-automation/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
swan-lake-latest-version=swan-lake-2201.6.0
swan-lake-latest-version=swan-lake-2201.8.0
swan-lake-latest-spec-version=2023R1
swan-lake-latest-version-display-text=2201.6.0
swan-lake-latest-version-display-text=2201.8.0
swan-lake-latest-tool-version=1.3.15
latest-tool-version=1.3.15
1-x-channel-latest-version=1.2.13
Expand Down
1 change: 0 additions & 1 deletion examples/stop-handler/stop_handler.client.out
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
# Invoke the service using cURL to add a fruit item.
$ curl http://localhost:9090/addToBasket -d 'Guava'
["Apple", "Orange", "Guava"]
10 changes: 7 additions & 3 deletions examples/stop-handler/stop_handler.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
# `StopHandler`

The `StopHandler` registers a function that will be called during the graceful shutdown.
This example demonstrates how to register a function that will be executed at the end of the program.
A `StopHandler` is a function that is registered at runtime with a module and invoked during graceful shutdown.
This example demonstrates how to register a `StopHandler` that will be executed at the end of the program.

::: code stop_handler.bal :::

::: out stop_handler.client.out :::
Navigate to the directory that contains the 'stop_handler.bal' file, and run the 'bal run' command.

::: out stop_handler.server.out :::

Invoke the service by executing the following cURL command in a new terminal to add a fruit item.

::: out stop_handler.client.out :::
10 changes: 4 additions & 6 deletions examples/stop-handler/stop_handler.server.out
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
# Navigate to the directory that contains the
# 'stop_handler.bal' file, and run the 'bal run' command below.

$ bal run stop_handler.bal

# Send the interrupt signal SIGINT to terminate the current process.
Ctrl+c
initial items in fruit basket: ["Apple","Orange"]

# Invoke the service using cURL command as mentioned below in a new terminal.
after adding a fruit item: ["Apple","Orange","Guava"]

# Send the interrupt signal SIGINT (Ctrl+C) to terminate the current process.
after removing all fruit items: []
86 changes: 43 additions & 43 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
org.gradle.caching=true
group=org.ballerinalang
# During the release workflow, the following will get bumped automatically
version=2201.7.0-SNAPSHOT
version=2201.8.0-SNAPSHOT
codeName=swan-lake

ballerinaLangVersion=2201.8.0-20230712-000400-d08328e9
ballerinaLangVersion=2201.8.0-20230724-005400-1b14109d
ballerinaJreVersion=1.1.0
dependencyJREVersion=jdk-11.0.18+10-jre
specVersion=2023R1
Expand All @@ -13,77 +13,77 @@ balstdlibBranch=master
devIdpUrl=https://dev.api.asgardeo.io/oauth2/token/.well-known/openid-configuration

# Stdlib Level 01
stdlibConstraintVersion=1.3.0-20230620-195700-ca941bc
stdlibIoVersion=1.5.0-20230620-192100-29cf327
stdlibJavaArraysVersion=1.3.0-20230620-192700-c836fd3
stdlibConstraintVersion=1.3.0
stdlibIoVersion=1.5.0
stdlibJavaArraysVersion=1.3.0
stdlibRegexVersion=1.4.3
stdlibTimeVersion=2.3.0-20230620-192500-12d3432
stdlibUrlVersion=2.3.0-20230620-193100-90b6489
stdlibXmldataVersion=2.6.0-20230620-192500-909c3b3
observeVersion=1.1.0-20230620-193900-57e0c73
stdlibTimeVersion=2.3.0
stdlibUrlVersion=2.3.0
stdlibXmldataVersion=2.6.0
observeVersion=1.1.0
stdlibMathVectorVersion=1.0.1


# Stdlib Level 02
stdlibCryptoVersion=2.4.0-20230620-202300-53ac3fb
stdlibLogVersion=2.8.0-20230620-203000-74034d2
stdlibOsVersion=1.7.0-20230620-202800-f75dd63
stdlibProtobufVersion=1.5.0-20230620-202600-8d3ad44
stdlibRandomVersion=1.4.0-20230620-162300-6c8d20e
stdlibTaskVersion=2.4.0-20230620-204200-bd8329a
stdlibXsltVersion=2.5.0-20230620-202700-3ea55e6
observeInternalVersion=1.1.0-20230620-201800-18bbd1b
stdlibCryptoVersion=2.4.0
stdlibLogVersion=2.8.1-20230718-085900-36c385c
stdlibOsVersion=1.7.0
stdlibProtobufVersion=1.5.0
stdlibRandomVersion=1.4.0
stdlibTaskVersion=2.4.0
stdlibXsltVersion=2.5.0
observeInternalVersion=1.1.0

# Stdlib Level 03
stdlibCacheVersion=3.6.0-20230620-211300-8e2e2da
stdlibCacheVersion=3.6.0
stdlibFileVersion=1.8.1
stdlibFtpVersion=2.8.0-20230620-214200-1f1f3d2
stdlibMimeVersion=2.8.0-20230620-205000-a1e0453
stdlibTcpVersion=1.8.0-20230622-075900-0fa3184
stdlibUdpVersion=1.8.0-20230622-075900-2d3528e
stdlibUuidVersion=1.6.0-20230620-211300-6fdbff8
stdlibFtpVersion=2.8.0
stdlibMimeVersion=2.8.0
stdlibTcpVersion=1.8.0
stdlibUdpVersion=1.8.0
stdlibUuidVersion=1.6.0

# Stdlib Level 04
stdlibAuthVersion=2.9.0-20230620-221100-6b88179
stdlibEmailVersion=2.8.0-20230620-221300-6012f69
stdlibJwtVersion=2.9.0-20230620-221100-adcdde4
stdlibOAuth2Version=2.9.0-20230620-214300-9df2b5a
stdlibYamlVersion=0.4.0-20230621-093200-a851275
stdlibTomlVersion=0.4.0-20230621-095100-aa7f98e
stdlibAuthVersion=2.9.0
stdlibEmailVersion=2.8.0
stdlibJwtVersion=2.9.0
stdlibOAuth2Version=2.9.0
stdlibYamlVersion=0.4.0
stdlibTomlVersion=0.4.0
stdlibEdiVersion=1.0.1

# Stdlib Level 05
stdlibHttpVersion=2.9.0-20230621-211000-3a0a7fa
stdlibHttpVersion=2.9.1-20230712-161400-d16a019

# Stdlib Level 06
stdlibGrpcVersion=1.9.0-20230622-103300-e35bf3c
stdlibTransactionVersion=1.7.0-20230622-075500-ff15926
stdlibWebsocketVersion=2.9.0-20230622-090900-c881396
stdlibWebsubVersion=2.9.0-20230622-084100-c86e0c6
stdlibWebsubhubVersion=1.9.0-20230622-083000-02e28c8
stdlibGrpcVersion=1.9.1-20230720-093600-e476d75
stdlibTransactionVersion=1.7.0-20230724-121800-61fea60
stdlibWebsocketVersion=2.9.1-20230718-133100-1515098
stdlibWebsubVersion=2.9.1-20230720-002500-d909581
stdlibWebsubhubVersion=1.9.1-20230720-093500-d98cb16

# Stdlib Level 07
stdlibGraphqlVersion=1.9.0-20230622-112800-0ade7bc
stdlibSqlVersion=1.10.0-20230622-103500-ec74911
stdlibGraphqlVersion=1.9.1-20230720-134000-2eae4be
stdlibSqlVersion=1.10.0

# Stdlib Level 08
stdlibPersistVersion=1.1.0-20230620-202500-81fc407
stdlibPersistVersion=1.1.0

# Persist Tool
persistToolVersion=1.1.0-20230622-120500-88996bc
persistToolVersion=1.1.0

# Dev Tools
devToolsVersion=1.2.0-20230622-155200-329d876
devToolsVersion=1.2.0
ballerinaCommandVersion=1.3.15

# GraphQL Tool
graphqlVersion=0.6.0
graphqlVersion=0.7.1-20230720-140900-c92185d

# Protoc Tool
protocToolVersion=0.1.2-20230621-170600-536ee30
protocToolVersion=0.1.2

# OpenAPI Module
openapiVersion=1.7.0-20230622-162600-20520d8
openapiVersion=1.7.0

# AsyncAPI Module
asyncapiVersion=0.6.0
Expand Down

0 comments on commit 5512713

Please sign in to comment.