Skip to content

Commit dfacb1c

Browse files
authored
Merge pull request #15 from oracle-devrel/dbaqpull
Dbaqpull
2 parents 2843c83 + 5d246b4 commit dfacb1c

91 files changed

Lines changed: 7105 additions & 10 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

IoTDBJDBC/.classpath

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<classpath>
3+
<classpathentry kind="src" output="target/classes" path="src/main/java">
4+
<attributes>
5+
<attribute name="optional" value="true"/>
6+
<attribute name="maven.pomderived" value="true"/>
7+
</attributes>
8+
</classpathentry>
9+
<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources">
10+
<attributes>
11+
<attribute name="maven.pomderived" value="true"/>
12+
<attribute name="optional" value="true"/>
13+
</attributes>
14+
</classpathentry>
15+
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
16+
<attributes>
17+
<attribute name="test" value="true"/>
18+
<attribute name="optional" value="true"/>
19+
<attribute name="maven.pomderived" value="true"/>
20+
</attributes>
21+
</classpathentry>
22+
<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources">
23+
<attributes>
24+
<attribute name="test" value="true"/>
25+
<attribute name="maven.pomderived" value="true"/>
26+
<attribute name="optional" value="true"/>
27+
</attributes>
28+
</classpathentry>
29+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-17">
30+
<attributes>
31+
<attribute name="maven.pomderived" value="true"/>
32+
</attributes>
33+
</classpathentry>
34+
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
35+
<attributes>
36+
<attribute name="maven.pomderived" value="true"/>
37+
</attributes>
38+
</classpathentry>
39+
<classpathentry kind="src" path="target/generated-sources/annotations">
40+
<attributes>
41+
<attribute name="optional" value="true"/>
42+
</attributes>
43+
</classpathentry>
44+
<classpathentry kind="src" output="target/test-classes" path="target/generated-test-sources/test-annotations">
45+
<attributes>
46+
<attribute name="optional" value="true"/>
47+
<attribute name="test" value="true"/>
48+
</attributes>
49+
</classpathentry>
50+
<classpathentry kind="output" path="target/classes"/>
51+
</classpath>

IoTDBJDBC/.factorypath

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<factorypath>
2+
<factorypathentry kind="VARJAR" id="M2_REPO/org/projectlombok/lombok/1.18.42/lombok-1.18.42.jar" enabled="true" runInBatchMode="false"/>
3+
<factorypathentry kind="VARJAR" id="M2_REPO/io/micronaut/micronaut-inject-java/4.10.18/micronaut-inject-java-4.10.18.jar" enabled="true" runInBatchMode="false"/>
4+
<factorypathentry kind="VARJAR" id="M2_REPO/org/slf4j/slf4j-api/2.0.17/slf4j-api-2.0.17.jar" enabled="true" runInBatchMode="false"/>
5+
<factorypathentry kind="VARJAR" id="M2_REPO/io/micronaut/micronaut-core-processor/4.10.18/micronaut-core-processor-4.10.18.jar" enabled="true" runInBatchMode="false"/>
6+
<factorypathentry kind="VARJAR" id="M2_REPO/io/micronaut/micronaut-inject/4.10.18/micronaut-inject-4.10.18.jar" enabled="true" runInBatchMode="false"/>
7+
<factorypathentry kind="VARJAR" id="M2_REPO/jakarta/inject/jakarta.inject-api/2.0.1/jakarta.inject-api-2.0.1.jar" enabled="true" runInBatchMode="false"/>
8+
<factorypathentry kind="VARJAR" id="M2_REPO/jakarta/annotation/jakarta.annotation-api/2.1.1/jakarta.annotation-api-2.1.1.jar" enabled="true" runInBatchMode="false"/>
9+
<factorypathentry kind="VARJAR" id="M2_REPO/io/micronaut/micronaut-core/4.10.18/micronaut-core-4.10.18.jar" enabled="true" runInBatchMode="false"/>
10+
<factorypathentry kind="VARJAR" id="M2_REPO/io/micronaut/micronaut-aop/4.10.18/micronaut-aop-4.10.18.jar" enabled="true" runInBatchMode="false"/>
11+
<factorypathentry kind="VARJAR" id="M2_REPO/com/github/javaparser/javaparser-symbol-solver-core/3.27.0/javaparser-symbol-solver-core-3.27.0.jar" enabled="true" runInBatchMode="false"/>
12+
<factorypathentry kind="VARJAR" id="M2_REPO/com/github/javaparser/javaparser-core/3.27.0/javaparser-core-3.27.0.jar" enabled="true" runInBatchMode="false"/>
13+
<factorypathentry kind="VARJAR" id="M2_REPO/org/checkerframework/checker-qual/3.49.4/checker-qual-3.49.4.jar" enabled="true" runInBatchMode="false"/>
14+
<factorypathentry kind="VARJAR" id="M2_REPO/io/micronaut/sourcegen/micronaut-sourcegen-bytecode-writer/1.8.2/micronaut-sourcegen-bytecode-writer-1.8.2.jar" enabled="true" runInBatchMode="false"/>
15+
<factorypathentry kind="VARJAR" id="M2_REPO/io/micronaut/sourcegen/micronaut-sourcegen-model/1.8.2/micronaut-sourcegen-model-1.8.2.jar" enabled="true" runInBatchMode="false"/>
16+
<factorypathentry kind="VARJAR" id="M2_REPO/org/ow2/asm/asm-commons/9.8/asm-commons-9.8.jar" enabled="true" runInBatchMode="false"/>
17+
<factorypathentry kind="VARJAR" id="M2_REPO/org/ow2/asm/asm-tree/9.8/asm-tree-9.8.jar" enabled="true" runInBatchMode="false"/>
18+
<factorypathentry kind="VARJAR" id="M2_REPO/org/ow2/asm/asm-util/9.8/asm-util-9.8.jar" enabled="true" runInBatchMode="false"/>
19+
<factorypathentry kind="VARJAR" id="M2_REPO/org/ow2/asm/asm-analysis/9.8/asm-analysis-9.8.jar" enabled="true" runInBatchMode="false"/>
20+
<factorypathentry kind="VARJAR" id="M2_REPO/io/micronaut/micronaut-core-reactive/4.10.18/micronaut-core-reactive-4.10.18.jar" enabled="true" runInBatchMode="false"/>
21+
<factorypathentry kind="VARJAR" id="M2_REPO/org/reactivestreams/reactive-streams/1.0.4/reactive-streams-1.0.4.jar" enabled="true" runInBatchMode="false"/>
22+
<factorypathentry kind="VARJAR" id="M2_REPO/org/ow2/asm/asm/9.8/asm-9.8.jar" enabled="true" runInBatchMode="false"/>
23+
<factorypathentry kind="VARJAR" id="M2_REPO/io/micronaut/micronaut-graal/4.10.18/micronaut-graal-4.10.18.jar" enabled="true" runInBatchMode="false"/>
24+
<factorypathentry kind="VARJAR" id="M2_REPO/io/micronaut/serde/micronaut-serde-processor/2.16.2/micronaut-serde-processor-2.16.2.jar" enabled="true" runInBatchMode="false"/>
25+
<factorypathentry kind="VARJAR" id="M2_REPO/io/micronaut/serde/micronaut-serde-api/2.16.2/micronaut-serde-api-2.16.2.jar" enabled="true" runInBatchMode="false"/>
26+
<factorypathentry kind="VARJAR" id="M2_REPO/io/micronaut/micronaut-context/4.9.11/micronaut-context-4.9.11.jar" enabled="true" runInBatchMode="false"/>
27+
<factorypathentry kind="VARJAR" id="M2_REPO/io/micronaut/micronaut-json-core/4.9.11/micronaut-json-core-4.9.11.jar" enabled="true" runInBatchMode="false"/>
28+
<factorypathentry kind="VARJAR" id="M2_REPO/io/micronaut/micronaut-http/4.9.11/micronaut-http-4.9.11.jar" enabled="true" runInBatchMode="false"/>
29+
<factorypathentry kind="VARJAR" id="M2_REPO/io/micronaut/micronaut-context-propagation/4.9.11/micronaut-context-propagation-4.9.11.jar" enabled="true" runInBatchMode="false"/>
30+
<factorypathentry kind="VARJAR" id="M2_REPO/io/projectreactor/reactor-core/3.7.7/reactor-core-3.7.7.jar" enabled="true" runInBatchMode="false"/>
31+
<factorypathentry kind="PLUGIN" id="org.eclipse.jst.ws.annotations.core" enabled="false" runInBatchMode="false"/>
32+
</factorypath>

IoTDBJDBC/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/target/
2+
/configsecure/
3+
/.settings/

IoTDBJDBC/.project

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>IoTDBJDBC</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.jdt.core.javabuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
<buildCommand>
14+
<name>org.eclipse.m2e.core.maven2Builder</name>
15+
<arguments>
16+
</arguments>
17+
</buildCommand>
18+
</buildSpec>
19+
<natures>
20+
<nature>org.eclipse.jdt.core.javanature</nature>
21+
<nature>org.eclipse.m2e.core.maven2Nature</nature>
22+
</natures>
23+
</projectDescription>

IoTDBJDBC/README.md

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# IOT JDBC access
2+
This is built using maven and the micronaut libraries. see below for details on micronaut
3+
4+
YOU MUST be running this on a compute resource on a private VCN that is connected to the IOT database, see the IOT documentation at https://docs.oracle.com/en-us/iaas/Content/internet-of-things/connect-database.htm for details on how to set this up.
5+
6+
7+
]## Micronaut 4.10.10 Documentation
8+
9+
- [User Guide](https://docs.micronaut.io/4.10.10/guide/index.html)
10+
- [API Reference](https://docs.micronaut.io/4.10.10/api/index.html)
11+
- [Configuration Reference](https://docs.micronaut.io/4.10.10/guide/configurationreference.html)
12+
- [Micronaut Guides](https://guides.micronaut.io/index.html)
13+
---
14+
15+
- [Micronaut Maven Plugin documentation](https://micronaut-projects.github.io/micronaut-maven-plugin/latest/)
16+
## Feature serialization-jackson documentation
17+
18+
19+
- [Micronaut Serialization Jackson Core documentation](https://micronaut-projects.github.io/micronaut-serialization/latest/guide/)
20+
21+
22+
## Feature lombok documentation
23+
24+
25+
- [Micronaut Project Lombok documentation](https://docs.micronaut.io/latest/guide/index.html#lombok)
26+
27+
28+
- [https://projectlombok.org/features/all](https://projectlombok.org/features/all)
29+
30+
31+
## Feature data-jdbc documentation
32+
33+
34+
- [Micronaut Data JDBC documentation](https://micronaut-projects.github.io/micronaut-data/latest/guide/index.html#jdbc)
35+
36+
37+
## Feature jdbc-hikari documentation
38+
39+
40+
- [Micronaut Hikari JDBC Connection Pool documentation](https://micronaut-projects.github.io/micronaut-sql/latest/guide/index.html#jdbc)
41+
42+
43+
## Feature jul-to-slf4j documentation
44+
45+
46+
- [https://www.slf4j.org/legacy.html#jul-to-slf4jBridge](https://www.slf4j.org/legacy.html#jul-to-slf4jBridge)
47+
48+
49+
## Feature maven-enforcer-plugin documentation
50+
51+
52+
- [https://maven.apache.org/enforcer/maven-enforcer-plugin/](https://maven.apache.org/enforcer/maven-enforcer-plugin/)
53+
54+
55+
## Feature micronaut-aot documentation
56+
57+
58+
- [Micronaut AOT documentation](https://micronaut-projects.github.io/micronaut-aot/latest/guide/)
59+
60+

IoTDBJDBC/aot-jar.properties

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# AOT configuration properties for jar packaging
2+
# Please review carefully the optimizations enabled below
3+
# Check https://micronaut-projects.github.io/micronaut-aot/latest/guide/ for more details
4+
5+
# Caches environment property values: environment properties will be deemed immutable after application startup.
6+
cached.environment.enabled=true
7+
8+
# Precomputes Micronaut configuration property keys from the current environment variables
9+
precompute.environment.properties.enabled=true
10+
11+
# Replaces logback.xml with a pure Java configuration
12+
logback.xml.to.java.enabled=true
13+
14+
# Converts configuration files from YAML and properties to Java configuration
15+
property-source-loader.generate.enabled=true
16+
17+
# Scans for service types ahead-of-time, avoiding classpath scanning at startup
18+
serviceloading.jit.enabled=true
19+
20+
# Scans reactive types at build time instead of runtime
21+
scan.reactive.types.enabled=true
22+
23+
# Deduces the environment at build time instead of runtime
24+
deduce.environment.enabled=true
25+
26+
# Checks for the existence of some types at build time instead of runtime
27+
known.missing.types.enabled=true
28+
29+
# Precomputes property sources at build time
30+
sealed.property.source.enabled=true
31+
32+
# The list of service types to be scanned (comma separated)
33+
service.types=io.micronaut.context.env.PropertySourceLoader,io.micronaut.inject.BeanConfiguration,io.micronaut.inject.BeanDefinitionReference,io.micronaut.http.HttpRequestFactory,io.micronaut.http.HttpResponseFactory,io.micronaut.core.beans.BeanIntrospectionReference,io.micronaut.core.convert.TypeConverterRegistrar,io.micronaut.context.env.PropertyExpressionResolver
34+
35+
# A list of types that the AOT analyzer needs to check for existence (comma separated)
36+
known.missing.types.list=io.reactivex.Observable,reactor.core.publisher.Flux,kotlinx.coroutines.flow.Flow,io.reactivex.rxjava3.core.Flowable,io.reactivex.rxjava3.core.Observable,io.reactivex.Single,reactor.core.publisher.Mono,io.reactivex.Maybe,io.reactivex.rxjava3.core.Single,io.reactivex.rxjava3.core.Maybe,io.reactivex.Completable,io.reactivex.rxjava3.core.Completable,io.methvin.watchservice.MacOSXListeningWatchService,io.micronaut.core.async.publisher.CompletableFuturePublisher,io.micronaut.core.async.publisher.Publishers.JustPublisher,io.micronaut.core.async.subscriber.Completable
37+

IoTDBJDBC/config/config.properties

Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
datasources.default.url=tcps:adb.${iotdatacache.ociregion}.oraclecloud.com:1521/${iotdatacache.connectionname}.adb.oraclecloud.com
2+
datasources.default.username=
3+
datasources.default.password=
4+
5+
6+
7+
oci.dbtoken.scope=urn:oracle:db::id::${oci.dbtoken.compartment}
8+
9+
iotdatacache.jdbc.doconnectiontestread.enabled=true
10+
iotdatacache.jdbc.doconnectiontestread.order=0
11+
12+
# enable readers / listeners as required
13+
#iotdatacache.aq.normalizeddata.batchreader.enabled=true
14+
#iotdatacache.aq.normalizeddata.batchreader.order=10
15+
#iotdatacache.aq.normalizeddata.batchreader.readtimeout=10
16+
#iotdatacache.aq.normalizeddata.batchreader.batchsize=10
17+
#iotdatacache.aq.normalizeddata.individualreader.enabled=false
18+
#iotdatacache.aq.normalizeddata.individualreader.order=15
19+
#iotdatacache.aq.normalizeddata.individualreader.readtimeout=10
20+
#iotdatacache.aq.rawdata.batchreader.enabled=true
21+
#iotdatacache.aq.rawdata.batchreader.order=10
22+
#iotdatacache.aq.rawdata.batchreader.readtimeout=10
23+
#iotdatacache.aq.rawdata.batchreader.batchsize=10
24+
#iotdatacache.aq.rawdata.individualreader.enabled=false
25+
#iotdatacache.aq.rawdata.individualreader.order=15
26+
#iotdatacache.aq.rawdata.individualreader.readtimeout=10
27+
iotdatacache.aq.listener.enabled=false
28+
iotdatacache.aq.listener.order=20
29+
30+
# message handler filters look at the data and decide if it will be passed to the nest step in the message handling pipeline
31+
#
32+
# filter normalized based on the content path
33+
#messagehandler.filter.normalizeddata.contentpathfilter.enabled=true
34+
#messagehandler.filter.normalizeddata.contentpathfilter.order=20
35+
# the string to look for, or a regexp to be found within the content path
36+
#messagehandler.filter.normalizeddata.contentpathfilter.regexp=Solar
37+
# is character matching case insensitive (default false)
38+
#messagehandler.filter.normalizeddata.contentpathfilter.caseinsensitive=false
39+
#Are we looking for the rexexp (default FOUND) or looking for it not to be there (NOT_FOUND)
40+
#messagehandler.filter.normalizeddata.contentpathfilter.findoutcome=FOUND
41+
#
42+
# filter raw data based on the endpoint
43+
#
44+
#messagehandler.filter.rawdata.endpointfilter.enabled=true
45+
#messagehandler.filter.rawdata.endpointfilter.order=20
46+
# the string to look for, or a regexp to be found within the content path
47+
#messagehandler.filter.rawdata.endpointfilter.regexp=sonnen
48+
# is character matching case insensitive (default false)
49+
#messagehandler.filter.rawdata.endpointfilter.caseinsensitive=false
50+
#Are we looking for the rexexp (default FOUND) or looking for it not to be there (NOT_FOUND)
51+
#messagehandler.filter.rawdata.endpointfilter.findoutcome=FOUND
52+
53+
# filter raw data based on the content type
54+
#messagehandler.filter.rawdata.contenttype.enabled=true
55+
#messagehandler.filter.rawdata.contenttype.order=10
56+
#the content type e.g. text/plain or application/json
57+
#messagehandler.filter.rawdata.contenttype.type
58+
#
59+
# Filter normalized data based on the device model (if there is one)
60+
#
61+
#messagehandler.filter.normalizeddata.devicemodelfilter.order=10
62+
#messagehandler.filter.normalizeddata.devicemodelfilterenabled=false
63+
# the display name of the model - this is case sensitive !
64+
#messagehandler.filter.normalizeddata.devicemodelfilter.modelname=homebattery
65+
#Pre-load the known model instance data at startup or do it lazily when a new instance is encountered
66+
#messagehandler.filter.normalizeddata.devicemodelfilter.preloadexistinginstances=true
67+
#
68+
# filter raw data based on the raw data device model (if there is one)
69+
#
70+
#messagehandler.filter.rawdata.devicemodelfilter.order=10
71+
#messagehandler.filter.rawdata.devicemodelfilterenabled=false
72+
# the display name of the model - this is case sensitive !
73+
#messagehandler.filter.rawdata.devicemodelfilter.modelname=homebattery
74+
#Pre-load the known model instance data at startup or do it lazily when a new instance is encountered
75+
#messagehandler.filter.rawdata.devicemodelfilter.preloadexistinginstances=true
76+
#
77+
# stuff for uploading raw data
78+
# this is the URL to use
79+
#micronaut.http.services.iotoutputhttpclient.url=http://localhost:8080
80+
# if set this should override the path set in the client code
81+
#micronaut.http.services.iotoutputhttpclient.path=/api/v1/iotdata
82+
# used for basic auth for the client, if **either** of these is not set or empty string then not used
83+
#messagehandler.output.iotoutputhttpclient.username=
84+
#messagehandler.output.iotoutputhttpclient.password=
85+
#messagehandler.output.rawdata.httpclient.enabled=false
86+
#messagehandler.output.rawdata.httpclient.order=10
87+
# either send as a STRING or BASE64_BYTES
88+
#messagehandler.output.rawdata.httpclient.type=STRING
89+
90+
#
91+
# these could be used in the real world for diagnostics, but it's unlikely
92+
#
93+
#messagehandler.output.normalizeddata.textoutput.order=10
94+
#messagehandler.output.normalizeddata.textoutput.enabled=false
95+
#messagehandler.output.normalizeddata.textoutput.passthrough=true
96+
#messagehandler.output.rawdata.textoutput.order=10
97+
#messagehandler.output.rawdata.textoutput.enabled=false
98+
#messagehandler.output.rawdata.textoutput.passthrough=true
99+
#
100+
# These are only for testing purposes in the framework, they have no real meaning outside that
101+
#
102+
#messagehandler.processor.normalizeddata.duplicator.enabled=false
103+
#messagehandler.processor.normalizeddata.duplicator.order=10
104+
#messagehandler.filter.normalizeddata.randomfilter.enabled=false
105+
#messagehandler.filter.normalizeddata.randomfilter.order=5
106+
107+
108+
#oci.auth.type=InstancePrinciple
109+
#oci.auth.type=ConfigFile
110+
#oci.auth.config.section=DEFAULT

IoTDBJDBC/micronaut-cli.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
applicationType: default
2+
defaultPackage: com.oracle.demo.timg.iot.iotdbjdbc
3+
testFramework: junit
4+
sourceLanguage: java
5+
buildTool: maven
6+
features: [app-name, data, data-jdbc, h2, http-client-test, java, java-application, jdbc-hikari, jul-to-slf4j, junit, logback, lombok, maven, maven-enforcer-plugin, micronaut-aot, micronaut-http-validation, micronaut-processing-compiler-args, netty-server, properties, readme, serialization-jackson, shade, static-resources]

0 commit comments

Comments
 (0)