Package g4ds :: Module messagehandler
[show private | hide private]
[frames | no frames]

Module g4ds.messagehandler

Handles both, incoming at outgoing messages in the first place.

Grid for Digital Security (G4DS)

For incoming messages a class GlobalOutoingMessageHandler is provided. Only the instance provided by the function getGlobalOutgoingMessageHandler should be used for accessing it. (Singleton). It provides functions for sending both service and control messages.

For outgoing messages there is the class called GlobalMessageDispatcher. Whenever a new message arrives, it should be passed to the function GlobalDispatcher.dispatch inside it.

Author: Michael Pilgermann

Contact: mailto:mpilgerm@glam.ac.uk

License: GPL (General Public License)

Classes
GlobalDispatcher First instance for dispatching messages.
GlobalOutoingMessageHandler Handler for outgoing messages.
MessageContextController Stores all information about incoming messages.

Function Summary
GlobalDispatcher getGlobalDispatcher()
Singleton implementation.
GlobalOutoingMessageHandler getGlobalOutgoingMessageHandler()
Singleton implementation.
MessageContextController getMessageContextController()
Singleton implementation.

Variable Summary
GlobalDispatcher _globalDispatcher: Singleton - the only instance ever of the GlobalDispatcher class
GlobalOutoingMessageHandler _globalOutgoingMessageHandler: Singleton - the only instance ever of the GlobalOutoingMessageHandler class
NoneType _messageContextController = None                                                                  

Function Details

getGlobalDispatcher()

Singleton implementation.
Returns:
The instance for the global dispatcher class
           (type=GlobalDispatcher)

getGlobalOutgoingMessageHandler()

Singleton implementation.
Returns:
The instance for the global outgoing message handler class
           (type=GlobalOutoingMessageHandler)

getMessageContextController()

Singleton implementation.
Returns:
The instance for the message context controller
           (type=MessageContextController)

Variable Details

_globalDispatcher

Singleton - the only instance ever of the GlobalDispatcher class
Type:
GlobalDispatcher
Value:
None                                                                  

_globalOutgoingMessageHandler

Singleton - the only instance ever of the GlobalOutoingMessageHandler class
Type:
GlobalOutoingMessageHandler
Value:
None                                                                  

_messageContextController

Type:
NoneType
Value:
None                                                                  

Generated by Epydoc 2.0 on Sat Oct 22 22:52:47 2005 http://epydoc.sf.net