pub trait SiemDatasetManager: Send {
    // Required methods
    fn set_id(&mut self, id: u64);
    fn local_channel(&self) -> Sender<SiemMessage>;
    fn run(&mut self) -> SiemResult<()>;
    fn register_dataset(&mut self, dataset: SiemDatasetType);
    fn register_datasets(&mut self, datasets: Vec<SiemDatasetType>);
    fn get_datasets(&self) -> Arc<Mutex<DatasetHolder>>;

    // Provided method
    fn name(&self) -> &str { ... }
}

Required Methods§

source

fn set_id(&mut self, id: u64)

source

fn local_channel(&self) -> Sender<SiemMessage>

Get the channel to this component

source

fn run(&mut self) -> SiemResult<()>

Execute the logic of this component in an infinite loop. Must be stopped using Commands sent using the channel.

source

fn register_dataset(&mut self, dataset: SiemDatasetType)

The kernel registers the datasets of the components

source

fn register_datasets(&mut self, datasets: Vec<SiemDatasetType>)

The kernel registers the datasets of the components

source

fn get_datasets(&self) -> Arc<Mutex<DatasetHolder>>

Get the list of datasets to initialize components. This must be the live version of the datasets shared only between the DatasetManager and the Kernel

Provided Methods§

source

fn name(&self) -> &str

Implementors§