You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@eventmesh.apache.org by mi...@apache.org on 2022/10/15 06:09:40 UTC
[incubator-eventmesh] branch protocol-amqp updated: realization metadata store
This is an automated email from the ASF dual-hosted git repository.
mikexue pushed a commit to branch protocol-amqp
in repository https://gitbox.apache.org/repos/asf/incubator-eventmesh.git
The following commit(s) were added to refs/heads/protocol-amqp by this push:
new c9bb1e4c realization metadata store
new 103a37a4 Merge pull request #1593 from wangshaojie4039/protocol-amqp
c9bb1e4c is described below
commit c9bb1e4cf8309cc966617f4885e41155c564149f
Author: wangshaojie <wa...@cmss.chinamobile.com>
AuthorDate: Sat Oct 15 14:06:16 2022 +0800
realization metadata store
---
.../core/protocol/amqp/metadata/MetaStore.java | 53 ++++++++++++++++++++++
1 file changed, 53 insertions(+)
diff --git a/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/amqp/metadata/MetaStore.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/amqp/metadata/MetaStore.java
new file mode 100644
index 00000000..510197a1
--- /dev/null
+++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/amqp/metadata/MetaStore.java
@@ -0,0 +1,53 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.eventmesh.runtime.core.protocol.amqp.metadata;
+
+import org.apache.eventmesh.runtime.boot.EventMeshAmqpServer;
+import org.apache.eventmesh.runtime.core.protocol.amqp.metadata.manager.ExchangeManager;
+import org.apache.eventmesh.runtime.core.protocol.amqp.metadata.manager.ExchangeManagerMemoryImpl;
+import org.apache.eventmesh.runtime.core.protocol.amqp.metadata.manager.QueueManager;
+import org.apache.eventmesh.runtime.core.protocol.amqp.metadata.manager.QueueManagerMemoryImpl;
+
+public class MetaStore implements AutoCloseable {
+
+ private EventMeshAmqpServer amqpServer;
+
+ private ExchangeManager exchangeManager;
+
+ private QueueManager queueManager;
+
+ public MetaStore(EventMeshAmqpServer amqpServer) {
+ this.amqpServer = amqpServer;
+ this.exchangeManager = new ExchangeManagerMemoryImpl();
+ this.queueManager = new QueueManagerMemoryImpl();
+ }
+
+ public QueueManager queue() {
+ return queueManager;
+ }
+
+ public ExchangeManager exchange() {
+ return exchangeManager;
+ }
+
+
+ @Override
+ public void close() throws Exception {
+
+ }
+}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: commits-help@eventmesh.apache.org