16 #define ON_DEBUG if ( msgLevel( MSG::DEBUG ) ) 17 #define ON_VERBOSE if ( msgLevel( MSG::VERBOSE ) ) 44 fatal() <<
"in sysInitialize(): exception with tag=" << Exception.
tag() <<
" is caught" <<
endmsg;
48 fatal() <<
"in sysInitialize(): standard std::exception is caught" <<
endmsg;
52 fatal() <<
"in sysInitialize(): UNKNOWN Exception is caught" <<
endmsg;
79 fatal() <<
"in sysStart(): exception with tag=" << Exception.
tag() <<
" is caught" <<
endmsg;
83 fatal() <<
"in sysStart(): standard std::exception is caught" <<
endmsg;
87 fatal() <<
"in sysStart(): UNKNOWN Exception is caught" <<
endmsg;
107 fatal() <<
"in sysStop(): exception with tag=" << Exception.
tag() <<
" is caught" <<
endmsg;
111 fatal() <<
"in sysStop(): standard std::exception is caught" <<
endmsg;
115 fatal() <<
"in sysStop(): UNKNOWN Exception is caught" <<
endmsg;
147 fatal() <<
" Exception with tag=" << Exception.
tag() <<
" is caught " <<
endmsg;
151 fatal() <<
" Standard std::exception is caught " <<
endmsg;
155 fatal() <<
"UNKNOWN Exception is caught " <<
endmsg;
176 error() <<
"sysReinitialize(): cannot reinitialize service not initialized" <<
endmsg;
189 fatal() <<
" Exception with tag=" << Exception.
tag() <<
" is caught " <<
endmsg;
193 fatal() <<
" Standard std::exception is caught " <<
endmsg;
197 fatal() <<
"UNKNOWN Exception is caught " <<
endmsg;
210 error() <<
"sysRestart(): cannot restart service in state " <<
FSMState() <<
" -- must be RUNNING " <<
endmsg;
222 fatal() <<
" Exception with tag=" << Exception.
tag() <<
" is caught " <<
endmsg;
226 fatal() <<
" Standard std::exception is caught " <<
endmsg;
230 fatal() <<
"UNKNOWN Exception is caught " <<
endmsg;
262 error() <<
"restart(): cannot be stopped" <<
endmsg;
267 error() <<
"restart(): cannot be started" <<
endmsg;
281 const bool CREATEIF(
true );
286 if (
name() !=
"MessageSvc" ) {
292 return jos->setMyProperties(
name(),
this );
298 if (
m_name !=
"MessageSvc" ) {
Gaudi::Property< int > m_outputLevel
Gaudi::StateMachine::State m_targetState
Service state.
StatusCode initialize() override
SmartIF< ISvcLocator > & serviceLocator() const override
Retrieve pointer to service locator.
Define general base for Gaudi exception.
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Gaudi::StateMachine::State m_state
Service state.
Gaudi::Property< bool > m_auditorInitialize
SmartIF< IAuditorSvc > m_pAuditorSvc
Auditor Service.
StatusCode finalize() override
Implementation of property with value of concrete type.
Gaudi::StateMachine::State FSMState() const override
StatusCode start() override
The ISvcManager is the interface implemented by the Service Factory in the Application Manager to sup...
StatusCode sysRestart() override
Re-initialize the Service.
virtual const std::string & tag() const
name tag for the exception, or exception type
StatusCode sysStart() override
Initialize Service.
constexpr static const auto SUCCESS
SmartIF< ISvcLocator > m_svcLocator
Service Locator reference.
Gaudi::Property< bool > m_auditInit
Gaudi::Property< bool > m_auditorRestart
std::string m_name
Service Name.
Gaudi::Property< bool > m_auditorReinitialize
auto get(const Handle &handle, const Algo &, const EventContext &) -> decltype(details::deref(handle.get()))
MSG::Level setUpMessaging() const
Set up local caches.
StatusCode service(const Gaudi::Utils::TypeNameString &name, T *&svc, bool createIf=true)
Templated method to access a service by name.
const std::string & name() const override
Retrieve name of the service.
MsgStream & error() const
shortcut for the method msgStream(MSG::ERROR)
StatusCode sysStop() override
Initialize Service.
Main interface for the JobOptions service.
void updateMsgStreamOutputLevel(int level)
Update the output level of the cached MsgStream.
~Service() override
Standard Destructor.
This class is used for returning status codes from appropriate routines.
Gaudi::Property< bool > m_auditorFinalize
MsgStream & debug() const
shortcut for the method msgStream(MSG::DEBUG)
PropertyBase base class allowing PropertyBase* collections to be "homogeneous".
StatusCode reinitialize() override
StatusCode stop() override
std::once_flag m_initFlag
StatusCode sysFinalize() override
Finalize Service.
StatusCode setProperties()
Method for setting declared properties to the values specified for the job.
const StatusCode & ignore() const
Ignore/check StatusCode.
StatusCode sysReinitialize() override
Re-initialize the Service.
State GAUDI_API ChangeState(const Transition transition, const State state)
Function to get the new state according to the required transition, checking if the transition is all...
SmartIF< IAuditorSvc > & auditorSvc() const
The standard auditor service.May not be invoked before sysInitialize() has been invoked.
Service(std::string name, ISvcLocator *svcloc)
Standard Constructor.
constexpr static const auto FAILURE
Gaudi::Property< bool > m_auditorStart
bool assign(const Details::PropertyBase &source) override
get the value from another property
SmartIF< ISvcManager > m_svcManager
void setServiceManager(ISvcManager *ism) override
The IProperty is the basic interface for all components which have properties that can be set or get.
It is a simple guard, which "locks" the scope for the Auditor Service is am exception-safe way.
StatusCode restart() override
virtual StatusCode removeService(IService *svc)=0
Remove a service from the "active" list of services of the factory.
Gaudi::Property< bool > m_auditorStop
MsgStream & fatal() const
shortcut for the method msgStream(MSG::FATAL)
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
StatusCode sysInitialize() override
Initialize Service.