Trait usiem::components::SiemDatasetManager [−][src]
pub trait SiemDatasetManager: Send {
fn local_channel(&self) -> Sender<SiemMessage>;
fn set_kernel_sender(&mut self, sender: Sender<SiemMessage>);
fn run(&mut self);
fn register_dataset(&mut self, dataset: SiemDatasetType);
fn get_datasets(&self) -> Arc<Mutex<BTreeMap<SiemDatasetType, SiemDataset>>>;
fn set_dataset_channels(
&mut self,
channels: Arc<Mutex<BTreeMap<u64, Vec<Sender<SiemMessage>>>>>
);
fn name(&self) -> Cow<'static, str> { ... }
}
Required methods
fn local_channel(&self) -> Sender<SiemMessage>
fn local_channel(&self) -> Sender<SiemMessage>
Get the channel to this component
fn set_kernel_sender(&mut self, sender: Sender<SiemMessage>)
fn set_kernel_sender(&mut self, sender: Sender<SiemMessage>)
Sets the channel to communicate with the kernel.
Execute the logic of this component in an infinite loop. Must be stopped using Commands sent using the channel.
fn register_dataset(&mut self, dataset: SiemDatasetType)
fn register_dataset(&mut self, dataset: SiemDatasetType)
The kernel registers the datasets of the components
fn get_datasets(&self) -> Arc<Mutex<BTreeMap<SiemDatasetType, SiemDataset>>>
fn get_datasets(&self) -> Arc<Mutex<BTreeMap<SiemDatasetType, SiemDataset>>>
Get the list of datasets to initialize components
fn set_dataset_channels(
&mut self,
channels: Arc<Mutex<BTreeMap<u64, Vec<Sender<SiemMessage>>>>>
)
fn set_dataset_channels(
&mut self,
channels: Arc<Mutex<BTreeMap<u64, Vec<Sender<SiemMessage>>>>>
)
Sets the map of components that need dataset updates