Home Next Index

matt

Overview

module matt

This Ice file outlines the distributed components for a MATT session. TIG participants are required to implement the roles::Participant class, which is expected to implement the setMailbox method. Participants then have the option to either implementing an eventListener which requires an onEvent method to be implemented or to devise some method by which they poll a mailbox for new messages. Generated code for C++, C#, Java, Python and Visual Basic will be provided and arrangements to support other languages can be made. Sample code will also be provided for creating proxies to a Mediator. Usage: 1. Participant instances connect to a Mediator service 2. Once a sufficient number of Participants have register the Mediator will assign mailboxes to each 3. Once a Participant has a mailbox assigned they may begin: Read/Write Operations on that Mailbox until the Mailbox is closed. They may register an EventListener while the Mailbix is active. NOTE: A Mailbox may close for the following reasons: a. The allotted Time To Live (TTL) has been reached b. A registered EventListener fails to be responsive(*) 4. Once the Mailbox is closed/deactivated it will not be reopened. 5. Participants will have to re-register with a Mediator service in order to obtain a new Mailbox Please contact Marc Allen for more information: matt@1bdi.co.uk

Module Index

messaging
This module handles communications between TIG participants
roles
There are two roles in TIG, this module encapsulates these

Exception Index

MattAlreadyListeningException
Exception thrown because there is already an EventListener registered
MattException
Exception base type
MattListenException
Base Listen Exception - something went trying to (add|remove) a listener
MattNoMessageException
This exception is thrown when an RMI fails because there are not pending messages
MattNotActiveException
This exception is thrown when an RMI occurs on an inactive entity
MattNotListeningException
Exception thrown because there was no previous EventListener to unregister

Home Next Index