|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef JIVEXML_ONCRPCSERVERSVC_H
6 #define JIVEXML_ONCRPCSERVERSVC_H
10 #include "GaudiKernel/ServiceHandle.h"
11 #include "GaudiKernel/MsgStream.h"
19 class ThreadCollection;
59 virtual int GetState()
const override;
pthread_t m_ServerThreadHandle
virtual const std::string GetEvent(const EventStreamID &evtStreamID) const override
get the current event for a particular stream
std::map< const EventStreamID, const std::string > EventStreamMap
virtual void ServerThreadStopped() override
Callback when server thread terminates.
virtual bool GetRunServerFlag() const override
The server thread will stop once this flag is set to false.
virtual std::vector< std::string > GetStreamNames() const override
get the names of all the streams
ONCRPCServerSvc(const std::string &name, ISvcLocator *sl)
Default constructor.
POOL::TEvent event(POOL::TEvent::kClassAccess)
::StatusCode StatusCode
StatusCode definition for legacy code.
virtual StatusCode finalize() override
Finalize - called once at the end.
StatusCode StartServer()
Start the server thread.
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 int GetState() const override
get the Status of the application
virtual void Message(const MSG::Level level, const std::string &mesg) const override
This function is exposed to allow using athena messaging service from other threads.
EventStreamMap m_eventStreamMap
virtual StatusCode initialize() override
Gaudi default methods.
StatusCode StopServer()
Stop the server thread.
Pure abstract interface for all full server implementations.
pthread_mutex_t m_accessLock ATLAS_THREAD_SAFE
virtual ~ONCRPCServerSvc()
Destructor.
virtual const EventStreamID GetEventStreamID(const std::string &streamName) const override
get the current EventStreamID for a particular stream
virtual StatusCode UpdateEventForStream(const EventStreamID &evtStreamID, const std::string &event) override
Put this event as new current event for stream given by name.
This athena service will create an ONC/RPC (aka SunRPC) server, that can provide the athena status as...
virtual MSG::Level LogLevel() const override
Get the logging level.
Define macros for attributes used to control the static checker.