├── .gitignore ├── .mailmap ├── README.md └── qpid ├── KEYS ├── extras └── sasl │ ├── LICENSE │ ├── Makefile.am │ ├── bootstrap │ ├── build-aux │ ├── compile │ ├── config.guess │ ├── config.rpath │ ├── config.sub │ ├── depcomp │ ├── install-sh │ ├── mdate-sh │ ├── missing │ └── py-compile │ ├── configure.ac │ ├── include │ └── saslwrapper.h │ ├── m4 │ ├── ac_pkg_swig.m4 │ └── compiler-flags.m4 │ ├── python │ ├── Makefile.am │ └── python.i │ ├── ruby │ ├── Makefile.am │ └── ruby.i │ └── src │ ├── Makefile.am │ ├── cyrus │ └── saslwrapper.cpp │ └── saslwrapper.i ├── specs ├── LICENSE ├── MOVED_FILE ├── NOTICE ├── amqp-dtx-preview.0-9.xml ├── amqp-errata.0-9.xml ├── amqp-nogen.0-9.xml ├── amqp.0-10-qpid-errata.stripped.xml ├── amqp.0-10.dtd ├── amqp.0-10.stripped.xml ├── amqp.xsl ├── amqp0-8-qpid.stripped.xml ├── amqp0-8.stripped.xml ├── amqp0-9-1.stripped.xml ├── amqp0-9-qpid.stripped.xml ├── amqp0-9.stripped.xml ├── apache-filters.xml └── cluster.0-8.xml └── tools └── src └── java ├── LICENSE ├── NOTICE ├── README.txt ├── pom.xml ├── qpid-broker-plugins-management-qmf2 ├── README.txt ├── pom.xml └── src │ └── main │ ├── assembly │ ├── LICENSE │ ├── NOTICE │ ├── dependency-verification │ │ └── DEPENDENCIES_REFERENCE │ └── qpid-broker-plugins-management-qmf2-bin.xml │ └── java │ └── org │ └── apache │ └── qpid │ └── server │ └── qmf2 │ ├── QmfManagementAgent.java │ ├── QmfManagementPlugin.java │ ├── QmfManagementPluginImpl.java │ └── agentdata │ ├── Binding.java │ ├── Broker.java │ ├── Connection.java │ ├── Exchange.java │ ├── Queue.java │ ├── Session.java │ └── Subscription.java ├── qpid-qmf2-rest ├── pom.xml └── src │ └── main │ └── java │ └── org │ └── apache │ └── qpid │ └── restapi │ ├── ConnectionProxy.java │ ├── ConnectionStore.java │ ├── FileServer.java │ ├── HttpTransaction.java │ ├── JSON.java │ ├── JSONMapParser.java │ ├── QpidRestAPI.java │ ├── QpidServer.java │ ├── Server.java │ ├── httpserver │ ├── Authenticator.java │ ├── Delegator.java │ └── HttpExchangeTransaction.java │ └── servlet │ └── TODO ├── qpid-qmf2-test ├── README.txt ├── log4j.xml ├── pom.xml └── src │ └── main │ └── java │ └── org │ └── apache │ └── qpid │ └── qmf2 │ └── test │ ├── AgentExternalTest.java │ ├── AgentSubscriptionTestConsole.java │ ├── AgentTest.java │ ├── AgentTestConsole.java │ ├── BigPayloadAgentTest.java │ ├── BigPayloadAgentTestConsole.java │ ├── BrokerSubscriptionTestConsole.java │ ├── InvokeMethodTest.java │ ├── PartialGetObjectsTest.java │ ├── SchemaTest.java │ ├── Test1.java │ ├── Test2.java │ ├── Test3.java │ ├── Test4.java │ └── URLTest.java ├── qpid-qmf2-tools ├── README.txt ├── bin │ ├── ConnectionAudit.sh │ ├── ConnectionLogger.sh │ ├── QpidConfig.sh │ ├── QpidCtrl.sh │ ├── QpidPrintEvents.sh │ ├── QpidQueueStats.sh │ ├── QpidRestAPI.sh │ ├── QueueFuse.sh │ ├── log4j.xml │ ├── qpid-web │ │ ├── authentication │ │ │ └── account.properties │ │ └── web │ │ │ ├── apple-touch-icon.png │ │ │ ├── favicon.ico │ │ │ ├── index.html │ │ │ ├── itablet │ │ │ ├── css │ │ │ │ ├── itablet-ie6.css │ │ │ │ ├── itablet-ie7.css │ │ │ │ ├── itablet-ie8.css │ │ │ │ ├── itablet-ie9.css │ │ │ │ └── itablet.css │ │ │ ├── images │ │ │ │ ├── action.png │ │ │ │ ├── add.png │ │ │ │ ├── bin.png │ │ │ │ ├── blue-button-sprite.png │ │ │ │ ├── blue-chevron.png │ │ │ │ ├── blueball.png │ │ │ │ ├── button-sprite.png │ │ │ │ ├── chevron-active.png │ │ │ │ ├── chevron.png │ │ │ │ ├── delete.png │ │ │ │ ├── flag.png │ │ │ │ ├── home.png │ │ │ │ ├── ie │ │ │ │ │ ├── active-gradient.png │ │ │ │ │ ├── blue-button-sprite.gif │ │ │ │ │ ├── blue-chevron.gif │ │ │ │ │ ├── button-sprite.gif │ │ │ │ │ ├── chevron-active.gif │ │ │ │ │ ├── chevron.gif │ │ │ │ │ ├── header-gradient.png │ │ │ │ │ ├── radial-gradient.png │ │ │ │ │ ├── radius-10px-sprite.png │ │ │ │ │ ├── radius-5px-sprite.png │ │ │ │ │ ├── red6.png │ │ │ │ │ ├── smoked.png │ │ │ │ │ ├── tick-active.gif │ │ │ │ │ ├── tick.gif │ │ │ │ │ ├── transparent.gif │ │ │ │ │ └── transparent.png │ │ │ │ ├── mask.png │ │ │ │ ├── move.png │ │ │ │ ├── on_off.png │ │ │ │ ├── tick-active.png │ │ │ │ ├── tick.png │ │ │ │ ├── toggle-off.png │ │ │ │ ├── toggle-on-border.png │ │ │ │ ├── toggle-on.png │ │ │ │ └── write.png │ │ │ └── scripts │ │ │ │ ├── LICENCE │ │ │ │ ├── iscroll.js │ │ │ │ ├── itablet.js │ │ │ │ └── jquery.js │ │ │ ├── qmf-ui │ │ │ ├── css │ │ │ │ ├── index.css │ │ │ │ └── qmf.css │ │ │ ├── images │ │ │ │ ├── brokers.png │ │ │ │ ├── connections.png │ │ │ │ ├── events.png │ │ │ │ ├── exchanges.png │ │ │ │ ├── gradient.png │ │ │ │ ├── links.png │ │ │ │ ├── loading.gif │ │ │ │ ├── qpid-logo.png │ │ │ │ ├── queues.png │ │ │ │ ├── route-topology.png │ │ │ │ └── settings.png │ │ │ └── scripts │ │ │ │ ├── LICENCE │ │ │ │ ├── excanvas.js │ │ │ │ └── qmf-ui.js │ │ │ ├── qpid │ │ │ └── scripts │ │ │ │ ├── LICENCE │ │ │ │ └── qpid.js │ │ │ └── ui │ │ │ ├── config.js │ │ │ └── qmf.html │ └── whitelist.xml ├── pom.xml └── src │ └── main │ ├── assembly │ ├── LICENSE │ ├── NOTICE │ ├── dependency-verification │ │ └── DEPENDENCIES_REFERENCE │ └── qpid-qmf2-tools-bin.xml │ └── java │ └── org │ └── apache │ └── qpid │ └── qmf2 │ └── tools │ ├── ConnectionAudit.java │ ├── ConnectionLogger.java │ ├── QpidConfig.java │ ├── QpidCtrl.java │ ├── QpidPrintEvents.java │ ├── QpidQueueStats.java │ └── QueueFuse.java └── qpid-qmf2 ├── pom.xml └── src └── main └── java └── org └── apache └── qpid └── qmf2 ├── agent ├── Agent.java ├── AgentExternal.java ├── MethodCallParams.java ├── MethodCallWorkItem.java ├── QmfAgentData.java ├── QueryWorkItem.java ├── ResubscribeParams.java ├── ResubscribeRequestWorkItem.java ├── SubscribableAgent.java ├── SubscribeRequestWorkItem.java ├── Subscription.java ├── SubscriptionParams.java ├── UnsubscribeRequestWorkItem.java └── doc-files │ ├── QmfData.png │ ├── QmfEventListenerModel.png │ ├── QmfQuery.png │ ├── Schema.png │ ├── Subscriptions.png │ └── WorkQueueEventModel.png ├── common ├── AMQPMessage.java ├── BlockingNotifier.java ├── BooleanEquals.java ├── BooleanExists.java ├── BooleanExpression.java ├── BooleanFalse.java ├── BooleanGreaterEqual.java ├── BooleanGreaterThan.java ├── BooleanLessEqual.java ├── BooleanLessThan.java ├── BooleanNotEquals.java ├── BooleanRegexMatch.java ├── BooleanTrue.java ├── Expression.java ├── Handle.java ├── LogicalAnd.java ├── LogicalExpression.java ├── LogicalNot.java ├── LogicalOr.java ├── Notifier.java ├── NotifierWrapper.java ├── NullQmfEventListener.java ├── ObjectId.java ├── QmfCallback.java ├── QmfData.java ├── QmfDescribed.java ├── QmfEvent.java ├── QmfEventListener.java ├── QmfException.java ├── QmfManaged.java ├── QmfQuery.java ├── QmfQueryTarget.java ├── QmfType.java ├── SchemaClass.java ├── SchemaClassId.java ├── SchemaEventClass.java ├── SchemaMethod.java ├── SchemaObjectClass.java ├── SchemaProperty.java ├── WorkItem.java ├── WorkQueue.java └── doc-files │ ├── Console.png │ ├── QmfData.png │ ├── QmfEventListenerModel.png │ ├── QmfQuery.png │ ├── Schema.png │ ├── Subscriptions.png │ ├── WorkItem.png │ └── WorkQueueEventModel.png ├── console ├── Agent.java ├── AgentAccessWorkItem.java ├── AgentAddedWorkItem.java ├── AgentDeletedWorkItem.java ├── AgentHeartbeatWorkItem.java ├── AgentProxy.java ├── AgentRestartedWorkItem.java ├── Console.java ├── EventReceivedWorkItem.java ├── MethodResponseWorkItem.java ├── MethodResult.java ├── ObjectUpdateWorkItem.java ├── QmfConsoleData.java ├── SubscribeIndication.java ├── SubscribeParams.java ├── SubscribeResponseWorkItem.java ├── SubscriptionIndicationWorkItem.java ├── SubscriptionManager.java └── doc-files │ ├── Console.png │ ├── QmfEventListenerModel.png │ ├── Subscriptions.png │ └── WorkQueueEventModel.png └── util ├── ConnectionHelper.java └── GetOpt.java /.gitignore: -------------------------------------------------------------------------------- 1 | # 2 | # Licensed to the Apache Software Foundation (ASF) under one 3 | # or more contributor license agreements. See the NOTICE file 4 | # distributed with this work for additional information 5 | # regarding copyright ownership. The ASF licenses this file 6 | # to you under the Apache License, Version 2.0 (the 7 | # "License"); you may not use this file except in compliance 8 | # with 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, 13 | # software distributed under the License is distributed on an 14 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | # KIND, either express or implied. See the License for the 16 | # specific language governing permissions and limitations 17 | # under the License. 18 | # 19 | 20 | #Python 21 | *.pyc 22 | *.out 23 | 24 | #CPP 25 | *.o 26 | *.la 27 | *.lo 28 | *.vglog 29 | .dirstamp 30 | Makefile.in 31 | config(?!\.sh)\.* 32 | configure 33 | .deps 34 | .libs 35 | autom4te.cache 36 | *.m4 37 | developer.doxygen 38 | user.doxygen 39 | qpid/cpp/libtool 40 | qpidc.spec 41 | qpid/cpp/src/gen/ 42 | *gen.mk 43 | *.timestamp 44 | *.pcl 45 | qpid/cpp/managementgen/management-types.xml 46 | 47 | #Java 48 | *.class 49 | velocity.log* 50 | qpid/java/build 51 | release 52 | .classpath 53 | .project 54 | .settings 55 | generated/ 56 | target 57 | classes 58 | qpid/java/lib/*.jar 59 | qpid/java/lib/required 60 | qpid/java/lib/bdbstore 61 | qpid/java/lib/cobertura 62 | qpid/java/lib/findbugs 63 | qpid/java/lib/ivy 64 | qpid/java/lib/csvjdbc 65 | qpid/java/lib/jfree 66 | qpid/java/lib/bonecp 67 | qpid/java/build.overrides 68 | qpid/java/felix-cache/* 69 | qpid/java/eclipse-projects 70 | qpid/java/derby.log 71 | # Intellij Project files 72 | *.iml 73 | *.ipr 74 | *.iws 75 | # Emacs 76 | *~ 77 | # Microsoft Visual Studio artifacts 78 | *.vcproj.*.*.user 79 | *.ncb 80 | *.suo 81 | *.ilk 82 | *.pdb 83 | # Windows build results 84 | *.exe 85 | *.lib 86 | *.dll 87 | # MacOS File 88 | .DS_Store 89 | 90 | #Eclipse workspace 91 | workspace/ 92 | 93 | *.swp 94 | 95 | -------------------------------------------------------------------------------- /.mailmap: -------------------------------------------------------------------------------- 1 | Andrew Stitcher 2 | Andrew Stitcher 3 | Clifford Jansen 4 | Ken Giusti 5 | Andrew MacBean 6 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | We have moved to using individual Git repositories for the Apache Qpid components and you should look to those for new development. This Subversion repository and its Git mirrors now exists mainly for historic reference and some remaining miscellaneous items. 2 | 3 | * Qpid Broker-J [[Apache](https://gitbox.apache.org/repos/asf/qpid-broker-j.git)] [[GitHub mirror](https://github.com/apache/qpid-broker-j)] 4 | * Qpid CPP [[Apache](https://gitbox.apache.org/repos/asf/qpid-cpp.git)] [[GitHub mirror](https://github.com/apache/qpid-cpp)] 5 | * Qpid Dispatch [[Apache](https://gitbox.apache.org/repos/asf/qpid-dispatch.git)] [[GitHub mirror](https://github.com/apache/qpid-dispatch)] 6 | * Qpid JMS [[Apache](https://gitbox.apache.org/repos/asf/qpid-jms.git)] [[GitHub mirror](https://github.com/apache/qpid-jms)] 7 | * Qpid JMS AMQP 0-x [[Apache](https://gitbox.apache.org/repos/asf/qpid-jms-amqp-0-x.git)] [[GitHub mirror](https://github.com/apache/qpid-jms-amqp-0-x)] 8 | * Qpid Proton [[Apache](https://gitbox.apache.org/repos/asf/qpid-proton.git)] [[GitHub mirror](https://github.com/apache/qpid-proton)] 9 | * Qpid Proton-J [[Apache](https://gitbox.apache.org/repos/asf/qpid-proton-j.git)] [[GitHub mirror](https://github.com/apache/qpid-proton-j)] 10 | * Qpid Python [[Apache](https://gitbox.apache.org/repos/asf/qpid-python.git)] [[GitHub mirror](https://github.com/apache/qpid-python)] 11 | * Qpid Interop Test [[Apache](https://gitbox.apache.org/repos/asf/qpid-interop-test.git)] [[GitHub mirror](https://github.com/apache/qpid-interop-test)] 12 | * Qpid Site [[Apache](https://gitbox.apache.org/repos/asf/qpid-site.git)] [[GitHub mirror](https://github.com/apache/qpid-site)] 13 | -------------------------------------------------------------------------------- /qpid/extras/sasl/Makefile.am: -------------------------------------------------------------------------------- 1 | # 2 | # Licensed to the Apache Software Foundation (ASF) under one 3 | # or more contributor license agreements. See the NOTICE file 4 | # distributed with this work for additional information 5 | # regarding copyright ownership. The ASF licenses this file 6 | # to you under the Apache License, Version 2.0 (the 7 | # "License"); you may not use this file except in compliance 8 | # with 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, 13 | # software distributed under the License is distributed on an 14 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | # KIND, either express or implied. See the License for the 16 | # specific language governing permissions and limitations 17 | # under the License. 18 | # 19 | 20 | LIBTOOL_DEPS = @LIBTOOL_DEPS@ 21 | 22 | AUTOMAKE_OPTIONS = 1.9.2 foreign 23 | ACLOCAL_AMFLAGS = -I m4 24 | 25 | EXTRA_DIST = LICENSE 26 | SUBDIRS = src python ruby 27 | 28 | # Update libtool, if needed. 29 | libtool: $(LIBTOOL_DEPS) 30 | $(SHELL) ./config.status --recheck 31 | -------------------------------------------------------------------------------- /qpid/extras/sasl/bootstrap: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # Licensed to the Apache Software Foundation (ASF) under one 4 | # or more contributor license agreements. See the NOTICE file 5 | # distributed with this work for additional information 6 | # regarding copyright ownership. The ASF licenses this file 7 | # to you under the Apache License, Version 2.0 (the 8 | # "License"); you may not use this file except in compliance 9 | # with the License. You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, 14 | # software distributed under the License is distributed on an 15 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | # KIND, either express or implied. See the License for the 17 | # specific language governing permissions and limitations 18 | # under the License. 19 | # 20 | set -e 21 | aclocal -I m4 22 | autoheader 23 | libtoolize --automake 24 | 25 | automake --add-missing 26 | autoconf 27 | 28 | if [ "$1" = "-build" -o "$1" = "--build" ] ; then 29 | shift 30 | ./configure "$@" 31 | make 32 | make check 33 | fi 34 | -------------------------------------------------------------------------------- /qpid/extras/sasl/build-aux/py-compile: -------------------------------------------------------------------------------- 1 | /usr/share/automake-1.11/py-compile -------------------------------------------------------------------------------- /qpid/extras/sasl/m4/compiler-flags.m4: -------------------------------------------------------------------------------- 1 | # serial 3 2 | # Find valid warning flags for the C Compiler. -*-Autoconf-*- 3 | dnl Copyright (C) 2001, 2002, 2006 Free Software Foundation, Inc. 4 | dnl This file is free software; the Free Software Foundation 5 | dnl gives unlimited permission to copy and/or distribute it, 6 | dnl with or without modifications, as long as this notice is preserved. 7 | dnl Written by Jesse Thilo. 8 | 9 | AC_DEFUN([gl_COMPILER_FLAGS], 10 | [AC_MSG_CHECKING(whether compiler accepts $1) 11 | AC_SUBST(COMPILER_FLAGS) 12 | ac_save_CFLAGS="$CFLAGS" 13 | CFLAGS="$CFLAGS $1" 14 | ac_save_CXXFLAGS="$CXXFLAGS" 15 | CXXFLAGS="$CXXFLAGS $1" 16 | AC_TRY_COMPILE(, 17 | [int x;], 18 | COMPILER_FLAGS="$COMPILER_FLAGS $1" 19 | AC_MSG_RESULT(yes), 20 | AC_MSG_RESULT(no)) 21 | CFLAGS="$ac_save_CFLAGS" 22 | CXXFLAGS="$ac_save_CXXFLAGS" 23 | ]) 24 | -------------------------------------------------------------------------------- /qpid/extras/sasl/python/Makefile.am: -------------------------------------------------------------------------------- 1 | # 2 | # Licensed to the Apache Software Foundation (ASF) under one 3 | # or more contributor license agreements. See the NOTICE file 4 | # distributed with this work for additional information 5 | # regarding copyright ownership. The ASF licenses this file 6 | # to you under the Apache License, Version 2.0 (the 7 | # "License"); you may not use this file except in compliance 8 | # with 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, 13 | # software distributed under the License is distributed on an 14 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | # KIND, either express or implied. See the License for the 16 | # specific language governing permissions and limitations 17 | # under the License. 18 | # 19 | 20 | if HAVE_SWIG 21 | if HAVE_PYTHON_DEVEL 22 | 23 | EXTRA_DIST = python.i 24 | INCLUDES = -I$(top_srcdir)/include 25 | 26 | generated_file_list = saslwrapper.cpp saslwrapper.py 27 | BUILT_SOURCES = $(generated_file_list) 28 | 29 | $(generated_file_list): python.i $(top_srcdir)/src/saslwrapper.i 30 | $(SWIG) -c++ -python -Wall -I/usr/include $(INCLUDES) -o saslwrapper.cpp $(srcdir)/python.i 31 | 32 | pyexec_PYTHON = saslwrapper.py 33 | pyexec_LTLIBRARIES = _saslwrapper.la 34 | 35 | _saslwrapper_la_LDFLAGS = -avoid-version -module -shared 36 | _saslwrapper_la_LIBADD = $(PYTHON_LIBS) $(top_builddir)/src/libsaslwrapper.la -lsasl2 37 | _saslwrapper_la_CXXFLAGS = -I$(PYTHON_INC) -fno-strict-aliasing 38 | nodist__saslwrapper_la_SOURCES = saslwrapper.cpp 39 | 40 | CLEANFILES = $(generated_file_list) 41 | 42 | endif 43 | endif 44 | -------------------------------------------------------------------------------- /qpid/extras/sasl/ruby/Makefile.am: -------------------------------------------------------------------------------- 1 | # 2 | # Licensed to the Apache Software Foundation (ASF) under one 3 | # or more contributor license agreements. See the NOTICE file 4 | # distributed with this work for additional information 5 | # regarding copyright ownership. The ASF licenses this file 6 | # to you under the Apache License, Version 2.0 (the 7 | # "License"); you may not use this file except in compliance 8 | # with 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, 13 | # software distributed under the License is distributed on an 14 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | # KIND, either express or implied. See the License for the 16 | # specific language governing permissions and limitations 17 | # under the License. 18 | # 19 | 20 | if HAVE_SWIG 21 | if HAVE_RUBY_DEVEL 22 | 23 | EXTRA_DIST = ruby.i 24 | INCLUDES = -I$(top_srcdir)/include 25 | 26 | generated_file_list = saslwrapper.cpp 27 | BUILT_SOURCES = $(generated_file_list) 28 | 29 | $(generated_file_list): ruby.i $(top_srcdir)/src/saslwrapper.i 30 | $(SWIG) -c++ -ruby -Wall -I/usr/include $(INCLUDES) -o saslwrapper.cpp $(srcdir)/ruby.i 31 | 32 | rubylibdir = $(RUBY_LIB) 33 | rubylibarchdir = $(RUBY_LIB_ARCH) 34 | rubylibarch_LTLIBRARIES = saslwrapper.la 35 | 36 | saslwrapper_la_LDFLAGS = -avoid-version -module -shared ".$(RUBY_DLEXT)" 37 | saslwrapper_la_LIBADD = $(RUBY_LIBS) $(top_builddir)/src/libsaslwrapper.la -lsasl2 38 | saslwrapper_la_CXXFLAGS = $(INCLUDES) -I$(RUBY_INC) -I$(RUBY_INC_ARCH) -fno-strict-aliasing 39 | nodist_saslwrapper_la_SOURCES = saslwrapper.cpp 40 | 41 | CLEANFILES = $(generated_file_list) 42 | 43 | endif 44 | endif 45 | -------------------------------------------------------------------------------- /qpid/extras/sasl/ruby/ruby.i: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with 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, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | %module saslwrapper 21 | %include "typemaps.i" 22 | %include "stl.i" 23 | 24 | %{ 25 | #include "saslwrapper.h" 26 | %} 27 | 28 | %typemap (in) void * 29 | { 30 | $1 = (void *) $input; 31 | } 32 | 33 | %typemap (out) void * 34 | { 35 | $result = (VALUE) $1; 36 | } 37 | 38 | %typemap (in) uint16_t 39 | { 40 | $1 = NUM2UINT($input); 41 | } 42 | 43 | %typemap (out) uint16_t 44 | { 45 | $result = UINT2NUM((uint16_t) $1); 46 | } 47 | 48 | %typemap (in) uint32_t 49 | { 50 | if (TYPE($input) == T_BIGNUM) 51 | $1 = NUM2UINT($input); 52 | else 53 | $1 = FIX2UINT($input); 54 | } 55 | 56 | %typemap (out) uint32_t 57 | { 58 | $result = UINT2NUM((uint32_t) $1); 59 | } 60 | 61 | %typemap (in) int32_t 62 | { 63 | if (TYPE($input) == T_BIGNUM) 64 | $1 = NUM2INT($input); 65 | else 66 | $1 = FIX2INT($input); 67 | } 68 | 69 | %typemap (out) int32_t 70 | { 71 | $result = INT2NUM((int32_t) $1); 72 | } 73 | 74 | %typemap (typecheck, precedence=SWIG_TYPECHECK_INTEGER) uint32_t { 75 | $1 = FIXNUM_P($input); 76 | } 77 | 78 | %typemap (in) uint64_t 79 | { 80 | if (TYPE($input) == T_BIGNUM) 81 | $1 = NUM2ULL($input); 82 | else 83 | $1 = (uint64_t) FIX2LONG($input); 84 | } 85 | 86 | %typemap (out) uint64_t 87 | { 88 | $result = ULL2NUM((uint64_t) $1); 89 | } 90 | 91 | %typemap (in) int64_t 92 | { 93 | if (TYPE($input) == T_BIGNUM) 94 | $1 = NUM2LL($input); 95 | else 96 | $1 = (int64_t) FIX2LONG($input); 97 | } 98 | 99 | %typemap (out) int64_t 100 | { 101 | $result = LL2NUM((int64_t) $1); 102 | } 103 | 104 | %typemap (typecheck, precedence=SWIG_TYPECHECK_INTEGER) uint64_t { 105 | $1 = FIXNUM_P($input); 106 | } 107 | 108 | namespace saslwrapper { 109 | class Client { 110 | public: 111 | 112 | Client(); 113 | ~Client(); 114 | bool setAttr(const std::string& INPUT, const std::string& INPUT); 115 | bool setAttr(const std::string& INPUT, uint32_t INPUT); 116 | bool init(); 117 | bool start(const std::string& INPUT, std::string& OUTPUT, std::string& OUTPUT); 118 | bool step(const std::string& INPUT, std::string& OUTPUT); 119 | bool encode(const std::string& INPUT, std::string& OUTPUT); 120 | bool decode(const std::string& INPUT, std::string& OUTPUT); 121 | bool getUserId(std::string& OUTPUT); 122 | void getError(std::string& OUTPUT); 123 | }; 124 | } 125 | -------------------------------------------------------------------------------- /qpid/extras/sasl/src/Makefile.am: -------------------------------------------------------------------------------- 1 | # 2 | # Licensed to the Apache Software Foundation (ASF) under one 3 | # or more contributor license agreements. See the NOTICE file 4 | # distributed with this work for additional information 5 | # regarding copyright ownership. The ASF licenses this file 6 | # to you under the Apache License, Version 2.0 (the 7 | # "License"); you may not use this file except in compliance 8 | # with 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, 13 | # software distributed under the License is distributed on an 14 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | # KIND, either express or implied. See the License for the 16 | # specific language governing permissions and limitations 17 | # under the License. 18 | # 19 | 20 | EXTRA_DIST = saslwrapper.i 21 | INCLUDES = -I$(top_srcdir)/include 22 | 23 | nobase_include_HEADERS = ../include/saslwrapper.h 24 | 25 | lib_LTLIBRARIES = libsaslwrapper.la 26 | libsaslwrapper_la_SOURCES = cyrus/saslwrapper.cpp 27 | libsaslwrapper_la_CXXFLAGS = -fno-strict-aliasing 28 | 29 | # Library Version Information: 30 | # 31 | # CURRENT => API/ABI version. Bump this if the interface changes 32 | # REVISION => Version of underlying implementation. 33 | # Bump if implementation changes but API/ABI doesn't 34 | # AGE => Number of API/ABI versions this is backward compatible with 35 | # 36 | CURRENT = 1 37 | REVISION = 0 38 | AGE = 0 39 | 40 | libsaslwrapper_la_LDFLAGS = -version-info $(CURRENT):$(REVISION):$(AGE) 41 | -------------------------------------------------------------------------------- /qpid/extras/sasl/src/saslwrapper.i: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with 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, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | %{ 21 | #include "saslwrapper.h" 22 | %} 23 | 24 | %include stl.i 25 | %include 26 | 27 | %inline { 28 | 29 | using namespace std; 30 | using namespace saslwrapper; 31 | 32 | namespace saslwrapper { 33 | 34 | } 35 | } 36 | 37 | %{ 38 | 39 | %}; 40 | 41 | -------------------------------------------------------------------------------- /qpid/specs/MOVED_FILE: -------------------------------------------------------------------------------- 1 | Note that the management-schema.xml file that used to be here has moved to 2 | a new location: qpid/cpp/src/qpid/broker. 3 | 4 | -------------------------------------------------------------------------------- /qpid/specs/NOTICE: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------ 2 | // NOTICE file corresponding to the section 4d of The Apache License, 3 | // Version 2.0, 4 | // ------------------------------------------------------------------ 5 | 6 | Apache Qpid 7 | Copyright 2006-2008 Apache Software Foundation 8 | -------------------------------------------------------------------------------- /qpid/specs/amqp-errata.0-9.xml: -------------------------------------------------------------------------------- 1 | 2 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | This flag tells the server how to react if the message cannot be 36 | routed to a queue. If this flag is set, the server will return an 37 | unroutable message with a Return method. If this flag is zero, the 38 | server silently drops the message. 39 | 40 | 41 | 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /qpid/specs/amqp-nogen.0-9.xml: -------------------------------------------------------------------------------- 1 | 2 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /qpid/specs/cluster.0-8.xml: -------------------------------------------------------------------------------- 1 | 2 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | An extension that allows brokers to communicate in order to 29 | provide a clustered service to clients. 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | -------------------------------------------------------------------------------- /qpid/tools/src/java/NOTICE: -------------------------------------------------------------------------------- 1 | Apache Qpid QMF2 Java 2 | Copyright 2012-2014 The Apache Software Foundation 3 | 4 | This product includes software developed at 5 | The Apache Software Foundation (http://www.apache.org/). 6 | -------------------------------------------------------------------------------- /qpid/tools/src/java/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 18 | 19 | 4.0.0 20 | 21 | 22 | org.apache.qpid 23 | qpid-parent 24 | 1.0 25 | 26 | 27 | org.apache.qpid 28 | qpid-qmf2-parent 29 | Qpid QMF2 Parent 30 | 6.0.5-SNAPSHOT 31 | pom 32 | 33 | 34 | qpid-qmf2 35 | qpid-qmf2-rest 36 | qpid-qmf2-tools 37 | qpid-broker-plugins-management-qmf2 38 | qpid-qmf2-test 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | apache-release 48 | 49 | 50 | 51 | maven-assembly-plugin 52 | 53 | 54 | source-release-assembly 55 | package 56 | 57 | single 58 | 59 | 60 | true 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-broker-plugins-management-qmf2/src/main/assembly/NOTICE: -------------------------------------------------------------------------------- 1 | Apache Qpid QMF2 Java Broker Management Plugin 2 | Copyright 2012-2014 The Apache Software Foundation 3 | 4 | This product includes software developed at 5 | The Apache Software Foundation (http://www.apache.org/). 6 | 7 | ############################################### 8 | 9 | Apache Geronimo JMS 1.1 Spec 10 | Copyright 2003-2008 The Apache Software Foundation 11 | -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-broker-plugins-management-qmf2/src/main/assembly/dependency-verification/DEPENDENCIES_REFERENCE: -------------------------------------------------------------------------------- 1 | # 2 | # Licensed to the Apache Software Foundation (ASF) under one 3 | # or more contributor license agreements. See the NOTICE file 4 | # distributed with this work for additional information 5 | # regarding copyright ownership. The ASF licenses this file 6 | # to you under the Apache License, Version 2.0 (the 7 | # "License"); you may not use this file except in compliance 8 | # with 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, 13 | # software distributed under the License is distributed on an 14 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | # KIND, either express or implied. See the License for the 16 | # specific language governing permissions and limitations 17 | # under the License. 18 | # 19 | 20 | #// ------------------------------------------------------------------ 21 | # TRIMMED 3RD PARTY DEPENDENCY INFORMATION FOR MODIFICATION CHECKS 22 | #// ------------------------------------------------------------------ 23 | 24 | 25 | 26 | From: 'Apache Software Foundation' (http://www.apache.org) 27 | - JMS 1.1 (http://geronimo.apache.org/specs/geronimo-jms_1.1_spec) org.apache.geronimo.specs:geronimo-jms_1.1_spec:jar:1.1.1 28 | License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt) 29 | 30 | From: 'QOS.ch' (http://www.qos.ch) 31 | - SLF4J API Module (http://www.slf4j.org) org.slf4j:slf4j-api:jar:1.6.4 32 | License: MIT License (http://www.opensource.org/licenses/mit-license.php) 33 | 34 | From: 'The Apache Software Foundation' (http://www.apache.org/) 35 | - Qpid AMQP 0-x JMS Client (http://qpid.apache.org/qpid-java-build/qpid-client) org.apache.qpid:qpid-client:jar 36 | License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt) 37 | - Qpid Common (http://qpid.apache.org/qpid-java-build/qpid-common) org.apache.qpid:qpid-common:jar 38 | License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt) 39 | - Qpid QMF2 (http://qpid.apache.org/qpid-qmf2-parent/qpid-qmf2) org.apache.qpid:qpid-qmf2:jar 40 | License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt) 41 | 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-broker-plugins-management-qmf2/src/main/assembly/qpid-broker-plugins-management-qmf2-bin.xml: -------------------------------------------------------------------------------- 1 | 2 | 18 | 21 | bin 22 | 23 | tar.gz 24 | 25 | qpid-broker-plugins-management-qmf2/${project.version} 26 | 27 | 28 | / 29 | 30 | README.txt 31 | 32 | 0644 33 | 0755 34 | 35 | 36 | ${basedir}/src/main/assembly/ 37 | / 38 | 39 | LICENSE 40 | NOTICE 41 | 42 | 0644 43 | 0755 44 | 45 | 46 | 47 | 48 | /lib 49 | true 50 | 51 | 52 | 53 | 54 | -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-broker-plugins-management-qmf2/src/main/java/org/apache/qpid/server/qmf2/QmfManagementPlugin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | * 20 | */ 21 | package org.apache.qpid.server.qmf2; 22 | 23 | import org.apache.qpid.server.model.ManagedAttribute; 24 | import org.apache.qpid.server.model.ManagedObject; 25 | import org.apache.qpid.server.model.Plugin; 26 | 27 | @ManagedObject( category = false, type = "MANAGEMENT-QMF2" ) 28 | public interface QmfManagementPlugin> extends Plugin 29 | { 30 | 31 | // attributes 32 | String CONNECTION_URL = "connectionURL"; 33 | 34 | @ManagedAttribute(defaultValue = "amqp://guest:guest@/?brokerlist='tcp://0.0.0.0:5672'") 35 | String getConnectionURL(); 36 | } 37 | -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2-rest/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 18 | 19 | 4.0.0 20 | 21 | 22 | org.apache.qpid 23 | qpid-qmf2-parent 24 | 6.0.5-SNAPSHOT 25 | 26 | 27 | qpid-qmf2-rest 28 | Qpid QMF2 REST 29 | QMF2 REST API 30 | 31 | 32 | 33 | org.apache.qpid 34 | qpid-qmf2 35 | ${project.version} 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2-rest/src/main/java/org/apache/qpid/restapi/httpserver/Delegator.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | * 20 | */ 21 | package org.apache.qpid.restapi.httpserver; 22 | 23 | import java.io.IOException; 24 | import static java.net.HttpURLConnection.HTTP_BAD_METHOD; 25 | 26 | import com.sun.net.httpserver.HttpExchange; 27 | import com.sun.net.httpserver.HttpHandler; 28 | 29 | import org.apache.qpid.restapi.HttpTransaction; 30 | import org.apache.qpid.restapi.Server; 31 | 32 | /** 33 | * Delegator is an implementation of com.sun.net.httpserver.HttpHandler that is used to delegate to Server objects 34 | * and thus provide an abstraction between the Web Server implementation (e.g. HttpServer or Servlets) and the 35 | * implementation neutral Server and HttpTransaction interfaces. 36 | *

37 | * In order to replace the HttpServer implementation with a Servlet based implementation all that should be necessary 38 | * is a concrete implementation of HttpTransaction that wraps HttpServletRequest and HttpServletResponse and subclasses 39 | * of HttpServlet that delegate to the appropriate Server instances from the appropriate context in a similar way 40 | * to the Delegator class here. 41 | * 42 | * @author Fraser Adams 43 | */ 44 | public class Delegator implements HttpHandler 45 | { 46 | private final Server _server; 47 | 48 | /** 49 | * Construct a Delegator instance that delegates to the specified Server instance. 50 | * @param server the Server instance that this Delegator delegates to. 51 | */ 52 | public Delegator(Server server) 53 | { 54 | _server = server; 55 | } 56 | 57 | /** 58 | * Implements the HttpHandler handle interface and delegates to the Server instance. 59 | * @param exchange the HttpExchange exchange object passed by the HttpServer. This will be used to construct 60 | * an HttpTransaction instance that will be passed to the Server. 61 | */ 62 | public void handle(final HttpExchange exchange) throws IOException 63 | { 64 | HttpTransaction tx = new HttpExchangeTransaction(exchange); 65 | String method = tx.getMethod(); 66 | if (method.equals("GET")) 67 | { 68 | _server.doGet(tx); 69 | } 70 | else if (method.equals("POST")) 71 | { 72 | _server.doPost(tx); 73 | } 74 | else if (method.equals("PUT")) 75 | { 76 | _server.doPut(tx); 77 | } 78 | else if (method.equals("DELETE")) 79 | { 80 | _server.doDelete(tx); 81 | } 82 | else 83 | { 84 | tx.sendResponse(HTTP_BAD_METHOD, "text/plain", "405 Bad Method."); 85 | } 86 | } 87 | } 88 | 89 | 90 | -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2-rest/src/main/java/org/apache/qpid/restapi/servlet/TODO: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | * 20 | */ 21 | 22 | The org.apache.qpid.restapi.HttpTransaction and org.apache.qpid.restapi.Server interfaces are intended to 23 | provide abstractions to the underlying HTTP Server technology and thus should make it fairly easy to do 24 | a Servlet based implementation without having to rewrite the core REST API code. A Servlet implementation 25 | is still on the "TODO" list though. 26 | -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2-test/README.txt: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | * 20 | */ 21 | 22 | This module contains various manual test cases.The moudle pom has a helper profile 23 | with helper exec plugin config to allow executing a particular test class from 24 | the org.apache.qpid.qmf2.test package. 25 | 26 | The test classes can be found at: 27 | src/main/java/org/apache/qpid/qmf2/test/ 28 | 29 | To execute a particular test class, use: 30 | 31 | mvn test -DtestCase= [-Dexec.args=] 32 | 33 | 34 | The above command can be run either from the parent directory, or from within 35 | the modules own directory, though in the latter case the other modules should 36 | be installed into your local repo (mvn clean install) first to ensure the latest 37 | code is being tested rather than a remote dependency. 38 | 39 | Currently available classes are: 40 | 41 | AgentExternalTest 42 | AgentSubscriptionTestConsole 43 | AgentTestConsole 44 | AgentTest 45 | BigPayloadAgentTestConsole 46 | BigPayloadAgentTest 47 | BrokerSubscriptionTestConsole 48 | InvokeMethodTest 49 | PartialGetObjectsTest 50 | SchemaTest 51 | Test1 52 | Test2 53 | Test3 54 | Test4 55 | URLTest 56 | -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2-test/log4j.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2-test/src/main/java/org/apache/qpid/qmf2/test/URLTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | * 20 | */ 21 | package org.apache.qpid.qmf2.test; 22 | 23 | //import javax.jms.Connection; 24 | 25 | // Misc Imports 26 | import java.io.*; 27 | 28 | // QMF2 Imports 29 | import org.apache.qpid.qmf2.util.ConnectionHelper; 30 | 31 | /** 32 | * A class used to test the ConnectionHelper utility, which provides support for a range of AMQP URL formats 33 | * and a basic wrapper for Connection creation. 34 | * 35 | * @author Fraser Adams 36 | */ 37 | 38 | public final class URLTest 39 | { 40 | public static void main(String[] args) 41 | { 42 | //System.out.println ("Setting log level to FATAL"); 43 | System.setProperty("amqj.logging.level", "FATAL"); 44 | 45 | System.out.println("Running URLTest, this tests ConnectionHelper.createConnectionURL() for various URL formats."); 46 | System.out.println("It doesn't actually create a connection, it just displays the resulting ConnectionURL"); 47 | 48 | String url; 49 | url = ConnectionHelper.createConnectionURL("localhost"); 50 | System.out.println(url); 51 | 52 | url = ConnectionHelper.createConnectionURL("localhost:5672", "{username: foo, password: bar, reconnect: true, reconnect_timeout: 5, reconnect_limit: 5000, tcp-nodelay: true, heartbeat: 10, protocol: ssl}"); 53 | System.out.println(url); 54 | 55 | url = ConnectionHelper.createConnectionURL("guest/guest@localhost:5672", "{reconnect: true, tcp-nodelay: true}"); 56 | System.out.println(url); 57 | 58 | url = ConnectionHelper.createConnectionURL("amqp:localhost:5672, tcp:localhost:5673", "{reconnect: true, tcp-nodelay: true, failover: roundrobin, cyclecount: 20}"); 59 | System.out.println(url); 60 | 61 | url = ConnectionHelper.createConnectionURL("amqp://foo:bar@host1:1234/vhost?clientid=baz"); 62 | System.out.println(url); 63 | 64 | url = ConnectionHelper.createConnectionURL("amqp://localhost"); 65 | System.out.println(url); 66 | 67 | url = ConnectionHelper.createConnectionURL("amqp://vm:foo:1234,tcp:foo:5678/"); 68 | System.out.println(url); 69 | 70 | url = ConnectionHelper.createConnectionURL("amqp://host1,host2,host3/?retry=2"); 71 | System.out.println(url); 72 | 73 | url = ConnectionHelper.createConnectionURL("amqp://host1,host2?retry=2,host3"); 74 | System.out.println(url); 75 | 76 | url = ConnectionHelper.createConnectionURL("amqp://grok:hostname?flavour=strawberry;frobnication=on/vhost"); 77 | System.out.println(url); 78 | 79 | url = ConnectionHelper.createConnectionURL("amqp://host?ssl=true"); 80 | System.out.println(url); 81 | } 82 | } 83 | -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2-tools/bin/ConnectionAudit.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # 3 | # Licensed to the Apache Software Foundation (ASF) under one 4 | # or more contributor license agreements. See the NOTICE file 5 | # distributed with this work for additional information 6 | # regarding copyright ownership. The ASF licenses this file 7 | # to you under the Apache License, Version 2.0 (the 8 | # "License"); you may not use this file except in compliance 9 | # with the License. You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, 14 | # software distributed under the License is distributed on an 15 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | # KIND, either express or implied. See the License for the 17 | # specific language governing permissions and limitations 18 | # under the License. 19 | # 20 | 21 | # Test if we're running on Cygwin. 22 | cygwin=false; 23 | case "`uname`" in 24 | CYGWIN*) cygwin=true;; 25 | esac 26 | 27 | WHEREAMI=`dirname $0` 28 | if [ -z "$QMF2_HOME" ]; then 29 | export QMF2_HOME=`cd $WHEREAMI/../ && pwd` 30 | fi 31 | 32 | CLASSPATH=$QMF2_HOME/lib/*:$CLASSPATH 33 | 34 | # If we're on Cygwin we need to convert to Windows path. 35 | if $cygwin; then 36 | CLASSPATH=$(cygpath -wp $CLASSPATH) 37 | fi 38 | 39 | # Get the log level from the AMQJ_LOGGING_LEVEL environment variable. 40 | if [ -n "$AMQJ_LOGGING_LEVEL" ]; then 41 | PROPERTIES=-Damqj.logging.level=$AMQJ_LOGGING_LEVEL 42 | fi 43 | 44 | java -cp "$CLASSPATH" $PROPERTIES org.apache.qpid.qmf2.tools.ConnectionAudit "$@" 45 | -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2-tools/bin/ConnectionLogger.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # 3 | # Licensed to the Apache Software Foundation (ASF) under one 4 | # or more contributor license agreements. See the NOTICE file 5 | # distributed with this work for additional information 6 | # regarding copyright ownership. The ASF licenses this file 7 | # to you under the Apache License, Version 2.0 (the 8 | # "License"); you may not use this file except in compliance 9 | # with the License. You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, 14 | # software distributed under the License is distributed on an 15 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | # KIND, either express or implied. See the License for the 17 | # specific language governing permissions and limitations 18 | # under the License. 19 | # 20 | 21 | # Test if we're running on Cygwin. 22 | cygwin=false; 23 | case "`uname`" in 24 | CYGWIN*) cygwin=true;; 25 | esac 26 | 27 | WHEREAMI=`dirname $0` 28 | if [ -z "$QMF2_HOME" ]; then 29 | export QMF2_HOME=`cd $WHEREAMI/../ && pwd` 30 | fi 31 | 32 | CLASSPATH=$QMF2_HOME/lib/*:$CLASSPATH 33 | 34 | # If we're on Cygwin we need to convert to Windows path. 35 | if $cygwin; then 36 | CLASSPATH=$(cygpath -wp $CLASSPATH) 37 | fi 38 | 39 | # Get the log level from the AMQJ_LOGGING_LEVEL environment variable. 40 | if [ -n "$AMQJ_LOGGING_LEVEL" ]; then 41 | PROPERTIES=-Damqj.logging.level=$AMQJ_LOGGING_LEVEL 42 | fi 43 | 44 | java -cp "$CLASSPATH" $PROPERTIES org.apache.qpid.qmf2.tools.ConnectionLogger "$@" 45 | -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2-tools/bin/QpidConfig.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # 3 | # Licensed to the Apache Software Foundation (ASF) under one 4 | # or more contributor license agreements. See the NOTICE file 5 | # distributed with this work for additional information 6 | # regarding copyright ownership. The ASF licenses this file 7 | # to you under the Apache License, Version 2.0 (the 8 | # "License"); you may not use this file except in compliance 9 | # with the License. You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, 14 | # software distributed under the License is distributed on an 15 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | # KIND, either express or implied. See the License for the 17 | # specific language governing permissions and limitations 18 | # under the License. 19 | # 20 | 21 | # Test if we're running on Cygwin. 22 | cygwin=false; 23 | case "`uname`" in 24 | CYGWIN*) cygwin=true;; 25 | esac 26 | 27 | WHEREAMI=`dirname $0` 28 | if [ -z "$QMF2_HOME" ]; then 29 | export QMF2_HOME=`cd $WHEREAMI/../ && pwd` 30 | fi 31 | 32 | CLASSPATH=$QMF2_HOME/lib/*:$CLASSPATH 33 | 34 | # If we're on Cygwin we need to convert to Windows path. 35 | if $cygwin; then 36 | CLASSPATH=$(cygpath -wp $CLASSPATH) 37 | fi 38 | 39 | # Get the log level from the AMQJ_LOGGING_LEVEL environment variable. 40 | if [ -n "$AMQJ_LOGGING_LEVEL" ]; then 41 | PROPERTIES=-Damqj.logging.level=$AMQJ_LOGGING_LEVEL 42 | fi 43 | 44 | java -cp "$CLASSPATH" $PROPERTIES org.apache.qpid.qmf2.tools.QpidConfig "$@" 45 | -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2-tools/bin/QpidCtrl.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # 3 | # Licensed to the Apache Software Foundation (ASF) under one 4 | # or more contributor license agreements. See the NOTICE file 5 | # distributed with this work for additional information 6 | # regarding copyright ownership. The ASF licenses this file 7 | # to you under the Apache License, Version 2.0 (the 8 | # "License"); you may not use this file except in compliance 9 | # with the License. You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, 14 | # software distributed under the License is distributed on an 15 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | # KIND, either express or implied. See the License for the 17 | # specific language governing permissions and limitations 18 | # under the License. 19 | # 20 | 21 | # Test if we're running on Cygwin. 22 | cygwin=false; 23 | case "`uname`" in 24 | CYGWIN*) cygwin=true;; 25 | esac 26 | 27 | WHEREAMI=`dirname $0` 28 | if [ -z "$QMF2_HOME" ]; then 29 | export QMF2_HOME=`cd $WHEREAMI/../ && pwd` 30 | fi 31 | 32 | CLASSPATH=$QMF2_HOME/lib/*:$CLASSPATH 33 | 34 | # If we're on Cygwin we need to convert to Windows path. 35 | if $cygwin; then 36 | CLASSPATH=$(cygpath -wp $CLASSPATH) 37 | fi 38 | 39 | # Get the log level from the AMQJ_LOGGING_LEVEL environment variable. 40 | if [ -n "$AMQJ_LOGGING_LEVEL" ]; then 41 | PROPERTIES=-Damqj.logging.level=$AMQJ_LOGGING_LEVEL 42 | fi 43 | 44 | java -cp "$CLASSPATH" $PROPERTIES org.apache.qpid.qmf2.tools.QpidCtrl "$@" 45 | -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2-tools/bin/QpidPrintEvents.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # 3 | # Licensed to the Apache Software Foundation (ASF) under one 4 | # or more contributor license agreements. See the NOTICE file 5 | # distributed with this work for additional information 6 | # regarding copyright ownership. The ASF licenses this file 7 | # to you under the Apache License, Version 2.0 (the 8 | # "License"); you may not use this file except in compliance 9 | # with the License. You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, 14 | # software distributed under the License is distributed on an 15 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | # KIND, either express or implied. See the License for the 17 | # specific language governing permissions and limitations 18 | # under the License. 19 | # 20 | 21 | # Test if we're running on Cygwin. 22 | cygwin=false; 23 | case "`uname`" in 24 | CYGWIN*) cygwin=true;; 25 | esac 26 | 27 | WHEREAMI=`dirname $0` 28 | if [ -z "$QMF2_HOME" ]; then 29 | export QMF2_HOME=`cd $WHEREAMI/../ && pwd` 30 | fi 31 | 32 | CLASSPATH=$QMF2_HOME/lib/*:$CLASSPATH 33 | 34 | # If we're on Cygwin we need to convert to Windows path. 35 | if $cygwin; then 36 | CLASSPATH=$(cygpath -wp $CLASSPATH) 37 | fi 38 | 39 | # Get the log level from the AMQJ_LOGGING_LEVEL environment variable. 40 | if [ -n "$AMQJ_LOGGING_LEVEL" ]; then 41 | PROPERTIES=-Damqj.logging.level=$AMQJ_LOGGING_LEVEL 42 | fi 43 | 44 | java -cp "$CLASSPATH" $PROPERTIES org.apache.qpid.qmf2.tools.QpidPrintEvents "$@" 45 | -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2-tools/bin/QpidQueueStats.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # 3 | # Licensed to the Apache Software Foundation (ASF) under one 4 | # or more contributor license agreements. See the NOTICE file 5 | # distributed with this work for additional information 6 | # regarding copyright ownership. The ASF licenses this file 7 | # to you under the Apache License, Version 2.0 (the 8 | # "License"); you may not use this file except in compliance 9 | # with the License. You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, 14 | # software distributed under the License is distributed on an 15 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | # KIND, either express or implied. See the License for the 17 | # specific language governing permissions and limitations 18 | # under the License. 19 | # 20 | 21 | # Test if we're running on Cygwin. 22 | cygwin=false; 23 | case "`uname`" in 24 | CYGWIN*) cygwin=true;; 25 | esac 26 | 27 | WHEREAMI=`dirname $0` 28 | if [ -z "$QMF2_HOME" ]; then 29 | export QMF2_HOME=`cd $WHEREAMI/../ && pwd` 30 | fi 31 | 32 | CLASSPATH=$QMF2_HOME/lib/*:$CLASSPATH 33 | 34 | # If we're on Cygwin we need to convert to Windows path. 35 | if $cygwin; then 36 | CLASSPATH=$(cygpath -wp $CLASSPATH) 37 | fi 38 | 39 | # Get the log level from the AMQJ_LOGGING_LEVEL environment variable. 40 | if [ -n "$AMQJ_LOGGING_LEVEL" ]; then 41 | PROPERTIES=-Damqj.logging.level=$AMQJ_LOGGING_LEVEL 42 | fi 43 | 44 | java -cp "$CLASSPATH" $PROPERTIES org.apache.qpid.qmf2.tools.QpidQueueStats "$@" 45 | -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2-tools/bin/QpidRestAPI.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # 3 | # Licensed to the Apache Software Foundation (ASF) under one 4 | # or more contributor license agreements. See the NOTICE file 5 | # distributed with this work for additional information 6 | # regarding copyright ownership. The ASF licenses this file 7 | # to you under the Apache License, Version 2.0 (the 8 | # "License"); you may not use this file except in compliance 9 | # with the License. You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, 14 | # software distributed under the License is distributed on an 15 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | # KIND, either express or implied. See the License for the 17 | # specific language governing permissions and limitations 18 | # under the License. 19 | # 20 | 21 | # Test if we're running on Cygwin. 22 | cygwin=false; 23 | case "`uname`" in 24 | CYGWIN*) cygwin=true;; 25 | esac 26 | 27 | WHEREAMI=`dirname $0` 28 | if [ -z "$QMF2_HOME" ]; then 29 | export QMF2_HOME=`cd $WHEREAMI/../ && pwd` 30 | fi 31 | 32 | CLASSPATH=$QMF2_HOME/lib/*:$CLASSPATH 33 | 34 | # If we're on Cygwin we need to convert to Windows path. 35 | if $cygwin; then 36 | CLASSPATH=$(cygpath -wp $CLASSPATH) 37 | fi 38 | 39 | # Get the log level from the AMQJ_LOGGING_LEVEL environment variable. 40 | if [ -n "$AMQJ_LOGGING_LEVEL" ]; then 41 | PROPERTIES=-Damqj.logging.level=$AMQJ_LOGGING_LEVEL 42 | fi 43 | 44 | java -cp "$CLASSPATH" $PROPERTIES org.apache.qpid.restapi.QpidRestAPI "$@" 45 | -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2-tools/bin/QueueFuse.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # 3 | # Licensed to the Apache Software Foundation (ASF) under one 4 | # or more contributor license agreements. See the NOTICE file 5 | # distributed with this work for additional information 6 | # regarding copyright ownership. The ASF licenses this file 7 | # to you under the Apache License, Version 2.0 (the 8 | # "License"); you may not use this file except in compliance 9 | # with the License. You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, 14 | # software distributed under the License is distributed on an 15 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | # KIND, either express or implied. See the License for the 17 | # specific language governing permissions and limitations 18 | # under the License. 19 | # 20 | 21 | # Test if we're running on Cygwin. 22 | cygwin=false; 23 | case "`uname`" in 24 | CYGWIN*) cygwin=true;; 25 | esac 26 | 27 | WHEREAMI=`dirname $0` 28 | if [ -z "$QMF2_HOME" ]; then 29 | export QMF2_HOME=`cd $WHEREAMI/../ && pwd` 30 | fi 31 | 32 | CLASSPATH=$QMF2_HOME/lib/*:$CLASSPATH 33 | 34 | # If we're on Cygwin we need to convert to Windows path. 35 | if $cygwin; then 36 | CLASSPATH=$(cygpath -wp $CLASSPATH) 37 | fi 38 | 39 | # Get the log level from the AMQJ_LOGGING_LEVEL environment variable. 40 | if [ -n "$AMQJ_LOGGING_LEVEL" ]; then 41 | PROPERTIES=-Damqj.logging.level=$AMQJ_LOGGING_LEVEL 42 | fi 43 | 44 | java -cp "$CLASSPATH" $PROPERTIES org.apache.qpid.qmf2.tools.QueueFuse "$@" 45 | -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2-tools/bin/log4j.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/authentication/account.properties: -------------------------------------------------------------------------------- 1 | # 2 | # 3 | # Licensed to the Apache Software Foundation (ASF) under one 4 | # or more contributor license agreements. See the NOTICE file 5 | # distributed with this work for additional information 6 | # regarding copyright ownership. The ASF licenses this file 7 | # to you under the Apache License, Version 2.0 (the 8 | # "License"); you may not use this file except in compliance 9 | # with the License. You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, 14 | # software distributed under the License is distributed on an 15 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | # KIND, either express or implied. See the License for the 17 | # specific language governing permissions and limitations 18 | # under the License. 19 | # 20 | # 21 | 22 | guest=guest 23 | admin=admin 24 | -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/apple-touch-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/qpid/61e6c03338f3bd20a62590baa89a36bffeb32859/qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/apple-touch-icon.png -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/qpid/61e6c03338f3bd20a62590baa89a36bffeb32859/qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/favicon.ico -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/index.html: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 27 | 28 | 29 | QMF Console 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 40 | 41 | 49 | 50 | 51 | 52 | 53 |

54 | 55 | 56 | 57 | -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/itablet/css/itablet-ie9.css: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | * 20 | */ 21 | 22 | /** 23 | * Stylesheet to sort out IE9 specific quirks....... 24 | */ 25 | 26 | /** 27 | * For some reason radiused borders cause IE9 to eat CPU when scrolling or animating in the popup window so remove them. 28 | */ 29 | 30 | .popup, .popup-container 31 | { 32 | border-radius: 0; 33 | } 34 | 35 | .popup .scroll-area 36 | { 37 | border-bottom-left-radius: 0; 38 | border-bottom-right-radius: 0; 39 | } 40 | 41 | input 42 | { 43 | padding: 12px 0 12px 0; /* top right bottom left */ 44 | } 45 | 46 | -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/itablet/images/action.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/qpid/61e6c03338f3bd20a62590baa89a36bffeb32859/qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/itablet/images/action.png -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/itablet/images/add.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/qpid/61e6c03338f3bd20a62590baa89a36bffeb32859/qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/itablet/images/add.png -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/itablet/images/bin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/qpid/61e6c03338f3bd20a62590baa89a36bffeb32859/qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/itablet/images/bin.png -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/itablet/images/blue-button-sprite.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/qpid/61e6c03338f3bd20a62590baa89a36bffeb32859/qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/itablet/images/blue-button-sprite.png -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/itablet/images/blue-chevron.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/qpid/61e6c03338f3bd20a62590baa89a36bffeb32859/qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/itablet/images/blue-chevron.png -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/itablet/images/blueball.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/qpid/61e6c03338f3bd20a62590baa89a36bffeb32859/qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/itablet/images/blueball.png -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/itablet/images/button-sprite.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/qpid/61e6c03338f3bd20a62590baa89a36bffeb32859/qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/itablet/images/button-sprite.png -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/itablet/images/chevron-active.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/qpid/61e6c03338f3bd20a62590baa89a36bffeb32859/qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/itablet/images/chevron-active.png -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/itablet/images/chevron.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/qpid/61e6c03338f3bd20a62590baa89a36bffeb32859/qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/itablet/images/chevron.png -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/itablet/images/delete.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/qpid/61e6c03338f3bd20a62590baa89a36bffeb32859/qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/itablet/images/delete.png -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/itablet/images/flag.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/qpid/61e6c03338f3bd20a62590baa89a36bffeb32859/qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/itablet/images/flag.png -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/itablet/images/home.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/qpid/61e6c03338f3bd20a62590baa89a36bffeb32859/qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/itablet/images/home.png -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/itablet/images/ie/active-gradient.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/qpid/61e6c03338f3bd20a62590baa89a36bffeb32859/qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/itablet/images/ie/active-gradient.png -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/itablet/images/ie/blue-button-sprite.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/qpid/61e6c03338f3bd20a62590baa89a36bffeb32859/qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/itablet/images/ie/blue-button-sprite.gif -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/itablet/images/ie/blue-chevron.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/qpid/61e6c03338f3bd20a62590baa89a36bffeb32859/qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/itablet/images/ie/blue-chevron.gif -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/itablet/images/ie/button-sprite.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/qpid/61e6c03338f3bd20a62590baa89a36bffeb32859/qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/itablet/images/ie/button-sprite.gif -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/itablet/images/ie/chevron-active.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/qpid/61e6c03338f3bd20a62590baa89a36bffeb32859/qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/itablet/images/ie/chevron-active.gif -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/itablet/images/ie/chevron.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/qpid/61e6c03338f3bd20a62590baa89a36bffeb32859/qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/itablet/images/ie/chevron.gif -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/itablet/images/ie/header-gradient.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/qpid/61e6c03338f3bd20a62590baa89a36bffeb32859/qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/itablet/images/ie/header-gradient.png -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/itablet/images/ie/radial-gradient.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/qpid/61e6c03338f3bd20a62590baa89a36bffeb32859/qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/itablet/images/ie/radial-gradient.png -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/itablet/images/ie/radius-10px-sprite.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/qpid/61e6c03338f3bd20a62590baa89a36bffeb32859/qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/itablet/images/ie/radius-10px-sprite.png -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/itablet/images/ie/radius-5px-sprite.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/qpid/61e6c03338f3bd20a62590baa89a36bffeb32859/qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/itablet/images/ie/radius-5px-sprite.png -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/itablet/images/ie/red6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/qpid/61e6c03338f3bd20a62590baa89a36bffeb32859/qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/itablet/images/ie/red6.png -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/itablet/images/ie/smoked.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/qpid/61e6c03338f3bd20a62590baa89a36bffeb32859/qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/itablet/images/ie/smoked.png -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/itablet/images/ie/tick-active.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/qpid/61e6c03338f3bd20a62590baa89a36bffeb32859/qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/itablet/images/ie/tick-active.gif -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/itablet/images/ie/tick.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/qpid/61e6c03338f3bd20a62590baa89a36bffeb32859/qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/itablet/images/ie/tick.gif -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/itablet/images/ie/transparent.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/qpid/61e6c03338f3bd20a62590baa89a36bffeb32859/qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/itablet/images/ie/transparent.gif -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/itablet/images/ie/transparent.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/qpid/61e6c03338f3bd20a62590baa89a36bffeb32859/qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/itablet/images/ie/transparent.png -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/itablet/images/mask.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/qpid/61e6c03338f3bd20a62590baa89a36bffeb32859/qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/itablet/images/mask.png -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/itablet/images/move.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/qpid/61e6c03338f3bd20a62590baa89a36bffeb32859/qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/itablet/images/move.png -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/itablet/images/on_off.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/qpid/61e6c03338f3bd20a62590baa89a36bffeb32859/qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/itablet/images/on_off.png -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/itablet/images/tick-active.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/qpid/61e6c03338f3bd20a62590baa89a36bffeb32859/qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/itablet/images/tick-active.png -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/itablet/images/tick.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/qpid/61e6c03338f3bd20a62590baa89a36bffeb32859/qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/itablet/images/tick.png -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/itablet/images/toggle-off.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/qpid/61e6c03338f3bd20a62590baa89a36bffeb32859/qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/itablet/images/toggle-off.png -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/itablet/images/toggle-on-border.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/qpid/61e6c03338f3bd20a62590baa89a36bffeb32859/qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/itablet/images/toggle-on-border.png -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/itablet/images/toggle-on.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/qpid/61e6c03338f3bd20a62590baa89a36bffeb32859/qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/itablet/images/toggle-on.png -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/itablet/images/write.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/qpid/61e6c03338f3bd20a62590baa89a36bffeb32859/qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/itablet/images/write.png -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/itablet/scripts/LICENCE: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * jQuery JavaScript Library v1.7.1 4 | * http://jquery.com/ 5 | * 6 | * Copyright 2011, John Resig 7 | * Dual licensed under the MIT or GPL Version 2 licenses. 8 | * http://jquery.org/license 9 | * 10 | * Includes Sizzle.js 11 | * http://sizzlejs.com/ 12 | * Copyright 2011, The Dojo Foundation 13 | * Released under the MIT, BSD, and GPL Licenses. 14 | * 15 | * Date: Mon Nov 21 21:11:03 2011 -0500 16 | */ 17 | 18 | 19 | /* 20 | * iscroll.js 21 | * 22 | * Copyright (c) 2011 Matteo Spinelli, http://cubiq.org/ 23 | * 24 | * Permission is hereby granted, free of charge, to any person 25 | * obtaining a copy of this software and associated documentation 26 | * files (the "Software"), to deal in the Software without 27 | * restriction, including without limitation the rights to use, 28 | * copy, modify, merge, publish, distribute, sublicense, and/or sell 29 | * copies of the Software, and to permit persons to whom the 30 | * Software is furnished to do so, subject to the following 31 | * conditions: 32 | * 33 | * The above copyright notice and this permission notice shall be 34 | * included in all copies or substantial portions of the Software. 35 | * 36 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 37 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 38 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 39 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 40 | * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 41 | * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 42 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 43 | * OTHER DEALINGS IN THE SOFTWARE. 44 | * 45 | */ 46 | 47 | 48 | 49 | -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/qmf-ui/css/index.css: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | * 20 | */ 21 | 22 | html 23 | { 24 | background: black; 25 | } 26 | 27 | body 28 | { 29 | position: absolute; 30 | 31 | top: 0; 32 | left: 0; 33 | width: 100%; 34 | height: 100%; 35 | margin: 0; 36 | 37 | -moz-border-radius: 5px; 38 | -webkit-border-radius: 5px; 39 | border-radius: 5px; 40 | 41 | background: #bbb url(/qmf-ui/images/gradient.png) repeat-x; 42 | background: -o-linear-gradient(top center, #fff 0%, #bbb 100%); 43 | background: -webkit-gradient(linear, left top, left bottom, color-stop(0, #fff), color-stop(1, #bbb)); 44 | background: -webkit-linear-gradient(top center, #fff 0%, #bbb 100%); 45 | background: -ms-linear-gradient(top center, #fff 0%, #bbb 100%); 46 | background: -moz-linear-gradient(top center, #fff 0%, #bbb 100%); 47 | } 48 | 49 | div.logo 50 | { 51 | position: absolute; 52 | top: 5%; 53 | left: 0; 54 | right: 0; 55 | height: 114px; 56 | margin: 0 35% 0 35%; 57 | 58 | -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=70)"; 59 | filter: alpha(opacity=70); 60 | opacity: 0.7; 61 | 62 | background: transparent url(/qmf-ui/images/qpid-logo.png) center no-repeat; 63 | } 64 | 65 | -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/qmf-ui/images/brokers.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/qpid/61e6c03338f3bd20a62590baa89a36bffeb32859/qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/qmf-ui/images/brokers.png -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/qmf-ui/images/connections.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/qpid/61e6c03338f3bd20a62590baa89a36bffeb32859/qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/qmf-ui/images/connections.png -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/qmf-ui/images/events.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/qpid/61e6c03338f3bd20a62590baa89a36bffeb32859/qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/qmf-ui/images/events.png -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/qmf-ui/images/exchanges.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/qpid/61e6c03338f3bd20a62590baa89a36bffeb32859/qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/qmf-ui/images/exchanges.png -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/qmf-ui/images/gradient.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/qpid/61e6c03338f3bd20a62590baa89a36bffeb32859/qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/qmf-ui/images/gradient.png -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/qmf-ui/images/links.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/qpid/61e6c03338f3bd20a62590baa89a36bffeb32859/qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/qmf-ui/images/links.png -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/qmf-ui/images/loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/qpid/61e6c03338f3bd20a62590baa89a36bffeb32859/qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/qmf-ui/images/loading.gif -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/qmf-ui/images/qpid-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/qpid/61e6c03338f3bd20a62590baa89a36bffeb32859/qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/qmf-ui/images/qpid-logo.png -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/qmf-ui/images/queues.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/qpid/61e6c03338f3bd20a62590baa89a36bffeb32859/qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/qmf-ui/images/queues.png -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/qmf-ui/images/route-topology.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/qpid/61e6c03338f3bd20a62590baa89a36bffeb32859/qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/qmf-ui/images/route-topology.png -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/qmf-ui/images/settings.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/qpid/61e6c03338f3bd20a62590baa89a36bffeb32859/qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/qmf-ui/images/settings.png -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/qmf-ui/scripts/LICENCE: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * excanvas.js 4 | * 5 | * ExplorerCanvas - provides HTML5 canvas on IE 6 | * 7 | * note that this is using excanvas.js from http://explorercanvas.googlecode.com/svn/trunk/ as it happens that's 8 | * more up to date than the version https://code.google.com/p/explorercanvas/downloads/list/excanvas_r3.zip which 9 | * is the version one gets following the obvious path. Unfortunately excanvas_r3.zip has several bugs in drawImage() 10 | * which affect the border radius rendering for IE7 canvas, the version from trunk fixes that.... 11 | * 12 | * Google Open Source: 13 | * 14 | * 15 | * 16 | * Developers: 17 | * Emil A Eklund 18 | * Erik Arvidsson 19 | * Glen Murphy 20 | * 21 | * Licensed to the Apache Software Foundation (ASF) under one 22 | * or more contributor license agreements. See the NOTICE file 23 | * distributed with this work for additional information 24 | * regarding copyright ownership. The ASF licenses this file 25 | * to you under the Apache License, Version 2.0 (the 26 | * "License"); you may not use this file except in compliance 27 | * with the License. You may obtain a copy of the License at 28 | * 29 | * http://www.apache.org/licenses/LICENSE-2.0 30 | * 31 | * Unless required by applicable law or agreed to in writing, 32 | * software distributed under the License is distributed on an 33 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 34 | * KIND, either express or implied. See the License for the 35 | * specific language governing permissions and limitations 36 | * under the License. 37 | * 38 | */ 39 | 40 | -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/qpid/scripts/LICENCE: -------------------------------------------------------------------------------- 1 | /* 2 | * qpid.js 3 | * 4 | * Licensed to the Apache Software Foundation (ASF) under one 5 | * or more contributor license agreements. See the NOTICE file 6 | * distributed with this work for additional information 7 | * regarding copyright ownership. The ASF licenses this file 8 | * to you under the Apache License, Version 2.0 (the 9 | * "License"); you may not use this file except in compliance 10 | * with the License. You may obtain a copy of the License at 11 | * 12 | * http://www.apache.org/licenses/LICENSE-2.0 13 | * 14 | * Unless required by applicable law or agreed to in writing, 15 | * software distributed under the License is distributed on an 16 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 17 | * KIND, either express or implied. See the License for the 18 | * specific language governing permissions and limitations 19 | * under the License. 20 | * 21 | */ 22 | 23 | 24 | -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2-tools/bin/qpid-web/web/ui/config.js: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | * 20 | */ 21 | 22 | /** 23 | * This file allows the initial set of Console Connections to be configured and delivered to the client. 24 | * The format is as a JSON array of JSON objects containing a url property and optional name, connectionOptions and 25 | * disableEvents properties. The connectionOptions property has a value that is itself a JSON object containing 26 | * the connectionOptions supported by the qpid::messaging API. 27 | */ 28 | 29 | /* 30 | // Example Console Connection Configuration. 31 | qmfui.Console.consoleConnections = [ 32 | {name: "default", url: ""}, 33 | {name: "localhost", url: "localhost:5672"}, 34 | {name: "wildcard", url: "anonymous/@0.0.0.0:5672", connectionOptions: {sasl_mechs:"ANONYMOUS"}, disableEvents: true} 35 | ]; 36 | */ 37 | 38 | -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2-tools/bin/whitelist.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 21 | 22 | 23 | 24 | qmf.default.topic 25 | qmf.default.direct 26 | qpid.management 27 | amq.direct 28 | 29 | 30 | 31 | testqueue1 32 | 33 | 34 | -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2-tools/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 18 | 19 | 4.0.0 20 | 21 | 22 | org.apache.qpid 23 | qpid-qmf2-parent 24 | 6.0.5-SNAPSHOT 25 | 26 | 27 | qpid-qmf2-tools 28 | Qpid QMF2 Tools 29 | QMF2 Tools 30 | 31 | 32 | true 33 | 34 | 35 | 36 | 37 | org.apache.qpid 38 | qpid-qmf2 39 | ${project.version} 40 | 41 | 42 | 43 | org.apache.qpid 44 | qpid-qmf2-rest 45 | ${project.version} 46 | runtime 47 | 48 | 49 | 50 | org.slf4j 51 | slf4j-api 52 | ${slf4j-version} 53 | 54 | 55 | 56 | org.slf4j 57 | slf4j-log4j12 58 | ${slf4j-version} 59 | runtime 60 | 61 | 62 | 63 | 64 | log4j 65 | log4j 66 | ${log4j-version} 67 | runtime 68 | 69 | 70 | 71 | 72 | 73 | 74 | org.apache.maven.plugins 75 | maven-assembly-plugin 76 | 77 | 78 | 79 | src/main/assembly/qpid-qmf2-tools-bin.xml 80 | 81 | 82 | 83 | 84 | create-qmf2-tools-assembly 85 | package 86 | 87 | single 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2-tools/src/main/assembly/NOTICE: -------------------------------------------------------------------------------- 1 | Apache Qpid QMF2 Tools 2 | Copyright 2012-2014 The Apache Software Foundation 3 | 4 | This product includes software developed at 5 | The Apache Software Foundation (http://www.apache.org/). 6 | 7 | ############################################### 8 | 9 | Apache Geronimo JMS 1.1 Spec 10 | Copyright 2003-2008 The Apache Software Foundation 11 | -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2-tools/src/main/assembly/dependency-verification/DEPENDENCIES_REFERENCE: -------------------------------------------------------------------------------- 1 | # 2 | # Licensed to the Apache Software Foundation (ASF) under one 3 | # or more contributor license agreements. See the NOTICE file 4 | # distributed with this work for additional information 5 | # regarding copyright ownership. The ASF licenses this file 6 | # to you under the Apache License, Version 2.0 (the 7 | # "License"); you may not use this file except in compliance 8 | # with 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, 13 | # software distributed under the License is distributed on an 14 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | # KIND, either express or implied. See the License for the 16 | # specific language governing permissions and limitations 17 | # under the License. 18 | # 19 | 20 | #// ------------------------------------------------------------------ 21 | # TRIMMED 3RD PARTY DEPENDENCY INFORMATION FOR MODIFICATION CHECKS 22 | #// ------------------------------------------------------------------ 23 | 24 | 25 | 26 | From: 'Apache Software Foundation' (http://www.apache.org) 27 | - Apache Log4j (http://logging.apache.org/log4j/1.2/) log4j:log4j:bundle:1.2.16 28 | License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt) 29 | - JMS 1.1 (http://geronimo.apache.org/specs/geronimo-jms_1.1_spec) org.apache.geronimo.specs:geronimo-jms_1.1_spec:jar:1.1.1 30 | License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt) 31 | 32 | From: 'QOS.ch' (http://www.qos.ch) 33 | - SLF4J API Module (http://www.slf4j.org) org.slf4j:slf4j-api:jar:1.6.4 34 | License: MIT License (http://www.opensource.org/licenses/mit-license.php) 35 | - SLF4J LOG4J-12 Binding (http://www.slf4j.org) org.slf4j:slf4j-log4j12:jar:1.6.4 36 | License: MIT License (http://www.opensource.org/licenses/mit-license.php) 37 | 38 | From: 'The Apache Software Foundation' (http://www.apache.org/) 39 | - Qpid AMQP 0-x JMS Client (http://qpid.apache.org/qpid-java-build/qpid-client) org.apache.qpid:qpid-client:jar 40 | License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt) 41 | - Qpid Common (http://qpid.apache.org/qpid-java-build/qpid-common) org.apache.qpid:qpid-common:jar 42 | License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt) 43 | - Qpid QMF2 (http://qpid.apache.org/qpid-qmf2-parent/qpid-qmf2) org.apache.qpid:qpid-qmf2:jar 44 | License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt) 45 | - Qpid QMF2 REST (http://qpid.apache.org/qpid-qmf2-parent/qpid-qmf2-rest) org.apache.qpid:qpid-qmf2-rest:jar 46 | License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt) 47 | 48 | 49 | 50 | 51 | -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2-tools/src/main/assembly/qpid-qmf2-tools-bin.xml: -------------------------------------------------------------------------------- 1 | 2 | 18 | 21 | bin 22 | 23 | tar.gz 24 | 25 | qpid-qmf2-tools/${project.version} 26 | 27 | 28 | / 29 | 30 | README.txt 31 | 32 | 0644 33 | 0755 34 | 35 | 36 | ${basedir}/src/main/assembly/ 37 | / 38 | 39 | LICENSE 40 | NOTICE 41 | 42 | 0644 43 | 0755 44 | 45 | 46 | ${project.basedir} 47 | / 48 | 49 | bin/ 50 | 51 | 0755 52 | 0755 53 | 54 | 55 | 56 | 57 | /lib 58 | true 59 | 60 | 61 | 62 | 63 | -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 18 | 19 | 4.0.0 20 | 21 | 22 | org.apache.qpid 23 | qpid-qmf2-parent 24 | 6.0.5-SNAPSHOT 25 | 26 | 27 | qpid-qmf2 28 | Qpid QMF2 29 | QMF2 Agent and Console 30 | 31 | 32 | 33 | org.apache.qpid 34 | qpid-client 35 | ${project.version} 36 | 37 | 38 | 39 | org.apache.geronimo.specs 40 | geronimo-jms_1.1_spec 41 | ${geronimo-jms-1-1-version} 42 | 43 | 44 | 45 | org.slf4j 46 | slf4j-api 47 | ${slf4j-version} 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2/src/main/java/org/apache/qpid/qmf2/agent/MethodCallWorkItem.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | * 20 | */ 21 | package org.apache.qpid.qmf2.agent; 22 | 23 | import java.util.Map; 24 | 25 | // QMF2 Imports 26 | import org.apache.qpid.qmf2.common.Handle; 27 | import org.apache.qpid.qmf2.common.WorkItem; 28 | 29 | /** 30 | * Descriptions below are taken from QMF2 API Proposal 31 | *
32 |  * METHOD_CALL: The METHOD_CALL WorkItem describes a method call that must be serviced by the application on 
33 |  *              behalf of this Agent.
34 |  *
35 |  *              The getParams() method of a METHOD_CALL WorkItem will return an instance of the MethodCallParams class.
36 |  *
37 |  *              Use MethodCallWorkItem to enable neater access
38 |  * 
39 | * @author Fraser Adams 40 | */ 41 | 42 | public final class MethodCallWorkItem extends WorkItem 43 | { 44 | /** 45 | * Construct a MethodCallWorkItem. Convenience constructor not in API 46 | * 47 | * @param handle the reply handle. 48 | * @param params the MethodCallParams used to populate the WorkItem's param. 49 | */ 50 | public MethodCallWorkItem(final Handle handle, final MethodCallParams params) 51 | { 52 | super(WorkItemType.METHOD_CALL, handle, params); 53 | } 54 | 55 | /** 56 | * Return the MethodCallParams stored in the params Map. 57 | * @return the MethodCallParams stored in the params Map. 58 | */ 59 | public MethodCallParams getMethodCallParams() 60 | { 61 | return (MethodCallParams)getParams(); 62 | } 63 | } 64 | 65 | -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2/src/main/java/org/apache/qpid/qmf2/agent/ResubscribeParams.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | * 20 | */ 21 | package org.apache.qpid.qmf2.agent; 22 | 23 | import java.util.Map; 24 | 25 | // QMF2 Imports 26 | import org.apache.qpid.qmf2.common.QmfData; 27 | 28 | /** 29 | * Holds the information contained in a resubscription request made by a Console to an Agent 30 | * 31 | * @author Fraser Adams 32 | */ 33 | public final class ResubscribeParams extends QmfData 34 | { 35 | /** 36 | * Construct ResubscribeParams. 37 | * 38 | * @param m the Map used to populate the ResubscribeParams state. 39 | */ 40 | public ResubscribeParams(final Map m) 41 | { 42 | super(m); 43 | } 44 | 45 | /** 46 | * Return a SubscriptionId object. 47 | * @return a SubscriptionId object. 48 | */ 49 | public String getSubscriptionId() 50 | { 51 | if (hasValue("_subscription_id")) 52 | { 53 | return getStringValue("_subscription_id"); 54 | } 55 | return null; 56 | } 57 | 58 | /** 59 | * Return the requested lifetime for the subscription. 60 | * @return the requested lifetime for the subscription. Zero if the previous interval should be used. 61 | */ 62 | public long getLifetime() 63 | { 64 | return getLongValue("_duration"); 65 | } 66 | 67 | /** 68 | * Return authenticated user id of caller if present, else null. 69 | * @return authenticated user id of caller if present, else null. 70 | */ 71 | public String getUserId() 72 | { 73 | return getStringValue("_user_id"); 74 | } 75 | } 76 | 77 | 78 | 79 | -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2/src/main/java/org/apache/qpid/qmf2/agent/ResubscribeRequestWorkItem.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | * 20 | */ 21 | package org.apache.qpid.qmf2.agent; 22 | 23 | import java.util.Map; 24 | 25 | // QMF2 Imports 26 | import org.apache.qpid.qmf2.common.Handle; 27 | import org.apache.qpid.qmf2.common.WorkItem; 28 | 29 | /** 30 | * Descriptions below are taken from QMF2 API Proposal 31 | *
32 |  * RESUBSCRIBE_REQUEST: The RESUBSCRIBE_REQUEST is sent by a Console to renew an existing subscription.  The Console may 
33 |  *                      request a new duration for the subscription, otherwise the previous lifetime interval is repeated.
34 |  *
35 |  *                      The getParams() method of a RESUBSCRIBE_REQUEST WorkItem will return an instance of the 
36 |  *                      ResubscribeParams class.
37 |  *
38 |  *                      The getHandle() WorkItem method returns the reply handle which should be passed to the Agent's 
39 |  *                      subscriptionResponse() method.
40 |  * 
41 | * @author Fraser Adams 42 | */ 43 | 44 | public final class ResubscribeRequestWorkItem extends WorkItem 45 | { 46 | /** 47 | * Construct a ResubscribeRequestWorkItem. Convenience constructor not in API. 48 | * 49 | * @param handle the reply handle. 50 | * @param params the ResubscribeParams used to populate the WorkItem's param. 51 | */ 52 | public ResubscribeRequestWorkItem(final Handle handle, final ResubscribeParams params) 53 | { 54 | super(WorkItemType.RESUBSCRIBE_REQUEST, handle, params); 55 | } 56 | 57 | /** 58 | * Return the ResubscribeParams stored in the params Map. 59 | * @return the ResubscribeParams stored in the params Map. 60 | */ 61 | public ResubscribeParams getResubscribeParams() 62 | { 63 | return (ResubscribeParams)getParams(); 64 | } 65 | } 66 | 67 | -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2/src/main/java/org/apache/qpid/qmf2/agent/SubscribableAgent.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | * 20 | */ 21 | package org.apache.qpid.qmf2.agent; 22 | 23 | // Misc Imports 24 | import java.util.List; 25 | import java.util.Map; 26 | 27 | // QMF2 Imports 28 | import org.apache.qpid.qmf2.common.Handle; 29 | import org.apache.qpid.qmf2.common.QmfQuery; 30 | 31 | /** 32 | * This interface provides a number of methods that are called by a Subscription in order to interact with an 33 | * Agent or an Agent's managed data. 34 | *

35 | * The purpose of this interface is primarily about removing a circular dependency between Subscription and Agent 36 | * so the Subscription doesn't invoke these methods on an Agent instance, rather it invokes them on a 37 | * SubscribeableAgent instance. 38 | *

39 | * The following diagram illustrates the interactions between the Agent, Subscription and SubscribableAgent. 40 | *

41 | * 42 | * 43 | * @author Fraser Adams 44 | */ 45 | public interface SubscribableAgent 46 | { 47 | /** 48 | * Send a list of updated subscribed data to the Console. 49 | * 50 | * @param handle the console reply handle 51 | * @param results a list of subscribed data in Map encoded form 52 | */ 53 | public void sendSubscriptionIndicate(Handle handle, List results); 54 | 55 | /** 56 | * This method evaluates a QmfQuery over the Agent's data on behalf of a Subscription 57 | * 58 | * @param query the QmfQuery that the Subscription wants to be evaluated over the Agent's data 59 | * @return a List of QmfAgentData objects that match the specified QmfQuery 60 | */ 61 | public List evaluateQuery(QmfQuery query); 62 | 63 | /** 64 | * This method is called by the Subscription to tell the SubscriberProxy that the Subscription has been cancelled. 65 | * 66 | * @param subscription the Subscription that has been cancelled and is requesting removal. 67 | */ 68 | public void removeSubscription(Subscription subscription); 69 | } 70 | 71 | -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2/src/main/java/org/apache/qpid/qmf2/agent/SubscribeRequestWorkItem.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | * 20 | */ 21 | package org.apache.qpid.qmf2.agent; 22 | 23 | import java.util.Map; 24 | 25 | // QMF2 Imports 26 | import org.apache.qpid.qmf2.common.Handle; 27 | import org.apache.qpid.qmf2.common.WorkItem; 28 | 29 | /** 30 | * Descriptions below are taken from QMF2 API Proposal 31 | *

32 |  * SUBSCRIBE_REQUEST: The SUBSCRIBE_REQUEST WorkItem provides a query that the agent application must periodically
33 |  *                    publish until the subscription is cancelled or expires. On receipt of this WorkItem, the
34 |  *                    application should call the Agent subscriptionResponse() method to acknowledge the request.
35 |  *                    On each publish interval, the application should call Agent subscriptionIndicate(), passing a
36 |  *                    list of the objects that satisfy the query. The subscription remains in effect until an   
37 |  *                    UNSUBSCRIBE_REQUEST WorkItem for the subscription is received, or the subscription expires.
38 |  *
39 |  *                    The getParams() method of a QUERY WorkItem will return an instance of the SubscriptionParams class.
40 |  *
41 |  *                    The getHandle() WorkItem method returns the reply handle which should be passed to the Agent's 
42 |  *                    subscriptionResponse() method.
43 |  * 
44 | * @author Fraser Adams 45 | */ 46 | 47 | public final class SubscribeRequestWorkItem extends WorkItem 48 | { 49 | /** 50 | * Construct a SubscribeRequestWorkItem. Convenience constructor not in API 51 | * 52 | * @param handle the reply handle 53 | * @param params the SubscriptionParams used to populate the WorkItem's param 54 | */ 55 | public SubscribeRequestWorkItem(final Handle handle, final SubscriptionParams params) 56 | { 57 | super(WorkItemType.SUBSCRIBE_REQUEST, handle, params); 58 | } 59 | 60 | /** 61 | * Return the SubscriptionParams stored in the params Map. 62 | * @return the SubscriptionParams stored in the params Map. 63 | */ 64 | public SubscriptionParams getSubscriptionParams() 65 | { 66 | return (SubscriptionParams)getParams(); 67 | } 68 | } 69 | 70 | -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2/src/main/java/org/apache/qpid/qmf2/agent/UnsubscribeRequestWorkItem.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | * 20 | */ 21 | package org.apache.qpid.qmf2.agent; 22 | 23 | import java.util.Map; 24 | 25 | // QMF2 Imports 26 | import org.apache.qpid.qmf2.common.Handle; 27 | import org.apache.qpid.qmf2.common.WorkItem; 28 | 29 | /** 30 | * Descriptions below are taken from QMF2 API Proposal 31 | *
32 |  * UNSUBSCRIBE_REQUEST: The UNSUBSCRIBE_REQUEST is sent by a Console to terminate an existing subscription. The Agent 
33 |  *                      application should terminate the given subscription if it exists, and cancel sending any further 
34 |  *                      updates against it.
35 |  *
36 |  *                      The getParams() method of a UNSUBSCRIBE_REQUEST WorkItem will return a String holding the 
37 |  *                      subscriptionId
38 |  *
39 |  *                      The getHandle() method returns null.
40 |  * 
41 | * @author Fraser Adams 42 | */ 43 | 44 | public final class UnsubscribeRequestWorkItem extends WorkItem 45 | { 46 | /** 47 | * Construct an UnsubscribeRequestWorkItem. Convenience constructor not in API 48 | * 49 | * @param params the ResubscribeParams used to populate the WorkItem's param 50 | */ 51 | public UnsubscribeRequestWorkItem(final String params) 52 | { 53 | super(WorkItemType.UNSUBSCRIBE_REQUEST, null, params); 54 | } 55 | 56 | /** 57 | * Return the subscriptionId String stored in the params Map. 58 | * @return the subscriptionId String stored in the params Map. 59 | */ 60 | public String getSubscriptionId() 61 | { 62 | return (String)getParams(); 63 | } 64 | } 65 | 66 | -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2/src/main/java/org/apache/qpid/qmf2/agent/doc-files/QmfData.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/qpid/61e6c03338f3bd20a62590baa89a36bffeb32859/qpid/tools/src/java/qpid-qmf2/src/main/java/org/apache/qpid/qmf2/agent/doc-files/QmfData.png -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2/src/main/java/org/apache/qpid/qmf2/agent/doc-files/QmfEventListenerModel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/qpid/61e6c03338f3bd20a62590baa89a36bffeb32859/qpid/tools/src/java/qpid-qmf2/src/main/java/org/apache/qpid/qmf2/agent/doc-files/QmfEventListenerModel.png -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2/src/main/java/org/apache/qpid/qmf2/agent/doc-files/QmfQuery.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/qpid/61e6c03338f3bd20a62590baa89a36bffeb32859/qpid/tools/src/java/qpid-qmf2/src/main/java/org/apache/qpid/qmf2/agent/doc-files/QmfQuery.png -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2/src/main/java/org/apache/qpid/qmf2/agent/doc-files/Schema.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/qpid/61e6c03338f3bd20a62590baa89a36bffeb32859/qpid/tools/src/java/qpid-qmf2/src/main/java/org/apache/qpid/qmf2/agent/doc-files/Schema.png -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2/src/main/java/org/apache/qpid/qmf2/agent/doc-files/Subscriptions.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/qpid/61e6c03338f3bd20a62590baa89a36bffeb32859/qpid/tools/src/java/qpid-qmf2/src/main/java/org/apache/qpid/qmf2/agent/doc-files/Subscriptions.png -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2/src/main/java/org/apache/qpid/qmf2/agent/doc-files/WorkQueueEventModel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/qpid/61e6c03338f3bd20a62590baa89a36bffeb32859/qpid/tools/src/java/qpid-qmf2/src/main/java/org/apache/qpid/qmf2/agent/doc-files/WorkQueueEventModel.png -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2/src/main/java/org/apache/qpid/qmf2/common/BlockingNotifier.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | * 20 | */ 21 | package org.apache.qpid.qmf2.common; 22 | 23 | /** 24 | * Implementation of the Notifier Interface that provides a waitForWorkItem() method which blocks until the 25 | * Console has called the indication() method indicating that there are WorkItems available. 26 | *

27 | * This class isn't part of the QMF2 API however it's almost certainly how most clients would choose to use the 28 | * Notifier API so it seems useful to provide an implementation. 29 | * 30 | * @author Fraser Adams 31 | */ 32 | public final class BlockingNotifier implements Notifier 33 | { 34 | private boolean _waiting = true; 35 | 36 | /** 37 | * This method blocks until the indication() method has been called, this is generally called by the Console 38 | * when new WorkItems are made available. 39 | */ 40 | public synchronized void waitForWorkItem() 41 | { 42 | while (_waiting) 43 | { 44 | try 45 | { 46 | wait(); 47 | } 48 | catch (InterruptedException ie) 49 | { 50 | continue; 51 | } 52 | } 53 | _waiting = true; 54 | } 55 | 56 | /** 57 | * Called to indicate the availability of WorkItems. This method unblocks waitForWorkItem() 58 | */ 59 | public synchronized void indication() 60 | { 61 | _waiting = false; 62 | notifyAll(); 63 | } 64 | } 65 | 66 | -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2/src/main/java/org/apache/qpid/qmf2/common/BooleanEquals.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | * 20 | */ 21 | package org.apache.qpid.qmf2.common; 22 | 23 | // Misc Imports 24 | import java.util.List; 25 | 26 | /** 27 | * A class to create and evaluate the BooleanEquals Expression 28 | * 29 | * @author Fraser Adams 30 | */ 31 | public final class BooleanEquals extends BooleanExpression 32 | { 33 | /** 34 | * Factory method to create an instance of BooleanEquals 35 | * @param expr the List of Expressions extracted by parsing the Query predicate 36 | * @return an instance of the concrete BooleanExpression 37 | */ 38 | public Expression create(final List expr) throws QmfException 39 | { 40 | return new BooleanEquals(expr); 41 | } 42 | 43 | /** 44 | * Basic Constructor primarily used by the prototype instance of each concrete BooleanExpression 45 | */ 46 | public BooleanEquals() 47 | { 48 | } 49 | 50 | /** 51 | * Main Constructor, uses base class constructor to populate unevaluated operands 52 | * @param expr the List of Expressions extracted by parsing the Query predicate 53 | */ 54 | public BooleanEquals(final List expr) throws QmfException 55 | { 56 | super(2, expr); 57 | } 58 | 59 | /** 60 | * Evaluate "equal to" expression against a QmfData instance. 61 | * N.B. to avoid complexities with types this class treats operands as Strings performing an appropriate evaluation 62 | * of the String that makes sense for a given expression e.g. parsing as a double for {@literal >, >=, <, <= } 63 | * 64 | * @param data the object to evaluate the expression against 65 | * @return true if query matches the QmfData instance, else false. 66 | */ 67 | public boolean evaluate(final QmfData data) 68 | { 69 | populateOperands(data); 70 | 71 | if (_operands[0] == null || _operands[1] == null) 72 | { 73 | return false; 74 | } 75 | 76 | return _operands[0].equals(_operands[1]); 77 | } 78 | } 79 | 80 | -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2/src/main/java/org/apache/qpid/qmf2/common/BooleanExists.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | * 20 | */ 21 | package org.apache.qpid.qmf2.common; 22 | 23 | // Misc Imports 24 | import java.util.List; 25 | 26 | /** 27 | * A class to create and evaluate the BooleanExists Expression 28 | * 29 | * @author Fraser Adams 30 | */ 31 | public final class BooleanExists extends BooleanExpression 32 | { 33 | /** 34 | * Factory method to create an instance of BooleanExists 35 | * @param expr the List of Expressions extracted by parsing the Query predicate 36 | * @return an instance of the concrete BooleanExpression 37 | */ 38 | public Expression create(final List expr) throws QmfException 39 | { 40 | return new BooleanExists(expr); 41 | } 42 | 43 | /** 44 | * Basic Constructor primarily used by the prototype instance of each concrete BooleanExpression 45 | */ 46 | public BooleanExists() 47 | { 48 | } 49 | 50 | /** 51 | * Main Constructor, uses base class constructor to populate unevaluated operands 52 | * @param expr the List of Expressions extracted by parsing the Query predicate 53 | */ 54 | public BooleanExists(final List expr) throws QmfException 55 | { 56 | super(1, expr); 57 | } 58 | 59 | /** 60 | * Evaluate "exists" expression against a QmfData instance. 61 | * N.B. to avoid complexities with types this class treats operands as Strings performing an appropriate evaluation 62 | * of the String that makes sense for a given expression e.g. parsing as a double for {@literal >, >=, <, <= } 63 | * 64 | * @param data the object to evaluate the expression against 65 | * @return true if query matches the QmfData instance, else false. 66 | */ 67 | public boolean evaluate(final QmfData data) 68 | { 69 | return _operands[0] != null; 70 | } 71 | } 72 | 73 | -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2/src/main/java/org/apache/qpid/qmf2/common/BooleanFalse.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | * 20 | */ 21 | package org.apache.qpid.qmf2.common; 22 | 23 | // Misc Imports 24 | import java.util.List; 25 | 26 | /** 27 | * A class to create and evaluate the BooleanFalse Expression 28 | * 29 | * @author Fraser Adams 30 | */ 31 | public final class BooleanFalse extends BooleanExpression 32 | { 33 | /** 34 | * Factory method to create an instance of BooleanFalse 35 | * @param expr the List of Expressions extracted by parsing the Query predicate 36 | * @return an instance of the concrete BooleanExpression 37 | */ 38 | public Expression create(final List expr) throws QmfException 39 | { 40 | return new BooleanFalse(); 41 | } 42 | 43 | /** 44 | * Basic Constructor primarily used by the prototype instance of each concrete BooleanExpression 45 | */ 46 | public BooleanFalse() 47 | { 48 | } 49 | 50 | /** 51 | * Evaluate "false" expression against a QmfData instance. 52 | * @param data the object to evaluate the expression against 53 | * @return false. 54 | */ 55 | public boolean evaluate(final QmfData data) 56 | { 57 | return false; 58 | } 59 | } 60 | 61 | -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2/src/main/java/org/apache/qpid/qmf2/common/BooleanGreaterEqual.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | * 20 | */ 21 | package org.apache.qpid.qmf2.common; 22 | 23 | // Misc Imports 24 | import java.util.List; 25 | 26 | /** 27 | * A class to create and evaluate the BooleanGreaterEqual Expression 28 | * 29 | * @author Fraser Adams 30 | */ 31 | public final class BooleanGreaterEqual extends BooleanExpression 32 | { 33 | /** 34 | * Factory method to create an instance of BooleanGreaterEqual 35 | * @param expr the List of Expressions extracted by parsing the Query predicate 36 | * @return an instance of the concrete BooleanExpression 37 | */ 38 | public Expression create(final List expr) throws QmfException 39 | { 40 | return new BooleanGreaterEqual(expr); 41 | } 42 | 43 | /** 44 | * Basic Constructor primarily used by the prototype instance of each concrete BooleanExpression 45 | */ 46 | public BooleanGreaterEqual() 47 | { 48 | } 49 | 50 | /** 51 | * Main Constructor, uses base class constructor to populate unevaluated operands 52 | * @param expr the List of Expressions extracted by parsing the Query predicate 53 | */ 54 | public BooleanGreaterEqual(final List expr) throws QmfException 55 | { 56 | super(2, expr); 57 | } 58 | 59 | /** 60 | * Evaluate "greater than or equal to" expression against a QmfData instance. 61 | * N.B. to avoid complexities with types this class treats operands as Strings performing an appropriate evaluation 62 | * of the String that makes sense for a given expression e.g. parsing as a double for {@literal >, >=, <, <= } 63 | * 64 | * @param data the object to evaluate the expression against 65 | * @return true if query matches the QmfData instance, else false. 66 | */ 67 | public boolean evaluate(final QmfData data) 68 | { 69 | populateOperands(data); 70 | 71 | if (_operands[0] == null || _operands[1] == null) 72 | { 73 | return false; 74 | } 75 | 76 | try 77 | { 78 | double l = Double.parseDouble(_operands[0]); 79 | double r = Double.parseDouble(_operands[1]); 80 | return l >= r; 81 | } 82 | catch (NumberFormatException nfe) 83 | { 84 | // If converting to double fails try a lexicographic comparison 85 | return _operands[0].compareTo(_operands[1]) >= 0; 86 | } 87 | } 88 | } 89 | 90 | -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2/src/main/java/org/apache/qpid/qmf2/common/BooleanGreaterThan.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | * 20 | */ 21 | package org.apache.qpid.qmf2.common; 22 | 23 | // Misc Imports 24 | import java.util.List; 25 | 26 | /** 27 | * A class to create and evaluate the BooleanGreaterThan Expression 28 | * 29 | * @author Fraser Adams 30 | */ 31 | public final class BooleanGreaterThan extends BooleanExpression 32 | { 33 | /** 34 | * Factory method to create an instance of BooleanGreaterThan 35 | * @param expr the List of Expressions extracted by parsing the Query predicate 36 | * @return an instance of the concrete BooleanExpression 37 | */ 38 | public Expression create(final List expr) throws QmfException 39 | { 40 | return new BooleanGreaterThan(expr); 41 | } 42 | 43 | /** 44 | * Basic Constructor primarily used by the prototype instance of each concrete BooleanExpression 45 | */ 46 | public BooleanGreaterThan() 47 | { 48 | } 49 | 50 | /** 51 | * Main Constructor, uses base class constructor to populate unevaluated operands 52 | * @param expr the List of Expressions extracted by parsing the Query predicate 53 | */ 54 | public BooleanGreaterThan(final List expr) throws QmfException 55 | { 56 | super(2, expr); 57 | } 58 | 59 | /** 60 | * Evaluate "greater than" expression against a QmfData instance. 61 | * N.B. to avoid complexities with types this class treats operands as Strings performing an appropriate evaluation 62 | * of the String that makes sense for a given expression e.g. parsing as a double for {@literal >, >=, <, <= } 63 | * 64 | * @param data the object to evaluate the expression against 65 | * @return true if query matches the QmfData instance, else false. 66 | */ 67 | public boolean evaluate(QmfData data) 68 | { 69 | populateOperands(data); 70 | 71 | if (_operands[0] == null || _operands[1] == null) 72 | { 73 | return false; 74 | } 75 | 76 | try 77 | { 78 | double l = Double.parseDouble(_operands[0]); 79 | double r = Double.parseDouble(_operands[1]); 80 | return l > r; 81 | } 82 | catch (NumberFormatException nfe) 83 | { 84 | // If converting to double fails try a lexicographic comparison 85 | return _operands[0].compareTo(_operands[1]) > 0; 86 | } 87 | } 88 | } 89 | 90 | -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2/src/main/java/org/apache/qpid/qmf2/common/BooleanLessEqual.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | * 20 | */ 21 | package org.apache.qpid.qmf2.common; 22 | 23 | // Misc Imports 24 | import java.util.List; 25 | 26 | /** 27 | * A class to create and evaluate the BooleanLessEqual Expression 28 | * 29 | * @author Fraser Adams 30 | */ 31 | public final class BooleanLessEqual extends BooleanExpression 32 | { 33 | /** 34 | * Factory method to create an instance of BooleanLessEqual 35 | * @param expr the List of Expressions extracted by parsing the Query predicate 36 | * @return an instance of the concrete BooleanExpression 37 | */ 38 | public Expression create(final List expr) throws QmfException 39 | { 40 | return new BooleanLessEqual(expr); 41 | } 42 | 43 | /** 44 | * Basic Constructor primarily used by the prototype instance of each concrete BooleanExpression 45 | */ 46 | public BooleanLessEqual() 47 | { 48 | } 49 | 50 | /** 51 | * Main Constructor, uses base class constructor to populate unevaluated operands 52 | * @param expr the List of Expressions extracted by parsing the Query predicate 53 | */ 54 | public BooleanLessEqual(final List expr) throws QmfException 55 | { 56 | super(2, expr); 57 | } 58 | 59 | /** 60 | * Evaluate "less than or equal to" expression against a QmfData instance. 61 | * N.B. to avoid complexities with types this class treats operands as Strings performing an appropriate evaluation 62 | * of the String that makes sense for a given expression e.g. parsing as a double for {@literal >, >=, <, <= } 63 | * 64 | * @param data the object to evaluate the expression against 65 | * @return true if query matches the QmfData instance, else false. 66 | */ 67 | public boolean evaluate(final QmfData data) 68 | { 69 | populateOperands(data); 70 | 71 | if (_operands[0] == null || _operands[1] == null) 72 | { 73 | return false; 74 | } 75 | 76 | try 77 | { 78 | double l = Double.parseDouble(_operands[0]); 79 | double r = Double.parseDouble(_operands[1]); 80 | return l <= r; 81 | } 82 | catch (NumberFormatException nfe) 83 | { 84 | // If converting to double fails try a lexicographic comparison 85 | return _operands[0].compareTo(_operands[1]) <= 0; 86 | } 87 | } 88 | } 89 | 90 | -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2/src/main/java/org/apache/qpid/qmf2/common/BooleanLessThan.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | * 20 | */ 21 | package org.apache.qpid.qmf2.common; 22 | 23 | // Misc Imports 24 | import java.util.List; 25 | 26 | /** 27 | * A class to create and evaluate the BooleanLessThan Expression 28 | * 29 | * @author Fraser Adams 30 | */ 31 | public final class BooleanLessThan extends BooleanExpression 32 | { 33 | /** 34 | * Factory method to create an instance of BooleanLessThan 35 | * @param expr the List of Expressions extracted by parsing the Query predicate 36 | * @return an instance of the concrete BooleanExpression 37 | */ 38 | public Expression create(final List expr) throws QmfException 39 | { 40 | return new BooleanLessThan(expr); 41 | } 42 | 43 | /** 44 | * Basic Constructor primarily used by the prototype instance of each concrete BooleanExpression 45 | */ 46 | public BooleanLessThan() 47 | { 48 | } 49 | 50 | /** 51 | * Main Constructor, uses base class constructor to populate unevaluated operands 52 | * @param expr the List of Expressions extracted by parsing the Query predicate 53 | */ 54 | public BooleanLessThan(final List expr) throws QmfException 55 | { 56 | super(2, expr); 57 | } 58 | 59 | /** 60 | * Evaluate "less than" expression against a QmfData instance. 61 | * N.B. to avoid complexities with types this class treats operands as Strings performing an appropriate evaluation 62 | * of the String that makes sense for a given expression e.g. parsing as a double for {@literal >, >=, <, <= } 63 | * 64 | * @param data the object to evaluate the expression against 65 | * @return true if query matches the QmfData instance, else false. 66 | */ 67 | public boolean evaluate(final QmfData data) 68 | { 69 | populateOperands(data); 70 | 71 | if (_operands[0] == null || _operands[1] == null) 72 | { 73 | return false; 74 | } 75 | 76 | try 77 | { 78 | double l = Double.parseDouble(_operands[0]); 79 | double r = Double.parseDouble(_operands[1]); 80 | return l < r; 81 | } 82 | catch (NumberFormatException nfe) 83 | { 84 | // If converting to double fails try a lexicographic comparison 85 | return _operands[0].compareTo(_operands[1]) < 0; 86 | } 87 | } 88 | } 89 | 90 | -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2/src/main/java/org/apache/qpid/qmf2/common/BooleanNotEquals.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | * 20 | */ 21 | package org.apache.qpid.qmf2.common; 22 | 23 | // Misc Imports 24 | import java.util.List; 25 | 26 | /** 27 | * A class to create and evaluate the BooleanNotEquals Expression 28 | * 29 | * @author Fraser Adams 30 | */ 31 | public final class BooleanNotEquals extends BooleanExpression 32 | { 33 | /** 34 | * Factory method to create an instance of BooleanNotEquals 35 | * @param expr the List of Expressions extracted by parsing the Query predicate 36 | * @return an instance of the concrete BooleanExpression 37 | */ 38 | public Expression create(final List expr) throws QmfException 39 | { 40 | return new BooleanNotEquals(expr); 41 | } 42 | 43 | /** 44 | * Basic Constructor primarily used by the prototype instance of each concrete BooleanExpression 45 | */ 46 | public BooleanNotEquals() 47 | { 48 | } 49 | 50 | /** 51 | * Main Constructor, uses base class constructor to populate unevaluated operands 52 | * @param expr the List of Expressions extracted by parsing the Query predicate 53 | */ 54 | public BooleanNotEquals(final List expr) throws QmfException 55 | { 56 | super(2, expr); 57 | } 58 | 59 | /** 60 | * Evaluate "not equal to" expression against a QmfData instance. 61 | * N.B. to avoid complexities with types this class treats operands as Strings performing an appropriate evaluation 62 | * of the String that makes sense for a given expression e.g. parsing as a double for {@literal >, >=, <, <= } 63 | * 64 | * @param data the object to evaluate the expression against 65 | * @return true if query matches the QmfData instance, else false. 66 | */ 67 | public boolean evaluate(final QmfData data) 68 | { 69 | populateOperands(data); 70 | 71 | if (_operands[0] == null || _operands[1] == null) 72 | { 73 | return false; 74 | } 75 | 76 | return !_operands[0].equals(_operands[1]); 77 | } 78 | } 79 | 80 | -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2/src/main/java/org/apache/qpid/qmf2/common/BooleanRegexMatch.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | * 20 | */ 21 | package org.apache.qpid.qmf2.common; 22 | 23 | // Misc Imports 24 | import java.util.List; 25 | import java.util.regex.Matcher; 26 | import java.util.regex.Pattern; 27 | import java.util.regex.PatternSyntaxException; 28 | 29 | /** 30 | * A class to create and evaluate the BooleanRegexMatch Expression 31 | * 32 | * @author Fraser Adams 33 | */ 34 | public final class BooleanRegexMatch extends BooleanExpression 35 | { 36 | private final Pattern _pattern; 37 | 38 | /** 39 | * Factory method to create an instance of BooleanRegexMatch 40 | * @param expr the List of Expressions extracted by parsing the Query predicate 41 | * @return an instance of the concrete BooleanExpression 42 | */ 43 | public Expression create(final List expr) throws QmfException 44 | { 45 | return new BooleanRegexMatch(expr); 46 | } 47 | 48 | /** 49 | * Basic Constructor primarily used by the prototype instance of each concrete BooleanExpression 50 | */ 51 | public BooleanRegexMatch() 52 | { 53 | _pattern = null; 54 | } 55 | 56 | /** 57 | * Main Constructor, uses base class constructor to populate unevaluated operands 58 | * @param expr the List of Expressions extracted by parsing the Query predicate 59 | */ 60 | public BooleanRegexMatch(final List expr) throws QmfException 61 | { 62 | super(2, expr); 63 | 64 | try 65 | { 66 | _pattern = Pattern.compile(_operands[1]); 67 | } 68 | catch (PatternSyntaxException pse) 69 | { 70 | throw new QmfException("Error in regular expression " + pse.getMessage()); 71 | } 72 | } 73 | 74 | /** 75 | * Evaluate "regex match" expression against a QmfData instance. 76 | * N.B. to avoid complexities with types this class treats operands as Strings performing an appropriate evaluation 77 | * of the String that makes sense for a given expression e.g. parsing as a double for {@literal >, >=, <, <= } 78 | * 79 | * @param data the object to evaluate the expression against 80 | * @return true if query matches the QmfData instance, else false. 81 | */ 82 | public boolean evaluate(final QmfData data) 83 | { 84 | populateOperands(data); 85 | 86 | if (_operands[0] == null || _operands[1] == null || _pattern == null) 87 | { 88 | return false; 89 | } 90 | 91 | Matcher matcher = _pattern.matcher(_operands[0]); 92 | return matcher.find(); 93 | } 94 | } 95 | 96 | -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2/src/main/java/org/apache/qpid/qmf2/common/BooleanTrue.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | * 20 | */ 21 | package org.apache.qpid.qmf2.common; 22 | 23 | // Misc Imports 24 | import java.util.List; 25 | 26 | /** 27 | * A class to create and evaluate the BooleanTrue Expression 28 | * 29 | * @author Fraser Adams 30 | */ 31 | public final class BooleanTrue extends BooleanExpression 32 | { 33 | /** 34 | * Factory method to create an instance of BooleanTrue 35 | * @param expr the List of Expressions extracted by parsing the Query predicate 36 | * @return an instance of the concrete BooleanExpression 37 | */ 38 | public Expression create(final List expr) throws QmfException 39 | { 40 | return new BooleanTrue(); 41 | } 42 | 43 | /** 44 | * Basic Constructor primarily used by the prototype instance of each concrete BooleanExpression 45 | */ 46 | public BooleanTrue() 47 | { 48 | } 49 | 50 | /** 51 | * Evaluate "true" expression against a QmfData instance. 52 | * @param data the object to evaluate the expression against 53 | * @return true. 54 | */ 55 | public boolean evaluate(final QmfData data) 56 | { 57 | return true; 58 | } 59 | } 60 | 61 | -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2/src/main/java/org/apache/qpid/qmf2/common/Expression.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | * 20 | */ 21 | package org.apache.qpid.qmf2.common; 22 | 23 | // Misc Imports 24 | import java.util.Iterator; 25 | import java.util.List; 26 | 27 | /** 28 | * This class represents the base class for all Expressions created by expanding the Query predicate. 29 | *

30 | * Depending on the structure of the expression list there might be a nested structure of Expressions comprising 31 | * a mixture of LogicalExpressions and BooleanExpressions. 32 | *

33 | * The Expression structure is illustrated below in the context of its relationship with QmfQuery. 34 | * 35 | * 36 | * @author Fraser Adams 37 | */ 38 | public abstract class Expression 39 | { 40 | /** 41 | * Factory method to create concrete Expression instances base on the operator name extracted from the expression List. 42 | * This method will create a LogicalExpression from an "and", "or" or "not" operator otherwise it will create 43 | * a BooleanExpression. 44 | * 45 | * @param expr the List of Expressions extracted by parsing the Query predicate 46 | */ 47 | public static Expression createExpression(final List expr) throws QmfException 48 | { 49 | Iterator iter = expr.listIterator(); 50 | if (!iter.hasNext()) 51 | { 52 | throw new QmfException("Missing operator in predicate expression"); 53 | } 54 | 55 | String op = (String)iter.next(); 56 | if (op.equals("not")) 57 | { 58 | return new LogicalNot(expr); 59 | } 60 | if (op.equals("and")) 61 | { 62 | return new LogicalAnd(expr); 63 | } 64 | if (op.equals("or")) 65 | { 66 | return new LogicalOr(expr); 67 | } 68 | return BooleanExpression.createExpression(expr); 69 | } 70 | 71 | /** 72 | * Evaluate expression against a QmfData instance. 73 | * @return true if query matches the QmfData instance, else false. 74 | */ 75 | public abstract boolean evaluate(final QmfData data); 76 | } 77 | 78 | -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2/src/main/java/org/apache/qpid/qmf2/common/LogicalAnd.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | * 20 | */ 21 | package org.apache.qpid.qmf2.common; 22 | 23 | // Misc Imports 24 | import java.util.List; 25 | 26 | /** 27 | * A class to evaluate the LogicalAnd Expression 28 | * 29 | * @author Fraser Adams 30 | */ 31 | 32 | public final class LogicalAnd extends LogicalExpression 33 | { 34 | /** 35 | * This method iterates through collecting the sub-expressions of the Logical Expression 36 | * 37 | * @param expr the List of sub-expressions extracted by parsing the Query predicate, the first one should be 38 | * the Logical Expression's operator name 39 | */ 40 | public LogicalAnd(final List expr) throws QmfException 41 | { 42 | super(expr); 43 | } 44 | 45 | /** 46 | * Evaluate the Logical And expression against a QmfData instance. 47 | * @return false if any of the sub-expressions is false otherwise returns true 48 | */ 49 | public boolean evaluate(final QmfData data) 50 | { 51 | for (Expression e : _subExpressions) 52 | { 53 | if (!e.evaluate(data)) 54 | { 55 | return false; 56 | } 57 | } 58 | return true; 59 | } 60 | } 61 | 62 | 63 | -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2/src/main/java/org/apache/qpid/qmf2/common/LogicalExpression.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | * 20 | */ 21 | package org.apache.qpid.qmf2.common; 22 | 23 | // Misc Imports 24 | import java.util.ArrayList; 25 | import java.util.Iterator; 26 | import java.util.List; 27 | 28 | /* 29 | * This class represents the base class for all Logical Expressions (and, or, not) created by expanding the Query predicate. 30 | * 31 | * @author Fraser Adams 32 | */ 33 | public abstract class LogicalExpression extends Expression 34 | { 35 | protected List _subExpressions = new ArrayList(); 36 | 37 | /** 38 | * Constructor. This method iterates through collecting the sub-expressions of the Logical Expression 39 | * 40 | * @param expr the List of sub-expressions extracted by parsing the Query predicate, the first one should be 41 | * the Logical Expression's operator name 42 | */ 43 | public LogicalExpression(final List expr) throws QmfException 44 | { 45 | Iterator iter = expr.listIterator(); 46 | String op = (String)iter.next(); 47 | //System.out.println("LogicalExpression, op = " + op); 48 | 49 | // Collect sub-expressions 50 | while (iter.hasNext()) 51 | { 52 | Object object = iter.next(); 53 | if (object instanceof List) 54 | { 55 | _subExpressions.add(createExpression((List)object)); 56 | } 57 | else 58 | { 59 | throw new QmfException("Operands of " + op + " must be Lists"); 60 | } 61 | } 62 | } 63 | } 64 | 65 | -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2/src/main/java/org/apache/qpid/qmf2/common/LogicalNot.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | * 20 | */ 21 | package org.apache.qpid.qmf2.common; 22 | 23 | // Misc Imports 24 | import java.util.List; 25 | 26 | /** 27 | * A class to evaluate the LogicalNot Expression 28 | * 29 | * @author Fraser Adams 30 | */ 31 | 32 | public final class LogicalNot extends LogicalExpression 33 | { 34 | /** 35 | * This method iterates through collecting the sub-expressions of the Logical Expression 36 | * 37 | * @param expr the List of sub-expressions extracted by parsing the Query predicate, the first one should be 38 | * the Logical Expression's operator name 39 | */ 40 | public LogicalNot(final List expr) throws QmfException 41 | { 42 | super(expr); 43 | } 44 | 45 | /** 46 | * Evaluate the Logical Not expression against a QmfData instance. 47 | * @return false if any of the sub-expressions is true otherwise returns true 48 | */ 49 | public boolean evaluate(final QmfData data) 50 | { 51 | for (Expression e : _subExpressions) 52 | { 53 | if (e.evaluate(data)) 54 | { 55 | return false; 56 | } 57 | } 58 | return true; 59 | } 60 | } 61 | 62 | 63 | -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2/src/main/java/org/apache/qpid/qmf2/common/LogicalOr.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | * 20 | */ 21 | package org.apache.qpid.qmf2.common; 22 | 23 | // Misc Imports 24 | import java.util.List; 25 | 26 | /** 27 | * A class to evaluate the LogicalOr Expression 28 | * 29 | * @author Fraser Adams 30 | */ 31 | 32 | public final class LogicalOr extends LogicalExpression 33 | { 34 | /** 35 | * This method iterates through collecting the sub-expressions of the Logical Expression 36 | * 37 | * @param expr the List of sub-expressions extracted by parsing the Query predicate, the first one should be 38 | * the Logical Expression's operator name 39 | */ 40 | public LogicalOr(final List expr) throws QmfException 41 | { 42 | super(expr); 43 | } 44 | 45 | /** 46 | * Evaluate the Logical Or expression against a QmfData instance. 47 | * @return true if any of the sub-expressions is true otherwise returns false 48 | */ 49 | public boolean evaluate(final QmfData data) 50 | { 51 | for (Expression e : _subExpressions) 52 | { 53 | if (e.evaluate(data)) 54 | { 55 | return true; 56 | } 57 | } 58 | return false; 59 | } 60 | } 61 | 62 | 63 | -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2/src/main/java/org/apache/qpid/qmf2/common/NotifierWrapper.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | * 20 | */ 21 | package org.apache.qpid.qmf2.common; 22 | 23 | /** 24 | * Implementation of QmfEventListener that wraps a Notifier instance. This class populates the WorkItem 25 | * queue then invokes the Notifier's indication() method to notify clients of available data. 26 | *

27 | * This approach allows us to support two separate asynchronous notification APIs without too much effort. 28 | * 29 | * @author Fraser Adams 30 | */ 31 | public final class NotifierWrapper implements QmfEventListener 32 | { 33 | private final Notifier _notifier; 34 | private final WorkQueue _workQueue; 35 | 36 | /** 37 | * Wraps a Notifier and WorkQueue so that they me be triggered by a QmfEventListener onEvent() call. 38 | * @param notifier the Notifier instance that will be triggered when NotifierWrapper receives a WorkItem. 39 | * @param workQueue the WorkQueue instance that the WorkItem will be placed on. 40 | */ 41 | public NotifierWrapper(final Notifier notifier, final WorkQueue workQueue) 42 | { 43 | _notifier = notifier; 44 | _workQueue = workQueue; 45 | } 46 | 47 | /** 48 | * This method adds the WorkItem to the WorkQueue then notifies any clients through the Notifier.indication(). 49 | * 50 | * @param item the WorkItem to add to the queue 51 | */ 52 | public void onEvent(final WorkItem item) 53 | { 54 | _workQueue.addWorkItem(item); 55 | _notifier.indication(); 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2/src/main/java/org/apache/qpid/qmf2/common/NullQmfEventListener.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | * 20 | */ 21 | package org.apache.qpid.qmf2.common; 22 | 23 | /** 24 | * Implementation of QmfEventListener with an empty onEvent(). 25 | *

26 | * Agent or Console instantiate this class if no QmfCallback is supplied so they can avoid lots of ugly tests for 27 | * _eventListener == null. 28 | * 29 | * @author Fraser Adams 30 | */ 31 | public final class NullQmfEventListener implements QmfEventListener 32 | { 33 | /** 34 | * Passes a WorkItem to the listener. This class provides a null implementation 35 | * 36 | * @param item the WorkItem passed to the listener 37 | */ 38 | public void onEvent(final WorkItem item) 39 | { 40 | // Null implementation 41 | } 42 | } 43 | 44 | -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2/src/main/java/org/apache/qpid/qmf2/common/QmfCallback.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | * 20 | */ 21 | package org.apache.qpid.qmf2.common; 22 | 23 | /** 24 | * QmfCallback is a "marker interface" used to specify objects that will be notified of a particular 25 | * condition by the Console. This interface is extended by the QmfEventListener and Notifier interfaces 26 | * in order to provide two different types of callback semantic. 27 | * 28 | * @author Fraser Adams 29 | */ 30 | public interface QmfCallback 31 | { 32 | } 33 | 34 | -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2/src/main/java/org/apache/qpid/qmf2/common/QmfDescribed.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | * 20 | */ 21 | package org.apache.qpid.qmf2.common; 22 | 23 | // Misc Imports 24 | import java.util.Map; 25 | import java.util.UUID; 26 | 27 | /** 28 | * Subclass of QmfData. 29 | *

30 | * When representing formally defined data, a QmfData instance is assigned a Schema. 31 | * 32 | * @author Fraser Adams 33 | */ 34 | public class QmfDescribed extends QmfData 35 | { 36 | private SchemaClassId _schema_id; 37 | 38 | /** 39 | * The default constructor, initialises the underlying QmfData base class with an empty Map 40 | */ 41 | protected QmfDescribed() 42 | { 43 | } 44 | 45 | /** 46 | * The main constructor, taking a java.util.Map as a parameter. In essence it "deserialises" its state from the Map. 47 | * 48 | * @param m the map used to construct the QmfDescribed 49 | */ 50 | public QmfDescribed(final Map m) 51 | { 52 | super(m); 53 | _schema_id = (m == null) ? null : new SchemaClassId((Map)m.get("_schema_id")); 54 | } 55 | 56 | /** 57 | * Returns the SchemaClassId describing this object. 58 | * @return the SchemaClassId describing this object. 59 | */ 60 | public final SchemaClassId getSchemaClassId() 61 | { 62 | return _schema_id; 63 | } 64 | 65 | /** 66 | * Sets the SchemaClassId describing this object. 67 | * @param schema_id the SchemaClassId describing this object. 68 | */ 69 | public final void setSchemaClassId(final SchemaClassId schema_id) 70 | { 71 | _schema_id = schema_id; 72 | } 73 | 74 | /** 75 | * Helper/debug method to list the QMF Object properties and their type. 76 | */ 77 | @Override 78 | public void listValues() 79 | { 80 | super.listValues(); 81 | _schema_id.listValues(); 82 | } 83 | } 84 | 85 | -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2/src/main/java/org/apache/qpid/qmf2/common/QmfEventListener.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | * 20 | */ 21 | package org.apache.qpid.qmf2.common; 22 | 23 | /** 24 | * A QmfEventListener object is used to receive asynchronously delivered WorkItems. 25 | *

26 | * This provides an alternative (simpler) API to the official QMF2 WorkQueue API that some (including the Author) 27 | * may prefer over the official API. 28 | *

29 | * The following diagram illustrates the QmfEventListener Event model. 30 | *

31 | * Notes 32 | *

    33 | *
  1. This is provided as an alternative to the official QMF2 WorkQueue and Notifier Event model.
  2. 34 | *
  3. Agent and Console methods are sufficiently thread safe that it is possible to call them from a callback fired 35 | * from the onEvent() method that may have been called from the JMS MessageListener. Internally the synchronous 36 | * and asynchronous calls are processed on different JMS Sessions to facilitate this
  4. 37 | *
38 | *

39 | * 40 | * 41 | * @author Fraser Adams 42 | */ 43 | public interface QmfEventListener extends QmfCallback 44 | { 45 | /** 46 | * Passes a WorkItem to the listener. 47 | * 48 | * @param item the WorkItem passed to the listener 49 | */ 50 | public void onEvent(WorkItem item); 51 | } 52 | -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2/src/main/java/org/apache/qpid/qmf2/common/QmfException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | * 20 | */ 21 | package org.apache.qpid.qmf2.common; 22 | 23 | /** 24 | * A QmfException object 25 | * 26 | * @author Fraser Adams 27 | */ 28 | public class QmfException extends Exception 29 | { 30 | private static final long serialVersionUID = 7526471155622776147L; 31 | 32 | /** 33 | * Create a QmfException with a given message String. 34 | * @param message the message String. 35 | */ 36 | public QmfException(String message) 37 | { 38 | super(message); 39 | } 40 | } 41 | 42 | 43 | -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2/src/main/java/org/apache/qpid/qmf2/common/QmfManaged.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | * 20 | */ 21 | package org.apache.qpid.qmf2.common; 22 | 23 | // Misc Imports 24 | import java.util.Map; 25 | 26 | /** 27 | * Subclass of QmfDescribed, which is itself a subclass of QmfData. 28 | *

29 | * When representing managed data, a QmfData instance is assigned an object identifier 30 | * 31 | * @author Fraser Adams 32 | */ 33 | public class QmfManaged extends QmfDescribed 34 | { 35 | private ObjectId _object_id; 36 | 37 | /** 38 | * The default constructor, initialises the underlying QmfData base class with an empty Map 39 | */ 40 | protected QmfManaged() 41 | { 42 | } 43 | 44 | /** 45 | * The main constructor, taking a java.util.Map as a parameter. In essence it "deserialises" its state from the Map. 46 | * 47 | * @param m the map used to construct the QmfManaged 48 | */ 49 | public QmfManaged(final Map m) 50 | { 51 | super(m); 52 | _object_id = (m == null) ? null : new ObjectId((Map)m.get("_object_id")); 53 | } 54 | 55 | /** 56 | * Returns the ObjectId of this managed object. 57 | * @return the ObjectId of this managed object. 58 | */ 59 | public final ObjectId getObjectId() 60 | { 61 | return _object_id; 62 | } 63 | 64 | /** 65 | * Sets the ObjectId of this managed object. 66 | * @param object_id the ObjectId of this managed object. 67 | */ 68 | public final void setObjectId(final ObjectId object_id) 69 | { 70 | _object_id = object_id; 71 | } 72 | 73 | /** 74 | * Helper/debug method to list the QMF Object properties and their type. 75 | */ 76 | @Override 77 | public void listValues() 78 | { 79 | super.listValues(); 80 | System.out.println("_object_id: " + getObjectId()); 81 | } 82 | } 83 | 84 | -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2/src/main/java/org/apache/qpid/qmf2/common/QmfQueryTarget.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | * 20 | */ 21 | package org.apache.qpid.qmf2.common; 22 | 23 | /** 24 | * An enum containing the QMF type code indicating a QMF query target defined in 25 | * QMF Map Message Protocol 26 | * 27 | * @author Fraser Adams 28 | */ 29 | public enum QmfQueryTarget 30 | { 31 | SCHEMA_ID, 32 | SCHEMA, 33 | OBJECT_ID, 34 | OBJECT; 35 | } 36 | 37 | -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2/src/main/java/org/apache/qpid/qmf2/common/QmfType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | * 20 | */ 21 | package org.apache.qpid.qmf2.common; 22 | 23 | /** 24 | * An enum containing the QMF type code indicating a QMF object's data type 25 | * 26 | * @author Fraser Adams 27 | */ 28 | public enum QmfType 29 | { 30 | TYPE_VOID, 31 | TYPE_BOOL, 32 | TYPE_INT, 33 | TYPE_FLOAT, 34 | TYPE_STRING, 35 | TYPE_MAP, 36 | TYPE_LIST, 37 | TYPE_UUID; 38 | } 39 | 40 | -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2/src/main/java/org/apache/qpid/qmf2/common/WorkQueue.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | * 20 | */ 21 | package org.apache.qpid.qmf2.common; 22 | 23 | // Misc Imports 24 | import java.util.concurrent.BlockingQueue; 25 | import java.util.concurrent.LinkedBlockingQueue; 26 | import java.util.concurrent.TimeUnit; 27 | 28 | /** 29 | * This is an implementation of a QMF2 WorkQueue. In practice this is likely to be used by an Agent or Console. 30 | * 31 | * @author Fraser Adams 32 | */ 33 | public class WorkQueue 34 | { 35 | /** 36 | * Used to implement a thread safe queue of WorkItem objects 37 | */ 38 | private BlockingQueue _workQueue = new LinkedBlockingQueue(); 39 | 40 | /** 41 | * Return the count of pending WorkItems that can be retrieved. 42 | * @return the count of pending WorkItems that can be retrieved. 43 | */ 44 | public int size() 45 | { 46 | return _workQueue.size(); 47 | } 48 | 49 | /** 50 | * Obtains the next pending work item - blocking version 51 | * 52 | * @return the next pending work item, or null if none available. 53 | */ 54 | public WorkItem getNextWorkitem() 55 | { 56 | try 57 | { 58 | return _workQueue.take(); 59 | } 60 | catch (InterruptedException ie) 61 | { 62 | return null; 63 | } 64 | } 65 | 66 | /** 67 | * Obtains the next pending work item - balking version 68 | * 69 | * @param timeout the timeout in seconds. If timeout = 0 it returns immediately with either a WorkItem or null 70 | * @return the next pending work item, or null if none available. 71 | */ 72 | public WorkItem getNextWorkitem(long timeout) 73 | { 74 | try 75 | { 76 | return _workQueue.poll(timeout, TimeUnit.SECONDS); 77 | } 78 | catch (InterruptedException ie) 79 | { 80 | return null; 81 | } 82 | } 83 | 84 | /** 85 | * Adds a WorkItem to the WorkQueue. 86 | * 87 | * @param item the WorkItem passed to the WorkQueue 88 | */ 89 | public void addWorkItem(WorkItem item) 90 | { 91 | // We wrap the blocking put() method in a loop "just in case" InterruptedException occurs 92 | // if it does we retry the put otherwise we carry on, notify then exit. 93 | while (true) 94 | { 95 | try 96 | { 97 | _workQueue.put(item); 98 | break; 99 | } 100 | catch (InterruptedException ie) 101 | { 102 | continue; 103 | } 104 | } 105 | } 106 | } 107 | -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2/src/main/java/org/apache/qpid/qmf2/common/doc-files/Console.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/qpid/61e6c03338f3bd20a62590baa89a36bffeb32859/qpid/tools/src/java/qpid-qmf2/src/main/java/org/apache/qpid/qmf2/common/doc-files/Console.png -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2/src/main/java/org/apache/qpid/qmf2/common/doc-files/QmfData.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/qpid/61e6c03338f3bd20a62590baa89a36bffeb32859/qpid/tools/src/java/qpid-qmf2/src/main/java/org/apache/qpid/qmf2/common/doc-files/QmfData.png -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2/src/main/java/org/apache/qpid/qmf2/common/doc-files/QmfEventListenerModel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/qpid/61e6c03338f3bd20a62590baa89a36bffeb32859/qpid/tools/src/java/qpid-qmf2/src/main/java/org/apache/qpid/qmf2/common/doc-files/QmfEventListenerModel.png -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2/src/main/java/org/apache/qpid/qmf2/common/doc-files/QmfQuery.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/qpid/61e6c03338f3bd20a62590baa89a36bffeb32859/qpid/tools/src/java/qpid-qmf2/src/main/java/org/apache/qpid/qmf2/common/doc-files/QmfQuery.png -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2/src/main/java/org/apache/qpid/qmf2/common/doc-files/Schema.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/qpid/61e6c03338f3bd20a62590baa89a36bffeb32859/qpid/tools/src/java/qpid-qmf2/src/main/java/org/apache/qpid/qmf2/common/doc-files/Schema.png -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2/src/main/java/org/apache/qpid/qmf2/common/doc-files/Subscriptions.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/qpid/61e6c03338f3bd20a62590baa89a36bffeb32859/qpid/tools/src/java/qpid-qmf2/src/main/java/org/apache/qpid/qmf2/common/doc-files/Subscriptions.png -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2/src/main/java/org/apache/qpid/qmf2/common/doc-files/WorkItem.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/qpid/61e6c03338f3bd20a62590baa89a36bffeb32859/qpid/tools/src/java/qpid-qmf2/src/main/java/org/apache/qpid/qmf2/common/doc-files/WorkItem.png -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2/src/main/java/org/apache/qpid/qmf2/common/doc-files/WorkQueueEventModel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/qpid/61e6c03338f3bd20a62590baa89a36bffeb32859/qpid/tools/src/java/qpid-qmf2/src/main/java/org/apache/qpid/qmf2/common/doc-files/WorkQueueEventModel.png -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2/src/main/java/org/apache/qpid/qmf2/console/AgentAccessWorkItem.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | * 20 | */ 21 | package org.apache.qpid.qmf2.console; 22 | 23 | import java.util.HashMap; 24 | import java.util.Map; 25 | 26 | // QMF2 Imports 27 | import org.apache.qpid.qmf2.common.Handle; 28 | import org.apache.qpid.qmf2.common.QmfEvent; 29 | import org.apache.qpid.qmf2.common.WorkItem; 30 | 31 | /** 32 | * Abstract class that acts as a superclass for all WorkItems that need to set and retrieve an Agent. 33 | *

34 | * This class is a convenience class to enable neater access the the WorkItem params for this type of WorkItem. 35 | * 36 | * @author Fraser Adams 37 | */ 38 | 39 | public abstract class AgentAccessWorkItem extends WorkItem 40 | { 41 | /** 42 | * Helper method to create the WorkItem params as a Map. 43 | * 44 | * @param agent the Agent associated with the WorkItem. 45 | * @param event the QmfEvent associated with the WorkItem. 46 | */ 47 | protected static Map newParams(final Agent agent, final QmfEvent event) 48 | { 49 | Map params = new HashMap(); 50 | params.put("agent", agent); 51 | if (event != null) 52 | { 53 | params.put("event", event); 54 | } 55 | return params; 56 | } 57 | 58 | /** 59 | * Construct an AgentAccessWorkItem. Convenience constructor not in API 60 | * 61 | * @param type the type of WorkItem specified by the WorkItemType enum 62 | * @param handle the handle passed by async calls - the correlation ID 63 | * @param params the payload of the WorkItem 64 | */ 65 | public AgentAccessWorkItem(final WorkItemType type, final Handle handle, final Object params) 66 | { 67 | super(type, handle, params); 68 | } 69 | 70 | /** 71 | * Return the Agent stored in the params Map. 72 | * @return the Agent stored in the params Map. 73 | */ 74 | public final Agent getAgent() 75 | { 76 | Map p = this.>getParams(); 77 | return (Agent)p.get("agent"); 78 | } 79 | } 80 | 81 | -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2/src/main/java/org/apache/qpid/qmf2/console/AgentAddedWorkItem.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | * 20 | */ 21 | package org.apache.qpid.qmf2.console; 22 | 23 | /** 24 | * Descriptions below are taken from QMF2 API Proposal 25 | *

26 |  * AGENT_ADDED: When the QMF Console receives the first heartbeat from an Agent, an AGENT_ADDED WorkItem
27 |  *              is pushed onto the work-queue. The WorkItem's getParam() call returns a map which contains
28 |  *              a reference to the new Console Agent instance. The reference is indexed from the map using
29 |  *              the key string "agent". There is no handle associated with this WorkItem.
30 |  *
31 |  *              Note: If a new Agent is discovered as a result of the Console findAgent() method, then no
32 |  *              AGENT_ADDED WorkItem is generated for that Agent.
33 |  * 
34 | * @author Fraser Adams 35 | */ 36 | 37 | public final class AgentAddedWorkItem extends AgentAccessWorkItem 38 | { 39 | /** 40 | * Construct an AgentAddedWorkItem. Convenience constructor not in API 41 | * 42 | * @param agent the Agent used to populate the WorkItem's param 43 | */ 44 | public AgentAddedWorkItem(final Agent agent) 45 | { 46 | super(WorkItemType.AGENT_ADDED, null, newParams(agent, null)); 47 | } 48 | } 49 | 50 | -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2/src/main/java/org/apache/qpid/qmf2/console/AgentDeletedWorkItem.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | * 20 | */ 21 | package org.apache.qpid.qmf2.console; 22 | 23 | /** 24 | * Descriptions below are taken from QMF2 API Proposal 25 | *
26 |  * AGENT_DELETED: When a known Agent stops sending heartbeat messages, the Console will time out that Agent.
27 |  *                On Agent timeout, an AGENT_DELETED WorkItem is pushed onto the work-queue. The WorkItem's
28 |  *                getParam() call returns a map which contains a reference to the Agent instance that has
29 |  *                been deleted. The reference is indexed from the map using the key string "agent". There is
30 |  *                no handle associated with this WorkItem.
31 |  *
32 |  *                The Console application must release all saved references to the Agent before returning the
33 |  *                WorkItem.
34 |  * 
35 | * @author Fraser Adams 36 | */ 37 | 38 | public final class AgentDeletedWorkItem extends AgentAccessWorkItem 39 | { 40 | /** 41 | * Construct an AgentDeletedWorkItem. Convenience constructor not in API 42 | * 43 | * @param agent the Agent used to populate the WorkItem's param 44 | */ 45 | public AgentDeletedWorkItem(final Agent agent) 46 | { 47 | super(WorkItemType.AGENT_DELETED, null, newParams(agent, null)); 48 | } 49 | } 50 | 51 | -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2/src/main/java/org/apache/qpid/qmf2/console/AgentHeartbeatWorkItem.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | * 20 | */ 21 | package org.apache.qpid.qmf2.console; 22 | 23 | /** 24 | * Descriptions below are taken from QMF2 API Proposal 25 | *
26 |  * AGENT_HEARTBEAT: When the QMF Console receives heartbeats from an Agent, an AGENT_HEARTBEAT WorkItem
27 |  *                  is pushed onto the work-queue. The WorkItem's getParam() call returns a map which contains
28 |  *                  a reference to the Console Agent instance. The reference is indexed from the map using
29 |  *                  the key string "agent". There is no handle associated with this WorkItem.
30 |  *
31 |  *                  Note: the first heartbeat results in an AGENT_ADDED WorkItem for Agent not an AGENT_HEARTBEAT.
32 |  * 
33 | * @author Fraser Adams 34 | */ 35 | 36 | public final class AgentHeartbeatWorkItem extends AgentAccessWorkItem 37 | { 38 | /** 39 | * Construct an AgentHeartbeatWorkItem. Convenience constructor not in API 40 | * 41 | * @param agent the Agent used to populate the WorkItem's param 42 | */ 43 | public AgentHeartbeatWorkItem(final Agent agent) 44 | { 45 | super(WorkItemType.AGENT_HEARTBEAT, null, newParams(agent, null)); 46 | } 47 | } 48 | 49 | -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2/src/main/java/org/apache/qpid/qmf2/console/AgentRestartedWorkItem.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | * 20 | */ 21 | package org.apache.qpid.qmf2.console; 22 | 23 | /** 24 | * Descriptions below are taken from QMF2 API Proposal 25 | *
26 |  * AGENT_RESTARTED: Sent when the QMF Console detects an Agent was restarted, an AGENT_RESTARTED WorkItem
27 |  *                  is pushed onto the work-queue. The WorkItem's getParam() call returns a map which contains
28 |  *                  a reference to the Console Agent instance. The reference is indexed from the map using
29 |  *                  the key string "agent". There is no handle associated with this WorkItem.
30 |  * 
31 | * @author Fraser Adams 32 | */ 33 | 34 | public final class AgentRestartedWorkItem extends AgentAccessWorkItem 35 | { 36 | /** 37 | * Construct an AgentRestartedWorkItem. Convenience constructor not in API 38 | * 39 | * @param agent the Agent used to populate the WorkItem's param 40 | */ 41 | public AgentRestartedWorkItem(final Agent agent) 42 | { 43 | super(WorkItemType.AGENT_RESTARTED, null, newParams(agent, null)); 44 | } 45 | } 46 | 47 | -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2/src/main/java/org/apache/qpid/qmf2/console/EventReceivedWorkItem.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | * 20 | */ 21 | package org.apache.qpid.qmf2.console; 22 | 23 | import java.util.Map; 24 | 25 | // QMF2 Imports 26 | import org.apache.qpid.qmf2.common.QmfEvent; 27 | 28 | /** 29 | * Descriptions below are taken from QMF2 API Proposal 30 | *
31 |  * EVENT_RECEIVED: When an Agent generates a QmfEvent an EVENT_RECEIVED WorkItem is pushed onto the work-queue.
32 |  *                 The WorkItem's getParam() call returns a map which contains a reference to the Console Agent
33 |  *                 instance that generated the Event and a reference to the QmfEvent itself. The Agent reference
34 |  *                 is indexed from the map using the key string "agent, The QmfEvent reference is indexed from
35 |  *                 the map using the key string "event". There is no handle associated with this WorkItem.
36 |  * 
37 | * @author Fraser Adams 38 | */ 39 | 40 | public final class EventReceivedWorkItem extends AgentAccessWorkItem 41 | { 42 | /** 43 | * Construct a EventReceivedWorkItem. Convenience constructor not in API 44 | * 45 | * @param agent the Agent used to populate the WorkItem's param 46 | * @param event the QmfEvent used to populate the WorkItem's param 47 | */ 48 | public EventReceivedWorkItem(final Agent agent, final QmfEvent event) 49 | { 50 | super(WorkItemType.EVENT_RECEIVED, null, newParams(agent, event)); 51 | } 52 | 53 | /** 54 | * Return the QmfEvent stored in the params Map. 55 | * @return the QmfEvent stored in the params Map. 56 | */ 57 | public QmfEvent getEvent() 58 | { 59 | Map p = this.>getParams(); 60 | return (QmfEvent)p.get("event"); 61 | } 62 | } 63 | 64 | -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2/src/main/java/org/apache/qpid/qmf2/console/MethodResponseWorkItem.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | * 20 | */ 21 | package org.apache.qpid.qmf2.console; 22 | 23 | import java.util.Map; 24 | 25 | // QMF2 Imports 26 | import org.apache.qpid.qmf2.common.Handle; 27 | import org.apache.qpid.qmf2.common.WorkItem; 28 | 29 | /** 30 | * Descriptions below are taken from QMF2 API Proposal 31 | *
32 |  * METHOD_RESPONSE: The METHOD_RESPONSE WorkItem is generated in response to an asynchronous invokeMethod made
33 |  *                  by a QmfConsoleData object.
34 |  *
35 |  *                  The getParams() method of a METHOD_RESPONSE WorkItem will return a MethodResult object.
36 |  *                  The getHandle() method returns the reply handle provided to the method call.
37 |  *                  This handle is merely the handle used for the asynchronous response, it is not associated
38 |  *                  with the QmfConsoleData in any other way.
39 |  * 
40 | * @author Fraser Adams 41 | */ 42 | 43 | public final class MethodResponseWorkItem extends WorkItem 44 | { 45 | /** 46 | * Construct a MethodResponseWorkItem. Convenience constructor not in API 47 | * 48 | * @param handle the reply handle used to associate requests and responses 49 | * @param params the MethodCallParams used to populate the WorkItem's param 50 | */ 51 | public MethodResponseWorkItem(final Handle handle, final MethodResult params) 52 | { 53 | super(WorkItemType.METHOD_RESPONSE, handle, params); 54 | } 55 | 56 | /** 57 | * Return the MethodResult stored in the params. 58 | * @return the MethodResult stored in the params. 59 | */ 60 | public MethodResult getMethodResult() 61 | { 62 | return (MethodResult)getParams(); 63 | } 64 | } 65 | 66 | -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2/src/main/java/org/apache/qpid/qmf2/console/ObjectUpdateWorkItem.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | * 20 | */ 21 | package org.apache.qpid.qmf2.console; 22 | 23 | import java.util.Map; 24 | 25 | // QMF2 Imports 26 | import org.apache.qpid.qmf2.common.Handle; 27 | import org.apache.qpid.qmf2.common.WorkItem; 28 | 29 | /** 30 | * Descriptions below are taken from QMF2 API Proposal 31 | *
32 |  * OBJECT_UPDATE:  The OBJECT_UPDATE WorkItem is generated in response to an asynchronous refresh made by
33 |  *                 a QmfConsoleData object.
34 |  *
35 |  *                 The getParams() method of an OBJECT_UPDATE WorkItem will return a QmfConsoleData.
36 |  *                 The getHandle() method returns the reply handle provided to the refresh() method call.
37 |  *                 This handle is merely the handle used for the asynchronous response, it is not associated
38 |  *                 with the QmfConsoleData in any other way.
39 |  * 
40 | * @author Fraser Adams 41 | */ 42 | 43 | public final class ObjectUpdateWorkItem extends WorkItem 44 | { 45 | /** 46 | * Construct a ObjectUpdateWorkItem. Convenience constructor not in API 47 | * 48 | * @param handle the reply handle used to associate requests and responses 49 | * @param params the QmfConsoleData used to populate the WorkItem's param 50 | */ 51 | public ObjectUpdateWorkItem(final Handle handle, final QmfConsoleData params) 52 | { 53 | super(WorkItemType.OBJECT_UPDATE, handle, params); 54 | } 55 | 56 | /** 57 | * Return the QmfConsoleData stored in the params. 58 | * @return the QmfConsoleData stored in the params. 59 | */ 60 | public QmfConsoleData getQmfConsoleData() 61 | { 62 | return (QmfConsoleData)getParams(); 63 | } 64 | } 65 | 66 | -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2/src/main/java/org/apache/qpid/qmf2/console/SubscribeIndication.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | * 20 | */ 21 | package org.apache.qpid.qmf2.console; 22 | 23 | import java.util.List; 24 | 25 | /** 26 | * Holds the result of a subscription data indication from the Agent. 27 | * 28 | * @author Fraser Adams 29 | */ 30 | public final class SubscribeIndication 31 | { 32 | private final String _consoleHandle; 33 | private final List _data; 34 | 35 | /** 36 | * Construct a SubscribeIndication from a consoleHandle and list of QmfConsoleData. 37 | * @param consoleHandle the handle containing the correlation ID. 38 | * @param data the list of QmfConsoleData to pass to the Console application. 39 | */ 40 | public SubscribeIndication(final String consoleHandle, final List data) 41 | { 42 | _consoleHandle = consoleHandle; 43 | _data = data; 44 | } 45 | 46 | /** 47 | * Return the console handle as passed to the createSubscription() call. 48 | * @return the console handle as passed to the createSubscription() call. 49 | */ 50 | public String getConsoleHandle() 51 | { 52 | return _consoleHandle; 53 | } 54 | 55 | /** 56 | * Return a list containing all updated QmfData objects associated with the Subscripion. 57 | * @return a list containing all updated QmfData objects associated with the Subscripion. 58 | */ 59 | public List getData() 60 | { 61 | return _data; 62 | } 63 | } 64 | 65 | 66 | 67 | -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2/src/main/java/org/apache/qpid/qmf2/console/SubscriptionIndicationWorkItem.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | * 20 | */ 21 | package org.apache.qpid.qmf2.console; 22 | 23 | import java.util.Map; 24 | 25 | // QMF2 Imports 26 | import org.apache.qpid.qmf2.common.Handle; 27 | import org.apache.qpid.qmf2.common.WorkItem; 28 | 29 | /** 30 | * Descriptions below are taken from QMF2 API Proposal 31 | *
32 |  * SUBSCRIPTION_INDICATION: The SUBSCRIPTION_INDICATION WorkItem signals the arrival of an update to subscribed
33 |  *                          data from the Agent. 
34 |  *
35 |  *                          The getParams() method of a SUBSCRIPTION_INDICATION  WorkItem will return an instance
36 |  *                          of the SubscribeIndication class. The getHandle() method returns null.
37 |  * 
38 | * @author Fraser Adams 39 | */ 40 | 41 | public final class SubscriptionIndicationWorkItem extends WorkItem 42 | { 43 | /** 44 | * Construct a SubscriptionIndicationWorkItem. Convenience constructor not in API 45 | * 46 | * @param params the SubscribeParams used to populate the WorkItem's param 47 | */ 48 | public SubscriptionIndicationWorkItem(final SubscribeIndication params) 49 | { 50 | super(WorkItemType.SUBSCRIPTION_INDICATION, null, params); 51 | } 52 | 53 | /** 54 | * Return the SubscribeIndication stored in the params. 55 | * @return the SubscribeIndication stored in the params. 56 | */ 57 | public SubscribeIndication getSubscribeIndication() 58 | { 59 | return (SubscribeIndication)getParams(); 60 | } 61 | } 62 | 63 | -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2/src/main/java/org/apache/qpid/qmf2/console/doc-files/Console.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/qpid/61e6c03338f3bd20a62590baa89a36bffeb32859/qpid/tools/src/java/qpid-qmf2/src/main/java/org/apache/qpid/qmf2/console/doc-files/Console.png -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2/src/main/java/org/apache/qpid/qmf2/console/doc-files/QmfEventListenerModel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/qpid/61e6c03338f3bd20a62590baa89a36bffeb32859/qpid/tools/src/java/qpid-qmf2/src/main/java/org/apache/qpid/qmf2/console/doc-files/QmfEventListenerModel.png -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2/src/main/java/org/apache/qpid/qmf2/console/doc-files/Subscriptions.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/qpid/61e6c03338f3bd20a62590baa89a36bffeb32859/qpid/tools/src/java/qpid-qmf2/src/main/java/org/apache/qpid/qmf2/console/doc-files/Subscriptions.png -------------------------------------------------------------------------------- /qpid/tools/src/java/qpid-qmf2/src/main/java/org/apache/qpid/qmf2/console/doc-files/WorkQueueEventModel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/qpid/61e6c03338f3bd20a62590baa89a36bffeb32859/qpid/tools/src/java/qpid-qmf2/src/main/java/org/apache/qpid/qmf2/console/doc-files/WorkQueueEventModel.png --------------------------------------------------------------------------------