Lines Matching full:event

21  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
57 /*----------------------------------- Event ----------------------------------*/
60 * a device control event.
68 class Event
73 /** Event type */
75 /** Generic event notification. */
89 * Factory method type to construct an Event given
90 * the type of event and an NVPairMap populated from
91 * the event string received from devd.
93 typedef Event* (BuildMethod)(Type, NVPairMap &, const std::string &);
95 /** Generic Event object factory. */
98 static Event *CreateEvent(const EventFactory &factory,
102 * Returns the devname, if any, associated with the event
105 * \return True iff the event contained a devname
111 * event.
114 * \return True iff the event contained a devname
119 * Returns true iff this event refers to a disk device
126 * \return True iff the event contains a device with a physical
133 * event type.
135 * \param type The type of event to map to a string.
144 * \param name The key name to search for in this event instance.
147 * event, otherwise false.
164 * Get the type of this event instance.
166 * \return The type of this event instance.
171 * Get the original DevdCtl event string for this event.
173 * \return The DevdCtl event string.
178 * Convert the event instance into a string suitable for
181 * \return A string of formatted event data.
186 * Pretty-print this event instance to cout.
191 * Pretty-print this event instance to syslog.
200 * of this event.
202 virtual Event *DeepCopy() const;
205 virtual ~Event();
209 * consume the event.
211 * \return True if this event should be queued for later reevaluation
216 * Get the time that the event was created
221 * Add a timestamp to the event string, if one does not already exist
224 * routines first, so that they don't need the raw event string.
226 * \param[in,out] eventString The devd event string to modify
246 * \param type The type of event to create.
248 Event(Type type, NVPairMap &map, const std::string &eventString);
251 Event(const Event &src);
256 /** Unsorted table of event types. */
259 /** The type of this event. */
263 * Event attribute storage.
267 * is dynamically allocated and owned by this event object.
268 * m_nvPairs must be deleted at event destruction.
273 * The unaltered event string, as received from devd, used to
274 * create this event object.
280 * Ingest event data from the supplied string.
282 * \param[in] eventString The string of devd event data to parse.
289 inline Event::Type
290 Event::GetType() const in GetType()
296 Event::GetEventString() const in GetEventString()
302 Event::GetMap() const in GetMap()
311 typedef std::list<Event *> EventList;
314 class DevfsEvent : public Event
317 /** Specialized Event object factory for Devfs events. */
320 virtual Event *DeepCopy() const;
324 * consume the event.
325 * \return True if this event should be queued for later reevaluation
352 class GeomEvent : public Event
355 /** Specialized Event object factory for GEOM events. */
358 virtual Event *DeepCopy() const;
375 class ZfsEvent : public Event
378 /** Specialized Event object factory for ZFS events. */
381 virtual Event *DeepCopy() const;