CMS Error Handling in RCMS Error Handling in RCMS An Overview Francesco Lelli Francesco.lelli@lnl.infn.it L.N.L L.N.L D.S.I. Venezia Venezia D.S.I.
CMS Overview • Error Handler Principles • An Error Handling Framemork: Purpose & Functionality • Framework Customization L.N.L L.N.L D.S.I. Venezia Venezia D.S.I.
CMS Error Handling An Accademic Scenario: Error: DB Connection Broken Probably the DB Error: Clients App 1 Connection Error: DB is crashed Probably App 1 Broken Connection Broken is wrong Probably we have a App 2 DB Error: DB Network Connection Problem Broken App 3 Conclusion: • Error is “just a point of view” • We need to have a global point of view to try to be objective L.N.L L.N.L D.S.I. Venezia Venezia D.S.I.
CMS Error Handling Function Manager App 1 App 2 DB App 3 Consideration: • Error is “just a point of view” • We need to have a global point of view to try to be fair L.N.L L.N.L D.S.I. Venezia Venezia D.S.I.
CMS Handler in the RCMS context On-Line SUBSCRIBERS IMS IMS Publish Subscribe Persistent Display System SUBSCRIBERS Send to.. Collector Handler Handler Storage Function System Collector Manager Different Formats SOAP/XML Log Comands State Error Monitor Non XDaq Applications L.N.L L.N.L D.S.I. Venezia Venezia D.S.I.
CMS The Handler in the control tree Problem Solver Rule Discover Pub Sub Controller System Handler DM Tools DB Controller Controller Controller Handler Handler Handler L.N.L L.N.L D.S.I. Venezia Venezia D.S.I.
CMS Problem Solver, a quick view Problem Solver Rule Discover On line analysis, try to prevent Publish a system failure Subscribe System DM Tools DB Off line analysis, try to understand what happened during a system failure t - At t t + At X X X X X Y - Y L.N.L L.N.L D.S.I. Venezia Venezia D.S.I.
CMS Handler: how it works Known Format Known Format Display known Meaning Unknown Meaning Send to.. Handler Function Collector Manager Unknown Format Unknown Meaning Non XDaq Applications L.N.L L.N.L D.S.I. Venezia Venezia D.S.I.
CMS Handler: how it works (2) They wait for an external Set of API that allows the input and they “present” it brain to perform action to the brain Tomcat WSDL JMS Handler Manager Display Event Listener Send to.. Action Collector Brain Event Maker Listener Handler DB Event FM Handler Listener Collector Event Listener Implemented : Log (log4j, log4Cplus) • Collector Listener State (log4j, XMLRappresentation) Every possible algorithm can • Multicollector Listener be plugged:Jess based Error (CMSError, CBE, any other • Handler Listener systems, java classes, Neural XML rappresentation) • CMSError Simulator Networks, etc.. • CBE Simulator Monitor L.N.L L.N.L D.S.I. Venezia Venezia D.S.I.
CMS What the final user has to do Define his custom handling algorithm public void doSomething(); myHandlerBrain.doSomething(); L.N.L L.N.L D.S.I. Venezia Venezia D.S.I.
CMS What the final user can also do Define his custom Event Listener L.N.L L.N.L D.S.I. Venezia Venezia D.S.I.
CMS Technical Preview Content Technical Preview On 31/03/2005 Release versions: • Stand alone version (JavaDoc and User Guide) • Tomcat version (JavaDoc and User Guide) Messages API: • CBE messages format • Log4J&Log4Cplus messages format • CMSError schema (dummy) Event Listener Implemented: • Collector Event Listener • Multicollector Event Listener • Handler Event Listener • CBE messages Simulator Code Available on • CMSError schema Simulator CERN CVS L.N.L L.N.L D.S.I. Venezia Venezia D.S.I.
CMS Technical Preview Content (2) Technical Preview On 31/03/2005 Code Available on Remote Control GUI&UI: CERN CVS • WS&WSDL • JSP Action Maker API for: • Function Manager Invocation • Messages display • Send messages to a collector • Send messages to an Handler Working Examples: • Jess Brain Sample (logic programming) • 2 Brain Class Sample • Chess Brain Sample (you can play chess with Xdaq!) L.N.L L.N.L D.S.I. Venezia Venezia D.S.I.
CMS Spares L.N.L L.N.L D.S.I. Venezia Venezia D.S.I.
CMS Handler Comunication Run Control and Monitor Handler Farm Manager Sub Farm Sub Farm Sub Farm Manager 1 Manager 2 Manager 3 Configuration Stored in a XML File L.N.L L.N.L D.S.I. Venezia Venezia D.S.I.
CMS Handler Comunication(2) Run Control Comunication: and Monitor • Send to One Son Message: • Asynchronous Messages • JMS Object Messages • No XML Serialization Farm • Any Possible Format Manager • JMS Broker: SunMessageQueue3.5 Sub Farm Sub Farm Sub Farm Manager 1 Manager 2 Manager 3 L.N.L L.N.L D.S.I. Venezia Venezia D.S.I.
CMS Handler Comunication(3) Run Control Comunication: and Monitor • Send to One Son • Send to Father Message: • Asynchronous Messages • JMS Object Messages • No XML Serialization Farm • Any Possible Format Manager • JMS Broker: SunMessageQueue3.5 Sub Farm Sub Farm Sub Farm Manager 1 Manager 2 Manager 3 L.N.L L.N.L D.S.I. Venezia Venezia D.S.I.
CMS Handler Comunication(4) Run Control Comunication: and Monitor • Send to One Son • Send to Father Message: • Send to Children • Asynchronous Messages • JMS Object Messages • No XML Serialization Farm • Any Possible Format Manager • JMS Broker: SunMessageQueue3.5 Sub Farm Sub Farm Sub Farm Manager 1 Manager 2 Manager 3 L.N.L L.N.L D.S.I. Venezia Venezia D.S.I.
CMS Handler Comunication(5) Run Control Comunication: and Monitor • Send to One Son • Send to Father Message: • Send to Children • Asynchronous Messages • Send to All • JMS Object Messages • No XML Serialization Farm • Any Possible Format Manager • JMS Broker: SunMessageQueue3.5 Sub Farm Sub Farm Sub Farm Manager 1 Manager 2 Manager 3 L.N.L L.N.L D.S.I. Venezia Venezia D.S.I.
CMS Handler Comunication(6) Run Control Comunication: and Monitor • Send to One Son • Send to Father Message: • Send to Sons • Asynchronous Messages • Send to All • JMS Object Messages • Send to a Generic • No XML Serialization Farm Handler • Any Possible Format Manager • JMS Broker: SunMessageQueue3.5 Sub Farm Sub Farm Sub Farm Manager 1 Manager 2 Manager 3 L.N.L L.N.L D.S.I. Venezia Venezia D.S.I.
CMS Handler Comunication(7) Run Control Comunication: and Monitor • Send to One Son • Send to Father Message: • Send to Children • Asynchronous Messages • Send to All • JMS Object Messages • Send to a Generic • No XML Serialization Farm Handler • Any Possible Format Manager • Send to me • JMS Broker: SunMessageQueue3.5 Sub Farm Sub Farm Sub Farm Manager 1 Manager 2 Manager 3 L.N.L L.N.L D.S.I. Venezia Venezia D.S.I.
Recommend
More recommend