|
| FairMQDevice () |
| Default constructor.
|
|
| FairMQDevice (FairMQProgOptions &config) |
| Constructor with external FairMQProgOptions.
|
|
| FairMQDevice (const fair::mq::tools::Version version) |
| Constructor that sets the version.
|
|
| FairMQDevice (FairMQProgOptions &config, const fair::mq::tools::Version version) |
| Constructor that sets the version and external FairMQProgOptions.
|
|
| FairMQDevice (const FairMQDevice &)=delete |
| Copy constructor (disabled)
|
|
FairMQDevice | operator= (const FairMQDevice &)=delete |
| Assignment operator (disabled)
|
|
virtual | ~FairMQDevice () |
| Default destructor.
|
|
void | CatchSignals () |
| Catches interrupt signals (SIGINT, SIGTERM)
|
|
virtual void | LogSocketRates () |
| Outputs the socket transfer rates.
|
|
void | SortChannel (const std::string &name, const bool reindex=true) |
|
template<typename Serializer , typename DataType , typename... Args> |
void | Serialize (FairMQMessage &msg, DataType &&data, Args &&... args) const |
|
template<typename Deserializer , typename DataType , typename... Args> |
void | Deserialize (FairMQMessage &msg, DataType &&data, Args &&... args) const |
|
int | Send (FairMQMessagePtr &msg, const std::string &channel, const int index=0, int sndTimeoutInMs=-1) |
|
int | Receive (FairMQMessagePtr &msg, const std::string &channel, const int index=0, int rcvTimeoutInMs=-1) |
|
int | SendAsync (FairMQMessagePtr &msg, const std::string &channel, const int index=0) __attribute__((deprecated("For non-blocking Send |
|
int | ReceiveAsync (FairMQMessagePtr &msg, const std::string &channel, const int index=0) __attribute__((deprecated("For non-blocking Receive |
|
int64_t | Send (FairMQParts &parts, const std::string &channel, const int index=0, int sndTimeoutInMs=-1) |
|
int64_t | Receive (FairMQParts &parts, const std::string &channel, const int index=0, int rcvTimeoutInMs=-1) |
|
int64_t | SendAsync (FairMQParts &parts, const std::string &channel, const int index=0) __attribute__((deprecated("For non-blocking Send |
|
int64_t | ReceiveAsync (FairMQParts &parts, const std::string &channel, const int index=0) __attribute__((deprecated("For non-blocking Receive |
|
auto | Transport () const -> FairMQTransportFactory * |
| Getter for default transport factory.
|
|
template<typename... Args> |
FairMQMessagePtr | NewMessage (Args &&... args) |
|
template<typename... Args> |
FairMQMessagePtr | NewMessageFor (const std::string &channel, int index, Args &&... args) |
|
template<typename T > |
FairMQMessagePtr | NewStaticMessage (const T &data) |
|
template<typename T > |
FairMQMessagePtr | NewStaticMessageFor (const std::string &channel, int index, const T &data) |
|
template<typename T > |
FairMQMessagePtr | NewSimpleMessage (const T &data) |
|
template<typename T > |
FairMQMessagePtr | NewSimpleMessageFor (const std::string &channel, int index, const T &data) |
|
FairMQUnmanagedRegionPtr | NewUnmanagedRegion (const size_t size) |
|
FairMQUnmanagedRegionPtr | NewUnmanagedRegionFor (const std::string &channel, int index, const size_t size, FairMQRegionCallback callback=nullptr) |
|
template<typename ... Ts> |
FairMQPollerPtr | NewPoller (const Ts &... inputs) |
|
FairMQPollerPtr | NewPoller (const std::vector< FairMQChannel *> &channels) |
|
void | WaitForInitialValidation () __attribute__((deprecated("This method will have no effect in future versions and will be removed. Instead subscribe for state changes and inspect configuration values."))) |
| Waits for the first initialization run to finish.
|
|
std::shared_ptr< FairMQTransportFactory > | AddTransport (const fair::mq::Transport transport) |
|
void | SetConfig (FairMQProgOptions &config) |
| Assigns config to the device.
|
|
FairMQProgOptions * | GetConfig () const |
| Get pointer to the config.
|
|
template<typename T > |
void | OnData (const std::string &channelName, bool(T::*memberFunction)(FairMQMessagePtr &msg, int index)) |
|
void | OnData (const std::string &channelName, InputMsgCallback callback) |
|
template<typename T > |
void | OnData (const std::string &channelName, bool(T::*memberFunction)(FairMQParts &parts, int index)) |
|
void | OnData (const std::string &channelName, InputMultipartCallback callback) |
|
FairMQChannel & | GetChannel (const std::string &channelName, const int index=0) |
|
virtual void | RegisterChannelEndpoints () |
|
bool | RegisterChannelEndpoint (const std::string &channelName, uint16_t minNumSubChannels=1, uint16_t maxNumSubChannels=1) |
|
void | PrintRegisteredChannels () |
|
void | SetId (const std::string &id) |
|
std::string | GetId () |
|
const fair::mq::tools::Version | GetVersion () const |
|
void | SetNumIoThreads (int numIoThreads) |
|
int | GetNumIoThreads () const |
|
void | SetNetworkInterface (const std::string &networkInterface) |
|
std::string | GetNetworkInterface () const |
|
void | SetDefaultTransport (const std::string &name) |
|
std::string | GetDefaultTransport () const |
|
void | SetInitializationTimeoutInS (int initializationTimeoutInS) |
|
int | GetInitializationTimeoutInS () const |
|
void | SetTransport (const std::string &transport) |
|
std::string | GetTransportName () const |
| Gets the default transport name.
|
|
void | SetRawCmdLineArgs (const std::vector< std::string > &args) |
|
std::vector< std::string > | GetRawCmdLineArgs () const |
|
void | RunStateMachine () |
|
template<class Rep , class Period > |
bool | WaitFor (std::chrono::duration< Rep, Period > const &duration) |
|
void | AddChannel (const std::string &channelName, const FairMQChannel &channel) |
|
int | GetInterfaceVersion () const |
|
bool | ChangeState (int event) |
|
bool | ChangeState (const std::string &event) |
|
void | WaitForEndOfState (int event) |
|
void | WaitForEndOfState (const std::string &event) |
|
bool | WaitForEndOfStateForMs (int event, int durationInMs) |
|
bool | WaitForEndOfStateForMs (const std::string &event, int durationInMs) |
|
void | SubscribeToStateChange (const std::string &key, std::function< void(const State)> callback) |
|
void | UnsubscribeFromStateChange (const std::string &key) |
|
void | CallStateChangeCallbacks (const State state) const |
|
std::string | GetCurrentStateName () const |
|
int | GetCurrentState () const |
|
bool | CheckCurrentState (int state) const |
|
bool | CheckCurrentState (const std::string &state) const |
|
void | ProcessWork () |
|