Skip to content

Commit

Permalink
WIP: tollbooth demo data generator (#874)
Browse files Browse the repository at this point in the history
* collecting inputs for data-gen

---------

Signed-off-by: Mark Nelson <mark.x.nelson@oracle.com>
  • Loading branch information
markxnelson authored Apr 17, 2024
1 parent f97c0d0 commit d59196a
Show file tree
Hide file tree
Showing 11 changed files with 1,331 additions and 6 deletions.
10 changes: 5 additions & 5 deletions tolldemo/TEMP
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ grant execute on DBMS_RESOURCE_MANAGER to tolldemo;
grant select_catalog_role to tolldemo;
grant select on sys.aq$_queue_shards to tolldemo;
grant select on user_queue_partition_assignment_table to tolldemo;
exec dbms_teqk.AQ$_GRANT_PRIV_FOR_REPL('TOLLDEMO');
--exec dbms_teqk.AQ$_GRANT_PRIV_FOR_REPL('TOLLDEMO');
commit;

connect tolldemo/Welcome12345

begin
dbms_awadm.create_sharded_queue (queue_name => 'TollGate', multiple_consumers => true);
dbms_awadm.set_queue_parameter(tname, 'KEY_BASED_ENQUEUE', 2);
dbms_awadm.set_queue_parameter(tname, 'SHARD_NUM', 5);
dbms_awadm.start_queue(tname) ;
dbms_aqadm.create_transactional_event_queue (queue_name => 'TollGate', multiple_consumers => true);
dbms_aqadm.set_queue_parameter(tname, 'KEY_BASED_ENQUEUE', 2);
dbms_aqadm.set_queue_parameter(tname, 'SHARD_NUM', 5);
dbms_aqadm.start_queue(tname) ;
end;
41 changes: 41 additions & 0 deletions tolldemo/data-generator/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.2.4</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>com.example</groupId>
<artifactId>data-generator</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>data-generator</name>
<description>Demo project for Spring Boot</description>
<properties>
<java.version>21</java.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>

</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package com.example.datagenerator;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class DataGeneratorApplication {

public static void main(String[] args) {
SpringApplication.run(DataGeneratorApplication.class, args);
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
spring.application.name=data-generator
100 changes: 100 additions & 0 deletions tolldemo/data-generator/src/main/resources/mens-names.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
James
Robert
John
Michael
David
William
Richard
Joseph
Thomas
Christopher
Charles
Daniel
Matthew
Anthony
Mark
Donald
Steven
Andrew
Paul
Joshua
Kenneth
Kevin
Brian
George
Timothy
Ronald
Jason
Edward
Jeffrey
Ryan
Jacob
Gary
Nicholas
Eric
Jonathan
Stephen
Larry
Justin
Scott
Brandon
Benjamin
Samuel
Gregory
Alexander
Patrick
Frank
Raymond
Jack
Dennis
Jerry
Tyler
Aaron
Jose
Adam
Nathan
Henry
Zachary
Douglas
Peter
Kyle
Noah
Ethan
Jeremy
Walter
Christian
Keith
Roger
Terry
Austin
Sean
Gerald
Carl
Harold
Dylan
Arthur
Lawrence
Jordan
Jesse
Bryan
Billy
Bruce
Gabriel
Joe
Logan
Alan
Juan
Albert
Willie
Elijah
Wayne
Randy
Vincent
Mason
Roy
Ralph
Bobby
Russell
Bradley
Philip
Eugene
Loading

0 comments on commit d59196a

Please sign in to comment.