diff options
| author | Alex Rudyy <orudyy@apache.org> | 2013-02-19 17:11:54 +0000 |
|---|---|---|
| committer | Alex Rudyy <orudyy@apache.org> | 2013-02-19 17:11:54 +0000 |
| commit | 9b1a58d85495f217680aac3f79d56e6fb6e5ba0b (patch) | |
| tree | b778fa35c615eedc21a805f65b65e94c3283200b /qpid/java/broker/src | |
| parent | a973713561140fe7395368ae53def8f7edfa18a3 (diff) | |
| download | qpid-python-9b1a58d85495f217680aac3f79d56e6fb6e5ba0b.tar.gz | |
QPID-4390: Add getter to broker launcher to expose broker configured object
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1447820 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java/broker/src')
3 files changed, 17 insertions, 0 deletions
diff --git a/qpid/java/broker/src/main/java/org/apache/qpid/server/Broker.java b/qpid/java/broker/src/main/java/org/apache/qpid/server/Broker.java index e4a95363ef..f1a054d2d6 100644 --- a/qpid/java/broker/src/main/java/org/apache/qpid/server/Broker.java +++ b/qpid/java/broker/src/main/java/org/apache/qpid/server/Broker.java @@ -309,6 +309,15 @@ public class Broker AMQShortString.clearLocalCache(); } + public org.apache.qpid.server.model.Broker getBroker() + { + if (_applicationRegistry == null) + { + return null; + } + return _applicationRegistry.getBroker(); + } + private class ShutdownService implements Runnable { public void run() diff --git a/qpid/java/broker/src/main/java/org/apache/qpid/server/registry/ApplicationRegistry.java b/qpid/java/broker/src/main/java/org/apache/qpid/server/registry/ApplicationRegistry.java index 995951a462..1379b375cf 100644 --- a/qpid/java/broker/src/main/java/org/apache/qpid/server/registry/ApplicationRegistry.java +++ b/qpid/java/broker/src/main/java/org/apache/qpid/server/registry/ApplicationRegistry.java @@ -343,4 +343,10 @@ public class ApplicationRegistry implements IApplicationRegistry logActor.message(BrokerMessages.MAX_MEMORY(Runtime.getRuntime().maxMemory())); } + @Override + public Broker getBroker() + { + return _broker; + } + } diff --git a/qpid/java/broker/src/main/java/org/apache/qpid/server/registry/IApplicationRegistry.java b/qpid/java/broker/src/main/java/org/apache/qpid/server/registry/IApplicationRegistry.java index 0f9ddbfb59..d12258d194 100644 --- a/qpid/java/broker/src/main/java/org/apache/qpid/server/registry/IApplicationRegistry.java +++ b/qpid/java/broker/src/main/java/org/apache/qpid/server/registry/IApplicationRegistry.java @@ -20,6 +20,7 @@ */ package org.apache.qpid.server.registry; +import org.apache.qpid.server.model.Broker; import org.apache.qpid.server.stats.StatisticsGatherer; public interface IApplicationRegistry extends StatisticsGatherer @@ -36,4 +37,5 @@ public interface IApplicationRegistry extends StatisticsGatherer */ void close(); + Broker getBroker(); } |
