summaryrefslogtreecommitdiff
path: root/java/broker
Commit message (Collapse)AuthorAgeFilesLines
* QPID-2002 : Completion of BrokerLoggingTest, the shutdown tests have been ↵Martin Ritchie2009-08-065-12/+100
| | | | | | excluded due to QPID-2031. An update to the LogMessages.vm templates and ApplicationRegistry was requried. This is because BrokerMessages is loaded before the ApplicationRegistry is initialised. As a result the NullApplicationRegistry is created which should not be used. The AR is loaded to discover the current Locale. There were a couple of options here. Either always use the Default Locale and have the AR loading set that or add the ability to check if the AR has been configured. I chose the latter as knowing if an AR exists may be useful for our testing framework. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@801575 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2002 : Updates to Test ARs to correctly remove the CurrentActor on ↵Martin Ritchie2009-08-065-9/+46
| | | | | | close. Update to CFAR to ensure that an Actor is set during shutdown. Update to TestLogActor's log Name and corrected CurrentActorTest's testname. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@801573 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2002: MessageStore Logging , DerbyMS Does not have Queue Recovery ↵Martin Ritchie2009-08-066-53/+104
| | | | | | logging just yet as its approach to recovery does not provide the requried details. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@801572 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2002 : Javadoc'd CurrentActorMartin Ritchie2009-08-061-1/+55
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@801571 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2002 : Renamed TestBlankActor to TestLogActor for more general use in ↵Martin Ritchie2009-08-062-2/+2
| | | | | | NullApplicationRegistry git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@801568 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2002, QPID-2012 : Provide Broker Startup Logging using a ↵Martin Ritchie2009-08-065-48/+189
| | | | | | SystemOutMessageLogger until we have loaded the main configuration and then re-initialise with that configuration git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@801567 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2002 : Add Queue Logging Tests.Martin Ritchie2009-08-061-3/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@801564 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2028 : Ensure all Non QpidTestCase System tests correctly clean up by ↵Martin Ritchie2009-08-0630-90/+226
| | | | | | | | removing the ApplicationRegistry they create. The biggest offenders are the broker tests which are not pure unit tests. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@801561 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2002 : Add Queue Creation loggingMartin Ritchie2009-08-061-11/+38
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@801557 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2002 : Updates to integrate Logging with test ant test runs.Martin Ritchie2009-08-037-67/+72
| | | | | | | | | | | MaxChannelsTest/AMQProtoSessionMBean - Ensured CurrentActor is correctly set and removed. Log4jMessageLogger - Correctly Set log level to ensure messages are logged. AbstractActor - Null validation of RootLogger Log4jMessasgeLoggerTest - Updated and removed erroneous tests that were based on inherited log levels. AbstractTestLogSubject - Updated to correctly parse IP given by the use of InternalTestProtocolSession TestApplicationRegistry - Created RootMessageLogger git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@800374 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1230 : Removed MockProtocolSession, Updated all references to use ↵Martin Ritchie2009-08-0318-594/+309
| | | | | | | | InternalTestProtocolSession IPTS was also updated to take a VirtualHost parameter that is then used to configured the AMQProtocolSession git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@800372 13f79535-47bb-0310-9956-ffa450edef68
* Removed unused method that only throws an ExceptionMartin Ritchie2009-08-031-6/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@800371 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2002: Added testing of Channel LoggingMartin Ritchie2009-08-036-9/+57
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@800368 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2002 : Added message(LogMessage message) to the LogActor Interface and ↵Martin Ritchie2009-08-032-1/+23
| | | | | | the ability to retrieve the RootMessageLogger git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@800366 13f79535-47bb-0310-9956-ffa450edef68
* Removed stale constructor, updated two test cases to use other constructor, ↵Martin Ritchie2009-08-033-17/+2
| | | | | | there is no impact as the tests were passing in null for the removed parameter git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@800365 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2002 : Change CON-1001 to make client ID optional so that the various ↵Martin Ritchie2009-08-034-35/+79
| | | | | | | | | | | | | stages of Open can be correctly logged. Client ID is not initially provided so we would be unable to log the protocol negotiation without removing this Modified ProtocolVersion Template to include a toString value to make it easier to log. There are two templates to update one in gentools/templ.java and one in common/templates Exposed verification methods to allow systests to reuse the code git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@800363 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2002 : Enable LogActors to log solely about themselves. Situations such ↵Martin Ritchie2009-08-033-0/+22
| | | | | | as startup would necesitate this, or when a new connection is being created. The addition of a ConnetionSubject would be unnecessary. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@800362 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2001 : Corrected MSLSubject, extracting the Store from the vhost fails ↵Martin Ritchie2009-08-032-3/+4
| | | | | | to retrieve the right value during startup. So better to explicitly specify the vhost and message store. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@800360 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2001 : Update based on feedback from Marnie to be mindful of the impact ↵Martin Ritchie2009-08-031-8/+20
| | | | | | | | of message creation. Messages that do not need a message formatter now nolonger use the message formater. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@800358 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2001 : Added missing MessageStoreLogSubject and corresponding testMartin Ritchie2009-08-032-0/+103
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@800357 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2011 : Updated AlertingTest to use new LogMonitoring class and ↵Martin Ritchie2009-08-031-2/+2
| | | | | | | | | | | | | | | | corrected failures in test. Failures corrected by: - Ensuring message count is as expected after first publication - Validating that the max count alert level is correctly changed (when InVM) - Validate that the log file does not contain alerts after restart - Validate that alerting occurs after extra messages have been published - Modified QPID_WORK (using QTC.setSystemProperty so it is only set for that test run) to ensure each test has a clean store. Additions to QpidTestCase: - Ability to enable persistence on a given virtualhost. Currently it tries to set the JBoss BerkelyDB store failing back to Qpid's DerbyDB store. - Ability to set properties in the configuration file, this involves re-writting the config files so that both inVM and external java brokers will correctly function with the desired configuration. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@800356 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2000: add a method to the VirtualHostManager MBean to retrieve a Map ↵Robert Gemmell2009-07-241-1/+26
| | | | | | keyed by Queue names in the vhost, with values indicating their respective depths in bytes git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@797473 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2001 : Update to provide control of options in messages.Martin Ritchie2009-07-2410-115/+675
| | | | | | | | | Update to improve formatting of generated code Inclusion of more documentation Defaulted generation to use US locale Removed duplicate messages in MST that were added to while the option solution was being discussed. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@797421 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2005: make the fanout exchange mbean return a single wildcard binding ↵Robert Gemmell2009-07-241-5/+15
| | | | | | | | | entry with all queues listed. Modify the management console to auto-select the wildcard binding when the exchange is viewed. Also, suppress the warning on entering no binding key when creating a fanout exchange binding, but auto-fill the field with the wildcard for clarity. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@797387 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2001 : Fully Tested LogMessagesMartin Ritchie2009-07-2313-7/+814
| | | | | | | Added TestBlankSubject to be able to easily identify log message Updatd LogMessasges based on issues found. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@797050 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1992 : Fixed spelling errorsMartin Ritchie2009-07-232-4/+29
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@797049 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2001 : Correct code style of generated filesMartin Ritchie2009-07-232-32/+139
| | | | | | QPID-2001 : Added documentation and replaced Integer with Number. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@797048 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2001 : Add Default en_US messages logging along with a Velocity ↵Martin Ritchie2009-07-225-35/+454
| | | | | | Template to generate static <Type>Messages classes that can be used for compile time vaildation of logging. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@796800 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2001 : Provide a locale configuration option to allow the localisation ↵Martin Ritchie2009-07-223-0/+76
| | | | | | of logging as part of providing fixed log messages git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@796799 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1992 : Corrected duplication in ServerConfiguration for StatusUpdates ↵Martin Ritchie2009-07-225-85/+32
| | | | | | | | and so renamed method getStatusUpdatesEnabled Ensured tested in ServerConfiguration[File]Test and removed standalone test that replicated functionality. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@796798 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1980 : Update to ServerConfiguration provided by Keith Chow, Updated ↵Martin Ritchie2009-07-223-40/+46
| | | | | | | | ServerconfigurationTest Added ServerConfigurationFileTest that verifies the string value is loadable from the systest config file. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@796796 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1992 : Removed couple of unused importsMartin Ritchie2009-07-222-5/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@796795 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1967: collect possible Exchange Type values from the broker instead of ↵Robert Gemmell2009-07-221-0/+20
| | | | | | relying on default set within the management console git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@796693 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1992 : Addition of new Broker Logging FrameworkMartin Ritchie2009-07-2258-63/+3457
| | | | | | | | | | | | | | | | | | | | | | | | | | | Provided static CurrentActor for accessing ThreadLocal. Included Test to validate setting of ThreadLocals. Added Test for AMQPActor Added getRootMessageLogger() to IApplicationRegistry Adjusted *ProtocolSessions to start counting at 0. Allowed Setting of Vhost on the MockProtocolSession Created a fixed Principle in MockProtocolSession Changes to MockProtocolSession, prevent NPEs when the AMQPActor creates its log string. Converted CurrentActor to use a Stack allowing a variety of actors to take their turn on a thread. Improved package structure Added testing for Actors Moved FileMonitorTools functionality to FileUtils and provided a Test Converted Log4jMessageLoggerTest to a proper UnitTest Moved Test cases to test package Updated other broker tests to set the authenticated user before setting the virtualhost, Whilst the logging could output null as the username it would be better if the tests correctly set the authorizedID. Update to include tests for disabled logging Fully tested LogSubjects Updated MockAMQQueue to be able to take a Virtualhost as per a normal Queue. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@796650 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1981: Expose copyMessages() queue operation through the JMX MBean interfaceRobert Gemmell2009-07-211-0/+17
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@796204 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1968: Expose deleteMessages() queue operation through the JMX MBean ↵Robert Gemmell2009-07-212-1/+63
| | | | | | interface, add test for deleteMessages() git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@796203 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1961: expand viewMessages() queue operation to support long parameters, ↵Robert Gemmell2009-07-216-9/+157
| | | | | | deprecate previous int version. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@796196 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1990: add the messages queue position to the viewMessages() operation ↵Robert Gemmell2009-07-171-2/+4
| | | | | | results, update management console QueueOperations tab accordingly git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@795089 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1946: add server information mbean to expose version info for the ↵Robert Gemmell2009-07-162-0/+76
| | | | | | broker and its JMX management API git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@794660 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1941: ensure old queue entry is deleted as well as dequeued, so it is ↵Robert Gemmell2009-07-131-1/+1
| | | | | | not later gathered by the viewMessages() method which checks for non-deletion git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@793535 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1944: expose Connection tabular/composite data key values through ↵Robert Gemmell2009-07-131-6/+4
| | | | | | management interface git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@793533 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1943: expose exchange mbeans tabular/composite key values through the ↵Robert Gemmell2009-07-135-18/+9
| | | | | | management interface git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@793531 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1937: add an admin user to the example password fileRobert Gemmell2009-07-131-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@793506 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1932: expose Queue tabular/composite key values through the management ↵Robert Gemmell2009-07-131-11/+10
| | | | | | interface git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@793504 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1930: expose UserManagement composite/tabular type keys through the ↵Robert Gemmell2009-07-131-9/+3
| | | | | | management interface for reference, and add warning about future alterations to ensure compatibility git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@793499 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1927: move mbean interfaces to management-common, make broker module ↵Robert Gemmell2009-07-1130-1102/+40
| | | | | | | | | depend on management-common, modify build system to copy management-common.jar when required (eg for binary releases). QPID-1928: remove unused AMQException throws clause and import from ManagedQueue,UserManagement. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@793206 13f79535-47bb-0310-9956-ffa450edef68
* updated config paths to match yesterdays moving of test_resourcesRafael H. Schloming2009-07-093-3/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@792649 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1962: Lookup hostname, don't rely on localhost being canonical for ↵Aidan Skinner2009-06-291-2/+2
| | | | | | 127.0.0.1 git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@789356 13f79535-47bb-0310-9956-ffa450edef68
* Put the default test profile back to using MemoryMessageStore for now, add ↵Aidan Skinner2009-06-262-3/+141
| | | | | | java-derby and config-systests-derby.xml for testing purpouses. Allow the config file to be specified in the test profile, default to config-systests.xml. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@788680 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1924: Make DerbyMessageStore honor $QPID_WORK.Aidan Skinner2009-06-221-1/+1
| | | | | | | | DerbyMessageStore: pick up QPID_WORK FailoverBaseCase: set QPID_WORK for the second broker QpidTestCase: pass on QPID_WORK git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@787254 13f79535-47bb-0310-9956-ffa450edef68