fatc2 an object oriented framework for developing fault
play

FaTC2: An Object-Oriented Framework for Developing Fault-Tolerant - PowerPoint PPT Presentation

Institute of Computing UNICAMP - Brazil FaTC2: An Object-Oriented Framework for Developing Fault-Tolerant Component-Based Systems Fernando J. Castor de Lima Filho Paulo Asterio de C. Guerra Ceclia Mary F. Rubira {fernando, asterio,


  1. Institute of Computing – UNICAMP - Brazil FaTC2: An Object-Oriented Framework for Developing Fault-Tolerant Component-Based Systems Fernando J. Castor de Lima Filho Paulo Asterio de C. Guerra Cecília Mary F. Rubira {fernando, asterio, cmrubira}@ic.unicamp.br ICSE 2003 – Workshop on Software Architectures for Dependable Systems 1

  2. Motivation The construction of systems with high dependability requirements out of software components represents a major challenge � Few assumptions can be made about the level of confidence of off-the-shelf components � An architectural approach is required Exception handling is a well-known technique for leveraging the task of incorporating fault tolerance into software systems 2

  3. Motivation (2) Component-based systems introduce challenges which are not addressed by traditional (language- based) exception handling systems (EHSs) Some of these challenges are: � Traditional EHSs lack support for attaching exception handlers to architectural elements (components, connectors, configurations) � In an architecture, exception propagation does not necessarily follow the method invocation chain � An architectural-level EHS should support the attachment of handlers to components without requiring modifications to them 3

  4. Objectives To create an architectural-level EHS which leverages the construction of fault-tolerant component-based systems To devise a reusable implementation of the EHS by means of an object-oriented framework � Based on the concept of idealised fault-tolerant component 4

  5. Idealised Fault-Tolerant Component Service Normal Interface Failure Requests Responses Exceptions Exceptions Recovery Normal Abnormal Activity Activity Local Exceptions Service Normal Interface Failure Requests Responses Exceptions Exceptions 5

  6. C2 Architectural Style We use the C2 architectural style in order to represent component-based systems � Integration of heterogeneous off-the-shelf components A C2 architecture is composed by components, connectors and interconnections � Layered � Elements in an architecture communicate by means of asynchronous messages � Each component may have its own control thread Tools which support the development of C2 applications: � ArchStudio � C2.FW framework 6

  7. A Simple C2 Architecture Component 3 Component 4 Notifications Connector 2 Component 2 Connector 1 Component 1 Requests 7

  8. Overview of FaTC2 An extension of the Java TM version of the C2.FW framework � C2.FW lacks support for fault tolerance. Introduces forward error recovery in the original framework by means of an EHS Exception + = FaTC2 C2.FW Handling System FaTC2 is based on the concept of idealised C2 component (iC2C) 8

  9. Idealised C2 Component A structuring concept for the incorporation of exception handling in component-based systems Equivalent, in structure and behavior, to the idealised fault-tolerant component Defined according to the C2 style 9

  10. Overall Structure of an iC2C iC2C_top Normal behavior & Error detection NormalActivity iC2C_internal Error diagnosis & recovery AbnormalActivity iC2C_bottom 10

  11. Description of FaTC2 The concept of iC2C is employed for defining exception handling contexts � NormalActivity component: normal behavior and error detection � AbnormalActivity component: error treatment Connections between normal and abnormal parts are managed by FaTC2 � Developers focus on implementing the normal and abnormal behavior of the system � Abstracts the interaction protocol 11

  12. Description of FaTC2 (2) iC2C_top NormalActivity Provided by the application developer iC2C_internal AbnormalActivity iC2C_bottom 12

  13. Description of FaTC2 (3) iC2C_top NormalActivity Provided by iC2C_internal FaTC2 AbnormalActivity iC2C_bottom 13

  14. Exception Handling at the Architectural Level FaTC2 defines an architectural-level EHS for component-based systems Main features : � Separates exception handlers from normal behavior � Handlers may be attachted to components, connectors and configurations � Exception propagation according to the execution flow of the application 14

  15. Exception Definition Architectural exceptions are data objects implemented as simple Java exceptions FaTC2 wraps exceptions as C2 notifications 15

  16. Handler Definition and Attachment The AbnormalActivity component of an iC2C defines an architectural-level exception handler Handlers may be attached to components, connectors and configurations FaTC2 supports the definition of multiple exception-handling contexts 16

  17. Handler Definition and Attachment (3) Normal iC2C_top behavior Internal exception handlers iC2C_internal External exception handlers AbnormalActivity iC2C_bottom 17

  18. Handler Definition and Attachment (2) iC2C_top A C2 configuration iC2C_internal Exception handlers for the whole AbnormalActivity configuration iC2C_bottom 18

  19. Exception Propagation (...) Normal Activity AbnormalActivity External iC2C (...) 19

  20. Exception Propagation (...) Service Request Normal Activity AbnormalActivity External iC2C (...) 20

  21. Exception Propagation (...) Exception Raised Normal Activity AbnormalActivity External iC2C (...) 21

  22. Exception Propagation (...) Unable to handle exception. Re-raising Normal Activity AbnormalActivity External iC2C (...) 22

  23. Exception Propagation (...) Unable to Normal handle Activity exception. Re-raising AbnormalActivity External iC2C (...) 23

  24. Continuation of the Flow of Control Exception (...) handled successfully. Returning to normal Normal Green iC2C receives Activity return-to-normal request AbnormalActivity External iC2C (...) 24

  25. Continuation of the Flow of Control (...) The NormalActivity component of the green iC2C handles the request Normal Activity AbnormalActivity External iC2C (...) 25

  26. FaTC2 and C2.FW <<Interface>> <<Interface>> Component DelegateBrick (...) AbstractC2DelegateBrick Original (C2.FW) <<Interface>> IC2CBrick <<Interface>> IAbnormalActivityComponent INormalActivityComponent AbstractNormalActivityComponent IC2CBottomConnector IC2CTopConnector AbstractAbnormalActivityComponent IC2CCompositeBrick IC2CInternalConnector IC2C Extension FaTC2 26

  27. Conclusions Our contributions: � Definition of an architectural-level EHS for component-based applications � Construction of a reusable implementation for this EHS by means of the FaTC2 framework � Extension of the C2.FW framework with forward error-recovery Architectural-level exception handling is not a replacement for language-level exception handling 27

  28. Work in Progress Asynchronous iC2C Some of the features defined by the EHS are still not supported by FaTC2 � Hierarchical handler search � Attachment of handlers to arbitrary configurations Evaluation of the EHS 28

  29. Contact Information Fernando J. Castor de Lima Filho fernando@ic.unicamp.br Paulo Asterio de Castro Guerra asterio@ic.unicamp.br Cecília Mary Fischer Rubira cmrubira@ic.unicamp.br 29

  30. Related Work [Cook:1999:HRU] [Issarny:2001:ABE] [Garcia:1999:EHM] [Lee:1990:FTP] [Garcia:2001:CSE] [Medvidovic:1997:ROS] [Guerra:2002:IFT] [Rakic:2001:ICO] [Guerra:2003:FTA] [Saridakis:1999:FTS] [Guerra:2003:ICS] [Stavridou:1998:PDS] 30

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend