m2etis  0.4
m2etis::wrapper::chimera::ChimeraWrapper Class Reference

The C++-wrapper around chimera. More...

#include <ChimeraWrapper.h>

Inheritance diagram for m2etis::wrapper::chimera::ChimeraWrapper:
Inheritance graph

Public Types

enum  { keysize }
 

Public Member Functions

 ChimeraWrapper ()
 
 ~ChimeraWrapper ()
 
void init (const int port)
 
void init (const int port, const std::string &known_hostname, const int know_hostport)
 
net::NodeHandle< net::NetworkType< net::CHIMERA > >::Ptr getSelfNodeHandle () const
 query your NodeHandle. You may query that for it's key. More...
 
std::list< net::NodeHandle< net::NetworkType< net::CHIMERA > >::Ptr > local_lookup (const net::NetworkType< net::CHIMERA >::Key &key, const int num, const bool safe) const
 
std::list< net::NodeHandle< net::NetworkType< net::CHIMERA > >::Ptr > neighborSet (const int num) const
 
std::list< net::NodeHandle< net::NetworkType< net::CHIMERA > >::Ptr > replicaSet (const net::NetworkType< net::CHIMERA >::Key &key, const int maxRank) const
 
bool isResponsibleFor (const net::NetworkType< net::CHIMERA >::Key &key, const net::NetworkType< net::CHIMERA >::Key &node) const
 
bool range (const net::NodeHandle< net::NetworkType< net::CHIMERA >>::Ptr node, int rank, const net::NetworkType< net::CHIMERA >::Key &lkey, const net::NetworkType< net::CHIMERA >::Key &rkey) const
 
void registerMessageType (const message::MessageType type, const bool ack) const
 
void send (const typename message::NetworkMessage< net::NetworkType< net::CHIMERA >>::Ptr msg, typename net::NodeHandle< net::NetworkType< net::CHIMERA >>::Ptr_const hint)
 
void send (const typename message::NetworkMessage< net::NetworkType< net::CHIMERA >>::Ptr msg)
 
- Public Member Functions inherited from m2etis::net::NetworkInterface< net::NetworkType< net::CHIMERA > >
virtual ~NetworkInterface ()
 
void setCallback (NetworkCallbackInterface< net::NetworkType< net::CHIMERA > > *cb)
 Sets the callback-object on which the defined callbacks will be called. More...
 
virtual void send (const typename message::NetworkMessage< net::NetworkType< net::CHIMERA > >::Ptr msg, typename NodeHandle< net::NetworkType< net::CHIMERA > >::Ptr_const hint)=0
 Sends a message to the node which is responsible for the given key. Provide a hint for better routing. More...
 
virtual void registerMessageType (const typename net::NetworkType< net::CHIMERA >::MessageType type, const bool ack) const =0
 register a messagetype. Only registered types are sent. More...
 

Additional Inherited Members

- Protected Attributes inherited from m2etis::net::NetworkInterface< net::NetworkType< net::CHIMERA > >
net::NetworkCallbackInterface< net::NetworkType< net::CHIMERA > > * _callback
 returns an array of count neighbor nodes with priority to closer nodes. More...
 

Detailed Description

The C++-wrapper around chimera.

Definition at line 36 of file ChimeraWrapper.h.

Member Enumeration Documentation

anonymous enum
Enumerator
keysize 

Definition at line 44 of file ChimeraWrapper.h.

Constructor & Destructor Documentation

m2etis::wrapper::chimera::ChimeraWrapper::ChimeraWrapper ( )
m2etis::wrapper::chimera::ChimeraWrapper::~ChimeraWrapper ( )

Member Function Documentation

net::NodeHandle<net::NetworkType<net::CHIMERA> >::Ptr m2etis::wrapper::chimera::ChimeraWrapper::getSelfNodeHandle ( ) const
virtual

query your NodeHandle. You may query that for it's key.

Returns
the NodeHandle to your underlying node.

Implements m2etis::net::NetworkInterface< net::NetworkType< net::CHIMERA > >.

void m2etis::wrapper::chimera::ChimeraWrapper::init ( const int  port)
void m2etis::wrapper::chimera::ChimeraWrapper::init ( const int  port,
const std::string &  known_hostname,
const int  know_hostport 
)
bool m2etis::wrapper::chimera::ChimeraWrapper::isResponsibleFor ( const net::NetworkType< net::CHIMERA >::Key &  key,
const net::NetworkType< net::CHIMERA >::Key &  node 
) const
std::list<net::NodeHandle<net::NetworkType<net::CHIMERA> >::Ptr> m2etis::wrapper::chimera::ChimeraWrapper::local_lookup ( const net::NetworkType< net::CHIMERA >::Key &  key,
const int  num,
const bool  safe 
) const
std::list<net::NodeHandle<net::NetworkType<net::CHIMERA> >::Ptr> m2etis::wrapper::chimera::ChimeraWrapper::neighborSet ( const int  num) const
bool m2etis::wrapper::chimera::ChimeraWrapper::range ( const net::NodeHandle< net::NetworkType< net::CHIMERA >>::Ptr  node,
int  rank,
const net::NetworkType< net::CHIMERA >::Key &  lkey,
const net::NetworkType< net::CHIMERA >::Key &  rkey 
) const
void m2etis::wrapper::chimera::ChimeraWrapper::registerMessageType ( const message::MessageType  type,
const bool  ack 
) const
std::list<net::NodeHandle<net::NetworkType<net::CHIMERA> >::Ptr> m2etis::wrapper::chimera::ChimeraWrapper::replicaSet ( const net::NetworkType< net::CHIMERA >::Key &  key,
const int  maxRank 
) const
void m2etis::wrapper::chimera::ChimeraWrapper::send ( const typename message::NetworkMessage< net::NetworkType< net::CHIMERA >>::Ptr  msg,
typename net::NodeHandle< net::NetworkType< net::CHIMERA >>::Ptr_const  hint 
)
void m2etis::wrapper::chimera::ChimeraWrapper::send ( const typename message::NetworkMessage< net::NetworkType< net::CHIMERA >>::Ptr  msg)

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