generated from oracle-devrel/repo-template
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathstandalone-queue.bat
64 lines (58 loc) · 1.45 KB
/
standalone-queue.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
@echo off
set CLASSPATH=./oci/lib/*;./oci/third-party/lib/*;./vertx/*;./lombok/*;.
set VERBOSE=true
set QUEUENAME=demo-02-02-23
set JSONFMT=true
set QUEUEOCID=ocid1.queue.oc1.iad.aaaabbbbccccddddeeeeffff11112222233334444555566667777ababxxx
set OCICONFIGFILE=oci.properties
set REGION=us-ashburn-1
set QUEUECOMPARTMENTID=ocid1.queue.oc1.iad.aaaabbbbccccddddeeeeffff11112222233334444555566667777ababxxx
REM set MAXGETS=1
REM set DELETEDURATIONSECS=20
set POLLDURATIONSECS=3
set INTERREADELAYSECS=4
set DLQCOUNT=7
set RETENTIONSECONDS=2400
set ALLSTATES=FALSE
set TENANCY=ociobenablement
set AUTHTOKEN=
echo %1
if [%1]==[reset] goto :reset
if [%1]==[java] goto :java
if [%1]==[groovy] goto :groovy
if [%1]==[stomp] goto :stomp
:reset
REM reset all the environment variables
set CLASSPATH=
set VERBOSE=
set QUEUENAME=
set JSONFMT=
set QUEUEOCID=
set OCICONFIGFILE=
set REGION=
set QUEUECOMPARTMENTID=
set MAXGETS=
set DELETEDURATIONSECS=
set DLQCOUNT=
set RETENTIONSECONDS=
set TENANCY=
set USERNAME=
set AUTHTOKEN=
goto :eof
:groovy
echo 'run as groovy'
groovy SoloOCIQueueDemoTool.groovy %2
goto :eof
:stomp
echo 'run stomp client'
copy SoloOCIQueueStompDemoTool.groovy SoloOCIQueueStompDemoTool.java
java SoloOCIQueueStompDemoTool.java %2
REM groovy SoloOCIQueueStompDemoTool.groovy %2
goto :eof
:java
echo 'run as Java'
copy SoloOCIQueueDemoTool.groovy SoloOCIQueueDemoTool.java
java SoloOCIQueueDemoTool.java %2
del SoloOCIQueueDemoTool.java
:eof