![]() |
The Gaudi Framework
v27r0
|
Small algorithm which switches the partition of a configurable multi-service. More...
Public Member Functions | |
PartitionSwitchAlg (const std::string &name, ISvcLocator *pSvcLocator) | |
Standard algorithm constructor. More... | |
~PartitionSwitchAlg () override=default | |
Standard Destructor. More... | |
STATUS | initialize () override |
Initialize. More... | |
STATUS | finalize () override |
Finalize. More... | |
STATUS | execute () override |
Execute procedure. More... | |
STATUS | create (CSTR nam, CSTR typ) override |
Create a partition object. The name identifies the partition uniquely. More... | |
STATUS | create (CSTR nam, CSTR typ, IInterface *&pPartition) override |
Create a partition object. The name identifies the partition uniquely. More... | |
STATUS | drop (CSTR nam) override |
Drop a partition object. The name identifies the partition uniquely. More... | |
STATUS | drop (IInterface *pPartition) override |
Drop a partition object. The name identifies the partition uniquely. More... | |
STATUS | activate (CSTR nam) override |
Activate a partition object. The name identifies the partition uniquely. More... | |
STATUS | activate (IInterface *pPartition) override |
Activate a partition object. More... | |
STATUS | get (CSTR nam, IInterface *&pPartition) const override |
Access a partition object. The name identifies the partition uniquely. More... | |
STATUS | activePartition (std::string &nam, IInterface *&pPartition) const override |
Access the active partition object. More... | |
![]() | |
void * | i_cast (const InterfaceID &tid) const override |
Implementation of IInterface::i_cast. More... | |
StatusCode | queryInterface (const InterfaceID &ti, void **pp) override |
Implementation of IInterface::queryInterface. More... | |
std::vector< std::string > | getInterfaceNames () const override |
Implementation of IInterface::getInterfaceNames. More... | |
~extends () override=default | |
Virtual destructor. More... | |
void * | i_cast (const InterfaceID &tid) const override |
Implementation of IInterface::i_cast. More... | |
StatusCode | queryInterface (const InterfaceID &ti, void **pp) override |
Implementation of IInterface::queryInterface. More... | |
std::vector< std::string > | getInterfaceNames () const override |
Implementation of IInterface::getInterfaceNames. More... | |
~extends () override=default | |
Virtual destructor. More... | |
![]() | |
~extend_interfaces () override=default | |
Virtual destructor. More... | |
~extend_interfaces () override=default | |
Virtual destructor. More... | |
Private Types | |
using | STATUS = StatusCode |
using | CSTR = const std::string & |
Private Member Functions | |
StatusCode | log_ (StatusCode sc, const std::string &msg) const |
template<typename... FArgs, typename... Args> | |
StatusCode | fwd_ (StatusCode(IPartitionControl::*fun)(FArgs...), Args &&...args) |
template<typename... FArgs, typename... Args> | |
StatusCode | fwd_ (StatusCode(IPartitionControl::*fun)(FArgs...) const, Args &&...args) const |
Private Attributes | |
std::string | m_partName |
Job option to set the requested partition name. More... | |
std::string | m_toolType |
Job option to set the tool manipulating the multi-service name. More... | |
IPartitionControl * | m_actor = nullptr |
reference to Partition Controller More... | |
Additional Inherited Members | |
![]() | |
using | base_class = extends |
Typedef to this class. More... | |
using | extend_interfaces_base = extend_interfaces< Interfaces...> |
Typedef to the base of this class. More... | |
using | base_class = extends |
Typedef to this class. More... | |
using | extend_interfaces_base = extend_interfaces< Interfaces...> |
Typedef to the base of this class. More... | |
![]() | |
using | ext_iids = typename Gaudi::interface_list_cat< typename Interfaces::ext_iids...>::type |
take union of the ext_iids of all Interfaces... More... | |
using | ext_iids = typename Gaudi::interface_list_cat< typename Interfaces::ext_iids...>::type |
take union of the ext_iids of all Interfaces... More... | |
Small algorithm which switches the partition of a configurable multi-service.
The algorithm can be part of a sequence, which allows for e.g. buffer tampering.
Definition at line 25 of file PartitionSwitchAlg.cpp.
|
private |
Definition at line 28 of file PartitionSwitchAlg.cpp.
|
private |
Definition at line 27 of file PartitionSwitchAlg.cpp.
|
inline |
Standard algorithm constructor.
Definition at line 42 of file PartitionSwitchAlg.cpp.
|
overridedefault |
Standard Destructor.
Activate a partition object. The name identifies the partition uniquely.
Definition at line 133 of file PartitionSwitchAlg.cpp.
|
inlineoverride |
Activate a partition object.
Definition at line 138 of file PartitionSwitchAlg.cpp.
|
inlineoverride |
Access the active partition object.
Definition at line 148 of file PartitionSwitchAlg.cpp.
Create a partition object. The name identifies the partition uniquely.
Definition at line 113 of file PartitionSwitchAlg.cpp.
|
inlineoverride |
Create a partition object. The name identifies the partition uniquely.
Definition at line 118 of file PartitionSwitchAlg.cpp.
Drop a partition object. The name identifies the partition uniquely.
Definition at line 123 of file PartitionSwitchAlg.cpp.
|
inlineoverride |
Drop a partition object. The name identifies the partition uniquely.
Definition at line 128 of file PartitionSwitchAlg.cpp.
|
inlineoverride |
Execute procedure.
Definition at line 82 of file PartitionSwitchAlg.cpp.
|
inlineoverride |
Finalize.
Definition at line 74 of file PartitionSwitchAlg.cpp.
|
inlineprivate |
Definition at line 104 of file PartitionSwitchAlg.cpp.
|
inlineprivate |
Definition at line 108 of file PartitionSwitchAlg.cpp.
|
inlineoverride |
Access a partition object. The name identifies the partition uniquely.
Definition at line 143 of file PartitionSwitchAlg.cpp.
|
inlineoverride |
Initialize.
Release old tool
Now check if the partition is present. If not: try to create it
Definition at line 52 of file PartitionSwitchAlg.cpp.
|
inlineprivate |
Definition at line 98 of file PartitionSwitchAlg.cpp.
|
private |
reference to Partition Controller
Definition at line 37 of file PartitionSwitchAlg.cpp.
|
private |
Job option to set the requested partition name.
Definition at line 33 of file PartitionSwitchAlg.cpp.
|
private |
Job option to set the tool manipulating the multi-service name.
Definition at line 35 of file PartitionSwitchAlg.cpp.