DsEventLogAdmin::EventLogFactory Interface Reference

The event log factory is both a LogMgr and a ConsumerAdmin. More...

import "DsEventLogAdmin.idl";

Inherits DsLogAdmin::LogMgr, and CosEventChannelAdmin::ConsumerAdmin.

List of all members.

Public Member Functions

EventLog create (in DsLogAdmin::LogFullActionType full_action, in unsigned long long max_size, in DsLogAdmin::CapacityAlarmThresholdList thresholds, out DsLogAdmin::LogId id) raises (DsLogAdmin::InvalidThreshold, DsLogAdmin::InvalidLogFullAction)
 Create a new event log.
EventLog create_with_id (in DsLogAdmin::LogId id, in DsLogAdmin::LogFullActionType full_action, in unsigned long long max_size, in DsLogAdmin::CapacityAlarmThresholdList thresholds) raises (DsLogAdmin::LogIdAlreadyExists, DsLogAdmin::InvalidThreshold, DsLogAdmin::InvalidLogFullAction)
 Create a new event log.


Detailed Description

The event log factory is both a LogMgr and a ConsumerAdmin.

It creates log objects and emits log-generated events on behalf of all event logs.


Member Function Documentation

EventLog DsEventLogAdmin::EventLogFactory::create ( in DsLogAdmin::LogFullActionType  full_action,
in unsigned long long  max_size,
in DsLogAdmin::CapacityAlarmThresholdList  thresholds,
out DsLogAdmin::LogId  id 
) raises (DsLogAdmin::InvalidThreshold, DsLogAdmin::InvalidLogFullAction)

Create a new event log.

full_action - Action to be taken when log is full. max_size - Maximum log size in bytes. thresholds - The threshold values where the newly created log should emit alarms. of the newly created log object. id - An output parameter with the unique identifier of the newly created log object.

Returns:
A new EventLog object. InvalidLogFullAction If the full_action parameter contains an invalid value. InvalidThreshold If the thresholds parameter contains an invalid value.

EventLog DsEventLogAdmin::EventLogFactory::create_with_id ( in DsLogAdmin::LogId  id,
in DsLogAdmin::LogFullActionType  full_action,
in unsigned long long  max_size,
in DsLogAdmin::CapacityAlarmThresholdList  thresholds 
) raises (DsLogAdmin::LogIdAlreadyExists, DsLogAdmin::InvalidThreshold, DsLogAdmin::InvalidLogFullAction)

Create a new event log.

id - Desired unique identifier for the new log. full_action - Action to be taken when log is full. max_size - Maximum log size in bytes. thresholds - The threshold values where the newly created log should emit alarms. of the newly created log object.

Returns:
A new EventLog object. LogIdAlreadyExists If a log object with that unique identifier already exists. InvalidLogFullAction If the full_action parameter contains an invalid value. InvalidThreshold If the thresholds parameter contains an invalid value.