Go to the documentation of this file.
19 #ifndef __XRD_CL_POST_MASTER_HH__
20 #define __XRD_CL_POST_MASTER_HH__
42 struct PostMasterImpl;
214 std::shared_ptr<Job> onConnJob );
249 std::unique_ptr<PostMasterImpl>
pImpl;
253 #endif // __XRD_CL_POST_MASTER_HH__
XRootDStatus Send(const URL &url, Message *msg, OutgoingMsgHandler *handler, bool stateful, time_t expires)
XRootDStatus Send(const URL &url, Message *msg, bool stateful, time_t expires)
void NotifyConnectHandler(const URL &url)
Notify the global on-connect handler.
Message status handler.
Definition: XrdClPostMasterInterfaces.hh:185
void NotifyConnErrHandler(const URL &url, const XRootDStatus &status)
Notify the global error connection handler.
Status ForceDisconnect(const URL &url)
Shut down a channel.
bool Initialize()
Initializer.
Channel * GetChannel(const URL &url)
virtual ~PostMaster()
Destructor.
void DecFileInstCnt(const URL &url)
Decrement file object instance count bound to this channel.
A synchronized queue.
Definition: XrdClJobManager.hh:51
uint16_t NbConnectedStrm(const URL &url)
Get the number of connected data streams.
void CollapseRedirect(const URL &oldurl, const URL &newURL)
Collapse channel URL - replace the URL of the channel.
Status RemoveEventHandler(const URL &url, ChannelEventHandler *handler)
Remove a channel event handler.
The message representation used throughout the system.
Definition: XrdClMessage.hh:30
Status Redirect(const URL &url, Message *msg, IncomingMsgHandler *handler)
Status Receive(const URL &url, Message *&msg, MessageFilter *filter, time_t expires)
bool Finalize()
Finalizer.
Status QueryTransport(const URL &url, uint16_t query, AnyObject &result)
Request status.
Definition: XrdClXRootDResponses.hh:219
bool Reinitialize()
Reinitialize after fork.
Definition: XrdClTaskManager.hh:76
Message filter.
Definition: XrdClPostMasterInterfaces.hh:50
std::unique_ptr< PostMasterImpl > pImpl
Definition: XrdClPostMaster.hh:249
bool Stop()
Stop the postmaster.
Message handler.
Definition: XrdClPostMasterInterfaces.hh:72
void SetOnDataConnectHandler(const URL &url, std::shared_ptr< Job > onConnJob)
Set the on-connect handler for data streams.
void SetOnConnectHandler(std::unique_ptr< Job > onConnJob)
Set the global connection error handler.
A communication channel between the client and the server.
Definition: XrdClChannel.hh:49
void SetConnectionErrorHandler(std::function< void(const URL &, const XRootDStatus &)> handler)
Set the global on-error on-connect handler for control streams.
Definition: XrdClAnyObject.hh:26
Status RegisterEventHandler(const URL &url, ChannelEventHandler *handler)
Register channel event handler.
Status Receive(const URL &url, IncomingMsgHandler *handler, time_t expires)
TaskManager * GetTaskManager()
Get the task manager object user by the post master.
Procedure execution status.
Definition: XrdClStatus.hh:113
URL representation.
Definition: XrdClURL.hh:31
bool Start()
Start the post master.
Channel event handler.
Definition: XrdClPostMasterInterfaces.hh:237
JobManager * GetJobManager()
Get the job manager object user by the post master.
Definition: XrdClAnyObject.hh:33
A hub for dispatching and receiving messages.
Definition: XrdClPostMaster.hh:48