Trait usiem::components::SiemDatasetManager
source · 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§
fn set_id(&mut self, id: u64)
sourcefn local_channel(&self) -> Sender<SiemMessage>
fn local_channel(&self) -> Sender<SiemMessage>
Get the channel to this component
sourcefn run(&mut self) -> SiemResult<()>
fn run(&mut self) -> SiemResult<()>
Execute the logic of this component in an infinite loop. Must be stopped using Commands sent using the channel.
sourcefn register_dataset(&mut self, dataset: SiemDatasetType)
fn register_dataset(&mut self, dataset: SiemDatasetType)
The kernel registers the datasets of the components
sourcefn register_datasets(&mut self, datasets: Vec<SiemDatasetType>)
fn register_datasets(&mut self, datasets: Vec<SiemDatasetType>)
The kernel registers the datasets of the components
sourcefn get_datasets(&self) -> Arc<Mutex<DatasetHolder>>
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