|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef JIVEXML_JIVEXMLSERVER_H
6 #define JIVEXML_JIVEXMLSERVER_H
22 #include <GaudiKernel/IMessageSvc.h>
23 #include <GaudiKernel/StatusCode.h>
31 #include <owl/semaphore.h>
36 class ThreadCollection;
62 virtual int GetState()
const override;
static void signalHandler(int signum)
When the signal handler is called, switch the lock to the post condition.
EventStreamMap m_eventStreamMap
virtual const std::string GetEvent(const EventStreamID &evtStreamID) const override
get the current event for a particular stream
virtual int GetState() const override
get the Status of the application
std::map< const EventStreamID, const std::string > EventStreamMap
StatusCode StopServingThread()
Stop the serving thread.
virtual std::vector< std::string > GetStreamNames() const override
get the names of all the streams
virtual void Message(const MSG::Level level, const std::string &msg) const override
This function is exposed to allow using ERS messaging service from other threads.
JiveXMLServer(int port=0)
Constructor.
POOL::TEvent event(POOL::TEvent::kClassAccess)
::StatusCode StatusCode
StatusCode definition for legacy code.
virtual bool GetRunServerFlag() const override
The server thread will stop once this flag is set to false.
virtual MSG::Level LogLevel() const override
Get the logging level.
pthread_mutex_t m_accessLock ATLAS_THREAD_SAFE
For the client-server communication, each event is uniquely identified by the run number,...
This header is shared inbetween the C-style server thread and the C++ Athena ServerSvc.
virtual const EventStreamID GetEventStreamID(const std::string &streamName) const override
get the current EventStreamID for a particular stream
Pure abstract interface for all full server implementations.
static std::atomic< int > m_receivedSignal
StatusCode StartServingThread()
Start the serving thread.
pthread_t m_ServerThreadHandle
static OWLSemaphore lock ATLAS_THREAD_SAFE
virtual void ServerThreadStopped() override
Callback whenever the server thread is stopped.
void Wait()
Wait for the server finish.
virtual ~JiveXMLServer()
Destructor.
Define macros for attributes used to control the static checker.
virtual StatusCode UpdateEventForStream(const EventStreamID &evtStreamID, const std::string &event) override
Put this event as new current event for stream given by name.