Class NonFunctionalArcRepositoryServer

    • Constructor Detail

      • NonFunctionalArcRepositoryServer

        public NonFunctionalArcRepositoryServer​(ArcRepository ar)
        Creates and adds a ArcRepositoryMessageHandler as listener on the "TheArcrepos"-queue.
        Parameters:
        ar - the ArcRepository
    • Method Detail

      • onMessage

        public void onMessage​(javax.jms.Message msg)
        Description copied from class: ArchiveMessageHandler
        Unpacks and calls accept() on the message object.

        This method catches all exceptions and logs them.

        Specified by:
        onMessage in interface javax.jms.MessageListener
        Overrides:
        onMessage in class ArchiveMessageHandler
        Parameters:
        msg - a ObjectMessage
      • cleanup

        public void cleanup()
        Description copied from interface: CleanupIF
        Used to clean up a class from within a shutdown hook. Must not do any logging. Program defensively, please.
        Specified by:
        cleanup in interface CleanupIF