Presentation is loading. Please wait.

Presentation is loading. Please wait.

3/4/98 PWG Presentation - Events and Notification1 Events and Notification Scott Isaacson.

Similar presentations


Presentation on theme: "3/4/98 PWG Presentation - Events and Notification1 Events and Notification Scott Isaacson."— Presentation transcript:

1 3/4/98 PWG Presentation - Events and Notification1 Events and Notification Scott Isaacson

2 3/4/98 PWG Presentation - Events and Notification2 Agenda zOMG yEvent Channel yNotification Channel zThe Open Group (TOG) zJava Implementations zNDPS

3 3/4/98 PWG Presentation - Events and Notification3 OMG Basics Event ChannelTyped Event Channel Notification Channel - untyped events - push/pull - connect/disconnect - typed events Typed Notification Channel Networked Channel - structured events - event objects - filtering - time stamping - delivery QoS priority time-out retry persistent - durable conns. - transactions - security - named connections - routing - admin topology batching stats - typed events

4 3/4/98 PWG Presentation - Events and Notification4 OMG Interfaces zQoS yUNSUPPORTED_PROPERTY yUNAVAILABLE_PROPERTY yUNSUPPORTED_VALUE yUNAVAILABLE_VALUE yBAD_PROPERTY yBAD_TYPE yBAD_VALUE

5 3/4/98 PWG Presentation - Events and Notification5 OMG Interfaces zFilter zMappingFilter zFilterFactory zFilters: 4/15 pages of IDL zFilter Objects work on yAny, Structured, Typed zChannel -> Admin -> Proxy -> Message

6 3/4/98 PWG Presentation - Events and Notification6 OMG Events zEvent Transmission yAny, Structured, Sequences of Structured zClient chooses, Channel maps yAny -> Structured yStructured -> Any yetc.

7 3/4/98 PWG Presentation - Events and Notification7 Structured Events zEvent Header yFixed (domain, type, name) yVariable (set of properties) xpriority, start-time, stop-time, time-out zEvent Body yFilterable Event Fields (set of properties) yRemaining Body (OctetStream)

8 3/4/98 PWG Presentation - Events and Notification8 OMG Other zSystem Events yEvents on the Event Channel zConstraint Grammar yNOT: vh[3].name == priority AND vh[3].value >2 yYES: vh[priority] > 2 zRun time variables y$curtime; $priority IS vh[priority]

9 3/4/98 PWG Presentation - Events and Notification9 OMG Other cont. zQoS set at all levels: yPer Channel yPer Admin yPer Proxy yPer Message zsubscription_change zoffer_change zType Repository: event -> properties

10 3/4/98 PWG Presentation - Events and Notification10 TOG ztimely warning of impending problems znotifying system administrators of failing processes and system components zspeedily identifying root causes of problems in ever more complex systems zautomatically fixing problems before service levels are degraded zsupport application-specific events for cross-application correlation and communication z246 pages

11 3/4/98 PWG Presentation - Events and Notification11 TOG: Event Report zevent identification, category and subcategory zdate/time/timezone of origin zoriginating process (physical ID) zcomponent, subcomponent, module, subroutine, source code line, and so on, identifiers zpriority and severity code ztext message zend-user device identifier.

12 3/4/98 PWG Presentation - Events and Notification12 TOG: Notification Methods zemail message notification zbeeper called zlog file entry posted zrow inserted into some table in some database zmanaged server stored-procedure execution

13 3/4/98 PWG Presentation - Events and Notification13 TOG: Methods cont. zSNMP alert raised zasynchronous desktop visual alert (for example, GUI pop-up) zvisual cue in iconic representations (for example, color change) zarbitrary program execution zinvoke management services at API level

14 3/4/98 PWG Presentation - Events and Notification14 TOG:Components zChannel zSupplier, Supplier Proxy zConsumer, Consumer Proxy zRepository yFiler, Schema, Event, Registered Clients zGateways to other event systems

15 3/4/98 PWG Presentation - Events and Notification15 TOG: Tasks zconfiguration zauthorization zregistration zconnection zdelivery zmaintenance.

16 3/4/98 PWG Presentation - Events and Notification16 TOG: Interfaces zthe Registration interface zthe Event Type interface zthe Supplier Interface zthe Filter Interface zthe Consumer Interface zthe Management Interface.

17 3/4/98 PWG Presentation - Events and Notification17 TOG: Gateways zSupport OMG zSupport SNMP zSupport CMIP zSupport XMP zSupport DCE

18 3/4/98 PWG Presentation - Events and Notification18 TOG: C Data Structures EVENT HEADER typedef struct ems_hdr_s_t { ems_eventid_t eventid; ems_origin_t origin; ems_severity_t severity; ems_utc_t received; ems_utc_t delivered; ems_priority_t priority; } ems_hdr_t; EVENT BODY typedef struct ems_event_s_t { ems_hdr_t header; ems_ulong_int count; ems_attribute_t item[1]; } ems_event_t;

19 3/4/98 PWG Presentation - Events and Notification19 TOG: Filters z#define ems_c_attr_op_eq (0) z#define ems_c_attr_op_gt (1) z#define ems_c_attr_op_lt (2) z#define ems_c_attr_op_ge (3) z#define ems_c_attr_op_le (4) z#define ems_c_attr_op_ne (5) z#define ems_c_attr_op_bitand (6) z#define ems_c_attr_op_substr (7)

20 3/4/98 PWG Presentation - Events and Notification20 JAVA zJavaSoft: Java Message Service yEvents Messages not Email Messages zJava Message Service Technology: Leveraging Messaging Systems for Enterprise Applications zSpeaker: Mark Hapner, Senior Staff Engineer, Sun Microsystems, Inc.

21 3/4/98 PWG Presentation - Events and Notification21 http://java.sun.com/javaone/ javaone98/tracks.html zAbstract: Enterprise infrastructures rely increasingly on messsage-oriented middleware. The Java Message Service (JMS) technology is the Java Enterprise API technology for messaging. JMS provides capabilities for reliable queues and publish/subscribe messaging. Reliable queues provide the basis for asynchronous task management within an enterprise. Publish/subscribe functionality supports dynamic interconnection of information sources with subscribers interested in that information. This talk describe the JMS API technology and its uses in modern enterprises.

22 3/4/98 PWG Presentation - Events and Notification22 Java: Open Horizon zAmbrosia yClients xPublisher/Subcriber (push) xSolicit/Response (query) xRequest/Reply (pull) yBroker xIntermediary y100% Java

23 3/4/98 PWG Presentation - Events and Notification23 Ambrosia Classes and Interfaces zConnection zCredentials zEvenlope zMessage zMessageHandler zPublication zSession zSubject zSubscription

24 3/4/98 PWG Presentation - Events and Notification24 Connection zauthenticate (Credentials) zconnect(Broker) zdisconnet(boolean forceUnSubscribe) zaddMessageHandler(MH) zremoveMessageHandler(MH) zgetSubjetTree() zgetSubscriptions()

25 3/4/98 PWG Presentation - Events and Notification25 Credentials zConstructor yString userId yString password zclear() zgetUid() zset() zacquire() - privateKey

26 3/4/98 PWG Presentation - Events and Notification26 Envelope zgetMessage() zgetID() zgetLabel()

27 3/4/98 PWG Presentation - Events and Notification27 Message zbyte[] getBody() zsetBody(byte[]) zgetPublishers() zgetSubject() zString toString()

28 3/4/98 PWG Presentation - Events and Notification28 MessageHandler zBind() zunbind() zgetBindings() zreplaceHandler()

29 3/4/98 PWG Presentation - Events and Notification29 Publication zCancel() zgetEnvelope() zjoin() zstart() zsuspend()

30 3/4/98 PWG Presentation - Events and Notification30 Session zgetConnection() zisGuaranteedAllowed() zisPublishAllowed() zisSubscribeAllowed() zpublish(), subscribe() zrequest(), reply() (solicit(MH)) zTransaction Support

31 3/4/98 PWG Presentation - Events and Notification31 Subject zgetParent() zgetChildren() zgetName() zstocks.* zstocks.ACME zprinter.tray1.empty

32 3/4/98 PWG Presentation - Events and Notification32 Subscription zcancel() zgetDeliveryLabel() zjoin() zstart() zsuspend()

33 3/4/98 PWG Presentation - Events and Notification33 NDPS Event Notification Service (ENS) Goals zProvide extensible, asynchronous distribution channel for event data. ySupportive of diverse address schemes and delivery methods yTransport and platform neutral yLocalization friendly ySecure yEfficient in its use of network bandwidth

34 3/4/98 PWG Presentation - Events and Notification34 ENS Principles zNotification Protocol is a separable, general purpose protocol, it IS NOT just a subset of the Print protocol zUse a channel for scalability zThe service makes it possible for the client (not server) to localize/translate zUse mixed (human and machine) consumption models

35 3/4/98 PWG Presentation - Events and Notification35 No Channel Client Printer

36 3/4/98 PWG Presentation - Events and Notification36 Single Channel Client Printer

37 3/4/98 PWG Presentation - Events and Notification37 Communities of Interest: Multiple Channels Client Printer

38 3/4/98 PWG Presentation - Events and Notification38 Very Large Numbers of Clients Printer Clients

39 3/4/98 PWG Presentation - Events and Notification39 ENS Architecture Registration Request / Report 222-4096 Bill Notification Persistent Requests NDS Tree Notification Supplier Notification Consumer ENS

40 3/4/98 PWG Presentation - Events and Notification40 ENS Scenario 12a2b3456a6b6c6d6e 1. Printer Agent registers with Broker 2a. Print Job with Profile or 2b. Add Profile with Profile 3. Printer Agent remembers some interest 4. An event happens 5. Report the event 6. a) programmatic; b) log; c) email; d) pop-up; e) directed pop-up ENS profile T

41 3/4/98 PWG Presentation - Events and Notification41 Finding a Broker zAdmin configuration yNamed directory (NDS) object zSLP yIP zSAP yIPX

42 3/4/98 PWG Presentation - Events and Notification42 Submitting a Profile zPrinter Agent only reports an event if there is some interest zProfile with Job (Security: User role) yJob and Printer events (printer only while Job is active) zProfile outside of Job (Security: Operator role) yPrinter and All Jobs

43 3/4/98 PWG Presentation - Events and Notification43 What is a Profile? zNotification Profile ypersistence yconsumer name ylanguage id ymethod oid ydelivery address yset of event objects

44 3/4/98 PWG Presentation - Events and Notification44 I18N zClient requests a language zReport Contains yIdentifiers yStrings xIn client preference if possible xIn server default config otherwise zRemote Identifier to String database yCached on client ySupport for any language

45 3/4/98 PWG Presentation - Events and Notification45 Types of Events zAbstract Events yPrinter xError, Warning, Report yJob xError, Warning, Report yOther zState Change yAny MIB Object - value change yInstrumented for MIB Alerts

46 3/4/98 PWG Presentation - Events and Notification46 UI and Profiles zUI for: yAll Printer events yAll Printer Error events ySpecific Printer Error events zWhen the media in tray 1 goes to 0 zObjects and Attributes

47 3/4/98 PWG Presentation - Events and Notification47 Event Report zEvent Report yevent type ycontaining class oid and id yfilter class oid yobject class oid and id yevent oid yevent attribute set ytime

48 3/4/98 PWG Presentation - Events and Notification48 NDPS: Publish/Subscribe with variations zMany (extensible) notification methods zSubscribe by proxy through the printer yInstead of finding Printer Agent AND Channel yJust find Printer Agent ySubscription is made zListener (programmatic) zGuaranteed zHalt the Service


Download ppt "3/4/98 PWG Presentation - Events and Notification1 Events and Notification Scott Isaacson."

Similar presentations


Ads by Google