17 #define ON_DEBUG if ( msgLevel( MSG::DEBUG ) ) 18 #define ON_VERBOSE if ( msgLevel( MSG::VERBOSE ) ) 48 fatal() <<
"in sysInitialize(): exception with tag=" << Exception.
tag() <<
" is caught" <<
endmsg;
52 fatal() <<
"in sysInitialize(): standard std::exception is caught" <<
endmsg;
56 fatal() <<
"in sysInitialize(): UNKNOWN Exception is caught" <<
endmsg;
85 fatal() <<
"in sysStart(): exception with tag=" << Exception.
tag() <<
" is caught" <<
endmsg;
89 fatal() <<
"in sysStart(): standard std::exception is caught" <<
endmsg;
93 fatal() <<
"in sysStart(): UNKNOWN Exception is caught" <<
endmsg;
114 fatal() <<
"in sysStop(): exception with tag=" << Exception.
tag() <<
" is caught" <<
endmsg;
118 fatal() <<
"in sysStop(): standard std::exception is caught" <<
endmsg;
122 fatal() <<
"in sysStop(): UNKNOWN Exception is caught" <<
endmsg;
157 fatal() <<
" Exception with tag=" << Exception.
tag() <<
" is caught " <<
endmsg;
161 fatal() <<
" Standard std::exception is caught " <<
endmsg;
165 fatal() <<
"UNKNOWN Exception is caught " <<
endmsg;
188 error() <<
"sysReinitialize(): cannot reinitialize service not initialized" <<
endmsg;
201 fatal() <<
" Exception with tag=" << Exception.
tag() <<
" is caught " <<
endmsg;
205 fatal() <<
" Standard std::exception is caught " <<
endmsg;
209 fatal() <<
"UNKNOWN Exception is caught " <<
endmsg;
223 error() <<
"sysRestart(): cannot restart service in state " <<
FSMState() <<
" -- must be RUNNING " <<
endmsg;
235 fatal() <<
" Exception with tag=" << Exception.
tag() <<
" is caught " <<
endmsg;
239 fatal() <<
" Standard std::exception is caught " <<
endmsg;
243 fatal() <<
"UNKNOWN Exception is caught " <<
endmsg;
277 error() <<
"restart(): cannot be stopped" <<
endmsg;
282 error() <<
"restart(): cannot be started" <<
endmsg;
297 const bool CREATEIF(
true );
308 if ( jos->setMyProperties(
name(),
this ).isFailure() ) {
326 if (
m_name !=
"MessageSvc" ) {
334 if (
appMgr &&
appMgr->hasProperty(
"AuditServices" ) ) {
Gaudi::Property< int > m_outputLevel
Gaudi::StateMachine::State m_targetState
Service state.
StatusCode initialize() override
Define general base for Gaudi exception.
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
const std::string & name() const override
Retrieve name of the service.
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.
SmartIF< IAuditorSvc > & auditorSvc() const
The standard auditor service.May not be invoked before sysInitialize() has been invoked.
StatusCode start() override
The ISvcManager is the interface implemented by the Service Factory in the Application Manager to sup...
bool isSuccess() const
Test for a status code of SUCCESS.
StatusCode sysRestart() override
Re-initialize the Service.
StatusCode sysStart() override
Initialize Service.
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
bool isFailure() const
Test for a status code of FAILURE.
GAUDI_API bool isGaudiThreaded(const std::string &name)
test if current Gaudi object is running /will run in a thread
StatusCode service(const Gaudi::Utils::TypeNameString &name, T *&svc, bool createIf=true)
Templated method to access a service by name.
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
virtual const std::string & tag() const
name tag for the exception, or exception type
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.
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...
MsgStream & debug() const
shortcut for the method msgStream(MSG::DEBUG)
Service(std::string name, ISvcLocator *svcloc)
Standard Constructor.
Gaudi::StateMachine::State FSMState() const override
SmartIF< IMessageSvc > & msgSvc() const
The standard message service.
Gaudi::Property< bool > m_auditorStart
bool assign(const Details::PropertyBase &source) override
get the value from another property
SmartIF< ISvcManager > m_svcManager
MsgStream & fatal() const
shortcut for the method msgStream(MSG::FATAL)
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.
MSG::Level msgLevel() const
get the output level from the embedded MsgStream
Gaudi::Property< bool > m_auditorStop
SmartIF< ISvcLocator > & serviceLocator() const override
Retrieve pointer to service locator.
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
GAUDI_API std::string getGaudiThreadGenericName(const std::string &name)
helper function to extract Gaudi instance name from thread copy name
StatusCode sysInitialize() override
Initialize Service.