Repository: incubator-rocketmq Updated Branches: refs/heads/spec 08ab1ae26 -> 30ada7bd6
[ROCKETMQ-17] openmessaging: add ResourceManager ASF JIRA: https://issues.apache.org/jira/browse/ROCKETMQ-17 Project: http://git-wip-us.apache.org/repos/asf/incubator-rocketmq/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-rocketmq/commit/f1003a0c Tree: http://git-wip-us.apache.org/repos/asf/incubator-rocketmq/tree/f1003a0c Diff: http://git-wip-us.apache.org/repos/asf/incubator-rocketmq/diff/f1003a0c Branch: refs/heads/spec Commit: f1003a0c9ecfeff3cb6e12efb2e3f7989a10a0f1 Parents: 08ab1ae Author: vintagewang <[email protected]> Authored: Fri Jan 6 14:16:10 2017 +0800 Committer: vintagewang <[email protected]> Committed: Fri Jan 6 14:16:10 2017 +0800 ---------------------------------------------------------------------- .../apache/openmessaging/MessagingEndPoint.java | 2 ++ .../apache/openmessaging/ResourceManager.java | 25 ++++++++++++++++++++ 2 files changed, 27 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-rocketmq/blob/f1003a0c/spec/code/messaging-user-level-api/java/src/main/java/org/apache/openmessaging/MessagingEndPoint.java ---------------------------------------------------------------------- diff --git a/spec/code/messaging-user-level-api/java/src/main/java/org/apache/openmessaging/MessagingEndPoint.java b/spec/code/messaging-user-level-api/java/src/main/java/org/apache/openmessaging/MessagingEndPoint.java index 4eb5693..21e20e6 100644 --- a/spec/code/messaging-user-level-api/java/src/main/java/org/apache/openmessaging/MessagingEndPoint.java +++ b/spec/code/messaging-user-level-api/java/src/main/java/org/apache/openmessaging/MessagingEndPoint.java @@ -32,4 +32,6 @@ public interface MessagingEndPoint { PullConsumer createPullConsumer(); PullConsumer createPullConsumer(final KeyValue properties); + + ResourceManager createResourceManager(); } http://git-wip-us.apache.org/repos/asf/incubator-rocketmq/blob/f1003a0c/spec/code/messaging-user-level-api/java/src/main/java/org/apache/openmessaging/ResourceManager.java ---------------------------------------------------------------------- diff --git a/spec/code/messaging-user-level-api/java/src/main/java/org/apache/openmessaging/ResourceManager.java b/spec/code/messaging-user-level-api/java/src/main/java/org/apache/openmessaging/ResourceManager.java new file mode 100644 index 0000000..7088157 --- /dev/null +++ b/spec/code/messaging-user-level-api/java/src/main/java/org/apache/openmessaging/ResourceManager.java @@ -0,0 +1,25 @@ +/* + * 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.openmessaging; + +public interface ResourceManager { + void createNamespace(final String nsname, KeyValue properties); + + void createTopic(final String topicName, KeyValue properties); + + void createQueue(final String queueName, KeyValue properties); +}
