m2etis  0.4
m2etis::pubsub::deliver::NackDeliver< NetworkType, Retries, Multiples > Class Template Reference

#include <NackDeliver.h>

Inheritance diagram for m2etis::pubsub::deliver::NackDeliver< NetworkType, Retries, Multiples >:
Inheritance graph

Public Types

typedef message::NackDeliverInfo DeliverInfoType
 

Public Member Functions

 NackDeliver (PubSubSystemEnvironment *pssi, const typename NetworkType::Key &self)
 
virtual ~NackDeliver ()
 
bool processPublishPayload (typename message::DeliverInfo::Ptr ptr, const typename NetworkType::Key &sender)
 used to process payload More...
 
bool processNotifyPayload (typename message::DeliverInfo::Ptr ptr, const typename NetworkType::Key &sender)
 used to process payload More...
 
bool processSubscribePayload (typename message::DeliverInfo::Ptr ptr, const typename NetworkType::Key &sender)
 used to process payload More...
 
bool processUnsubscribePayload (typename message::DeliverInfo::Ptr ptr, const typename NetworkType::Key &sender)
 used to process payload More...
 
bool processOtherControlPayload (typename message::DeliverInfo::Ptr ptr, const typename NetworkType::Key &sender)
 creates the DeliverInfo More...
 
void configureDeliverInfo (uint64_t id, const message::ActionType mtype, typename message::DeliverInfo::Ptr ptr, const typename NetworkType::Key &receiver, message::ControlType ct)
 creates the DeliverInfo More...
 
bool processControlPayload (typename message::DeliverInfo::Ptr ptr, const typename NetworkType::Key &sender)
 processes Control Messages (id got acked) More...
 
- Public Member Functions inherited from m2etis::pubsub::deliver::BaseDeliver< NetworkType >
 BaseDeliver (PubSubSystemEnvironment *pssi)
 
virtual ~BaseDeliver ()
 
void configureCallback (const boost::function< void(uint64_t, msgProcess)> &func)
 used to set the function to be called when a message should be send to the next processing stage call this function with the id given in receive() to deliver the appropriate message More...
 
void configureSendCallback (const boost::function< void(message::DeliverInfo::Ptr, const typename NetworkType::Key &, ControlTarget)> &func)
 with this function, new messages can be sent directly to nodes More...
 

Additional Inherited Members

- Protected Attributes inherited from m2etis::pubsub::deliver::BaseDeliver< NetworkType >
PubSubSystemEnvironmentpssi_
 PubSubSystemEnvironment. More...
 
boost::function< void(uint64_t, msgProcess)> process_
 stores the function to be called for delivering More...
 
boost::function< void(message::DeliverInfo::Ptr, typename NetworkType::Key, ControlTarget)> sendCtrlMsg_
 stores the function to send new messages This function will send a newly created control message containing the given DeliverStruct to the specified sender. The Tree ensures that this message will be sent to the specified receiver and will not be processed by any other strategie. More...
 

Detailed Description

template<class NetworkType, int Retries, Amount Multiples>
class m2etis::pubsub::deliver::NackDeliver< NetworkType, Retries, Multiples >

Definition at line 39 of file NackDeliver.h.

Member Typedef Documentation

template<class NetworkType , int Retries, Amount Multiples>
typedef message::NackDeliverInfo m2etis::pubsub::deliver::NackDeliver< NetworkType, Retries, Multiples >::DeliverInfoType

Definition at line 41 of file NackDeliver.h.

Constructor & Destructor Documentation

template<class NetworkType , int Retries, Amount Multiples>
m2etis::pubsub::deliver::NackDeliver< NetworkType, Retries, Multiples >::NackDeliver ( PubSubSystemEnvironment pssi,
const typename NetworkType::Key &  self 
)
inline

Definition at line 43 of file NackDeliver.h.

Here is the call graph for this function:

template<class NetworkType , int Retries, Amount Multiples>
virtual m2etis::pubsub::deliver::NackDeliver< NetworkType, Retries, Multiples >::~NackDeliver ( )
inlinevirtual

Definition at line 47 of file NackDeliver.h.

Member Function Documentation

template<class NetworkType , int Retries, Amount Multiples>
void m2etis::pubsub::deliver::NackDeliver< NetworkType, Retries, Multiples >::configureDeliverInfo ( uint64_t  id,
const message::ActionType  mtype,
typename message::DeliverInfo::Ptr  ptr,
const typename NetworkType::Key &  receiver,
message::ControlType  ct 
)
inlinevirtual

creates the DeliverInfo

Implements m2etis::pubsub::deliver::BaseDeliver< NetworkType >.

Definition at line 86 of file NackDeliver.h.

template<class NetworkType , int Retries, Amount Multiples>
bool m2etis::pubsub::deliver::NackDeliver< NetworkType, Retries, Multiples >::processControlPayload ( typename message::DeliverInfo::Ptr  ptr,
const typename NetworkType::Key &  sender 
)
inlinevirtual

processes Control Messages (id got acked)

Implements m2etis::pubsub::deliver::BaseDeliver< NetworkType >.

Definition at line 102 of file NackDeliver.h.

template<class NetworkType , int Retries, Amount Multiples>
bool m2etis::pubsub::deliver::NackDeliver< NetworkType, Retries, Multiples >::processNotifyPayload ( typename message::DeliverInfo::Ptr  ptr,
const typename NetworkType::Key &  sender 
)
inlinevirtual

used to process payload

Implements m2etis::pubsub::deliver::BaseDeliver< NetworkType >.

Definition at line 61 of file NackDeliver.h.

template<class NetworkType , int Retries, Amount Multiples>
bool m2etis::pubsub::deliver::NackDeliver< NetworkType, Retries, Multiples >::processOtherControlPayload ( typename message::DeliverInfo::Ptr  ptr,
const typename NetworkType::Key &  sender 
)
inlinevirtual

creates the DeliverInfo

Implements m2etis::pubsub::deliver::BaseDeliver< NetworkType >.

Definition at line 79 of file NackDeliver.h.

template<class NetworkType , int Retries, Amount Multiples>
bool m2etis::pubsub::deliver::NackDeliver< NetworkType, Retries, Multiples >::processPublishPayload ( typename message::DeliverInfo::Ptr  ptr,
const typename NetworkType::Key &  sender 
)
inlinevirtual

used to process payload

Implements m2etis::pubsub::deliver::BaseDeliver< NetworkType >.

Definition at line 54 of file NackDeliver.h.

template<class NetworkType , int Retries, Amount Multiples>
bool m2etis::pubsub::deliver::NackDeliver< NetworkType, Retries, Multiples >::processSubscribePayload ( typename message::DeliverInfo::Ptr  ptr,
const typename NetworkType::Key &  sender 
)
inlinevirtual

used to process payload

Implements m2etis::pubsub::deliver::BaseDeliver< NetworkType >.

Definition at line 68 of file NackDeliver.h.

template<class NetworkType , int Retries, Amount Multiples>
bool m2etis::pubsub::deliver::NackDeliver< NetworkType, Retries, Multiples >::processUnsubscribePayload ( typename message::DeliverInfo::Ptr  ptr,
const typename NetworkType::Key &  sender 
)
inlinevirtual

used to process payload

Implements m2etis::pubsub::deliver::BaseDeliver< NetworkType >.

Definition at line 75 of file NackDeliver.h.


The documentation for this class was generated from the following file: