Search in sources :

Example 1 with ConfigurationExtractor

use of org.apache.qpid.server.model.ConfigurationExtractor in project qpid-broker-j by apache.

the class AbstractVirtualHost method extractConfig.

@Override
public Map<String, Object> extractConfig(final boolean includeSecureAttributes) {
    return doSync(doOnConfigThread(new Task<ListenableFuture<Map<String, Object>>, RuntimeException>() {

        @Override
        public ListenableFuture<Map<String, Object>> execute() throws RuntimeException {
            ConfigurationExtractor configExtractor = new ConfigurationExtractor();
            Map<String, Object> config = configExtractor.extractConfig(AbstractVirtualHost.this, includeSecureAttributes);
            return Futures.immediateFuture(config);
        }

        @Override
        public String getObject() {
            return AbstractVirtualHost.this.toString();
        }

        @Override
        public String getAction() {
            return "extractConfig";
        }

        @Override
        public String getArguments() {
            return "includeSecureAttributes=" + String.valueOf(includeSecureAttributes);
        }
    }));
}
Also used : Task(org.apache.qpid.server.configuration.updater.Task) StatisticsReportingTask(org.apache.qpid.server.stats.StatisticsReportingTask) ConfigurationExtractor(org.apache.qpid.server.model.ConfigurationExtractor) AbstractConfiguredObject(org.apache.qpid.server.model.AbstractConfiguredObject) ConfiguredObject(org.apache.qpid.server.model.ConfiguredObject) Map(java.util.Map) ConcurrentHashMap(java.util.concurrent.ConcurrentHashMap) HashMap(java.util.HashMap) ConcurrentMap(java.util.concurrent.ConcurrentMap) Collections.newSetFromMap(java.util.Collections.newSetFromMap)

Aggregations

Collections.newSetFromMap (java.util.Collections.newSetFromMap)1 HashMap (java.util.HashMap)1 Map (java.util.Map)1 ConcurrentHashMap (java.util.concurrent.ConcurrentHashMap)1 ConcurrentMap (java.util.concurrent.ConcurrentMap)1 Task (org.apache.qpid.server.configuration.updater.Task)1 AbstractConfiguredObject (org.apache.qpid.server.model.AbstractConfiguredObject)1 ConfigurationExtractor (org.apache.qpid.server.model.ConfigurationExtractor)1 ConfiguredObject (org.apache.qpid.server.model.ConfiguredObject)1 StatisticsReportingTask (org.apache.qpid.server.stats.StatisticsReportingTask)1