Skip to content

Commit c60ac52

Browse files
committed
Add openmessaging module.
1 parent 45a64fd commit c60ac52

File tree

4 files changed

+181
-0
lines changed

4 files changed

+181
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one or more
3+
* contributor license agreements. See the NOTICE file distributed with
4+
* this work for additional information regarding copyright ownership.
5+
* The ASF licenses this file to You under the Apache License, Version 2.0
6+
* (the "License"); you may not use this file except in compliance with
7+
* the License. You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/
17+
package org.apache.rocketmq.example.openmessaging;
18+
19+
public class SimpleProducer {
20+
public static void main(String[] args) {
21+
22+
}
23+
}

openmessaging/pom.xml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
Licensed to the Apache Software Foundation (ASF) under one or more
4+
contributor license agreements. See the NOTICE file distributed with
5+
this work for additional information regarding copyright ownership.
6+
The ASF licenses this file to You under the Apache License, Version 2.0
7+
(the "License"); you may not use this file except in compliance with
8+
the License. You may obtain a copy of the License at
9+
10+
http://www.apache.org/licenses/LICENSE-2.0
11+
12+
Unless required by applicable law or agreed to in writing, software
13+
distributed under the License is distributed on an "AS IS" BASIS,
14+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
See the License for the specific language governing permissions and
16+
limitations under the License.
17+
-->
18+
19+
<project xmlns="http://maven.apache.org/POM/4.0.0"
20+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
21+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
22+
<parent>
23+
<artifactId>rocketmq-all</artifactId>
24+
<groupId>org.apache.rocketmq</groupId>
25+
<version>4.1.0-incubating-SNAPSHOT</version>
26+
</parent>
27+
<modelVersion>4.0.0</modelVersion>
28+
29+
<artifactId>rocketmq-openmessaging</artifactId>
30+
31+
<dependencies>
32+
<dependency>
33+
<groupId>io.openmessaging</groupId>
34+
<artifactId>messaging-user-level-api</artifactId>
35+
</dependency>
36+
</dependencies>
37+
</project>
Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one or more
3+
* contributor license agreements. See the NOTICE file distributed with
4+
* this work for additional information regarding copyright ownership.
5+
* The ASF licenses this file to You under the Apache License, Version 2.0
6+
* (the "License"); you may not use this file except in compliance with
7+
* the License. You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/
17+
package io.openmessaging.rocketmq;
18+
19+
import io.openmessaging.IterableConsumer;
20+
import io.openmessaging.KeyValue;
21+
import io.openmessaging.MessagingAccessPoint;
22+
import io.openmessaging.Producer;
23+
import io.openmessaging.PullConsumer;
24+
import io.openmessaging.PushConsumer;
25+
import io.openmessaging.ResourceManager;
26+
import io.openmessaging.SequenceProducer;
27+
import io.openmessaging.ServiceEndPoint;
28+
import io.openmessaging.observer.Observer;
29+
30+
public class MessagingAccessPointImpl implements MessagingAccessPoint {
31+
@Override
32+
public Producer createProducer() {
33+
return null;
34+
}
35+
36+
@Override
37+
public Producer createProducer(KeyValue properties) {
38+
return null;
39+
}
40+
41+
@Override
42+
public SequenceProducer createSequenceProducer() {
43+
return null;
44+
}
45+
46+
@Override
47+
public SequenceProducer createSequenceProducer(KeyValue properties) {
48+
return null;
49+
}
50+
51+
@Override
52+
public PushConsumer createPushConsumer() {
53+
return null;
54+
}
55+
56+
@Override
57+
public PushConsumer createPushConsumer(KeyValue properties) {
58+
return null;
59+
}
60+
61+
@Override
62+
public PullConsumer createPullConsumer(String queueName) {
63+
return null;
64+
}
65+
66+
@Override
67+
public PullConsumer createPullConsumer(String queueName, KeyValue properties) {
68+
return null;
69+
}
70+
71+
@Override
72+
public IterableConsumer createIterableConsumer(String queueName) {
73+
return null;
74+
}
75+
76+
@Override
77+
public IterableConsumer createIterableConsumer(String queueName, KeyValue properties) {
78+
return null;
79+
}
80+
81+
@Override
82+
public ResourceManager createResourceManager() {
83+
return null;
84+
}
85+
86+
@Override
87+
public ServiceEndPoint createServiceEndPoint() {
88+
return null;
89+
}
90+
91+
@Override
92+
public ServiceEndPoint createServiceEndPoint(KeyValue properties) {
93+
return null;
94+
}
95+
96+
@Override
97+
public void addObserver(Observer observer) {
98+
99+
}
100+
101+
@Override
102+
public void deleteObserver(Observer observer) {
103+
104+
}
105+
106+
@Override
107+
public void startup() {
108+
//Ignore
109+
}
110+
111+
@Override
112+
public void shutdown() {
113+
//Ignore
114+
}
115+
}

pom.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@
180180
<module>srvutil</module>
181181
<module>test</module>
182182
<module>distribution</module>
183+
<module>openmessaging</module>
183184
</modules>
184185

185186
<build>
@@ -603,6 +604,11 @@
603604
<artifactId>commons-lang3</artifactId>
604605
<version>3.4</version>
605606
</dependency>
607+
<dependency>
608+
<groupId>io.openmessaging</groupId>
609+
<artifactId>messaging-user-level-api</artifactId>
610+
<version>1.0.0-SNAPSHOT</version>
611+
</dependency>
606612
</dependencies>
607613
</dependencyManagement>
608614
</project>

0 commit comments

Comments
 (0)