InfiniSQL  v0.1.2-alpha
Massive Scale Transaction Processing
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
TopologyMgr.cc File Reference

Actor which receives configuration commands over 0mq and MessagePack from infinisqlmgr.py. More...

#include "TopologyMgr.h"
Include dependency graph for TopologyMgr.cc:

Go to the source code of this file.

Functions

void * userSchemaMgr (void *)
 
void * listener (void *)
 launch Listener actor More...
 
void * transactionAgent (void *)
 
void * engine (void *)
 
void * deadlockMgr (void *)
 launch Engine actor More...
 
void * ibGateway (void *)
 launch IbGateway actor More...
 
void * obGateway (void *)
 launch ObGateway actor More...
 
void replyToManager (void *, msgpack::sbuffer &)
 
void * topologyMgr (void *identity)
 launch Topology Manager actor More...
 

Variables

cfg_s cfgs
 

Detailed Description

Actor which receives configuration commands over 0mq and MessagePack from infinisqlmgr.py.

Author
Mark Travis mtrav.nosp@m.is15.nosp@m.432+s.nosp@m.rc@g.nosp@m.mail..nosp@m.com
Date
Tue Dec 17 13:58:20 2013

Launches all other actors, updates Topology, and distributes configuration changes to all other actors on each node. Facilitates dynamic reconfiguration.

Definition in file TopologyMgr.cc.

Function Documentation

void* deadlockMgr ( void *  )

launch Engine actor

Parameters
identityhow to identify this
Returns

Definition at line 179 of file DeadlockMgr.cc.

Referenced by TopologyMgr::TopologyMgr().

180 {
181  new DeadlockMgr((Topology::partitionAddress *)identity);
182  while (1)
183  {
184  sleep(10);
185  }
186  return NULL;
187 }

Here is the caller graph for this function:

void* engine ( void *  )

Definition at line 167 of file Engine.cc.

Referenced by TopologyMgr::TopologyMgr().

168 {
169  Engine((Topology::partitionAddress *)identity);
170  return NULL;
171 }

Here is the caller graph for this function:

void* ibGateway ( void *  )

launch IbGateway actor

Parameters
identityhow to identify actor instance
Returns

Definition at line 420 of file IbGateway.cc.

References IbGateway::IbGateway().

Referenced by TopologyMgr::TopologyMgr().

421 {
422  new IbGateway((Topology::partitionAddress *)identity);
423  while (1)
424  {
425  sleep(500000);
426  }
427  return NULL;
428 }

Here is the call graph for this function:

Here is the caller graph for this function:

void* listener ( void *  )

launch Listener actor

Parameters
identityhow to identify Listener instance
Returns

Definition at line 201 of file Listener.cc.

Referenced by TopologyMgr::TopologyMgr().

202 {
203  new Listener((Topology::partitionAddress *)identity);
204  while (1)
205  {
206  sleep(250000);
207  }
208  return NULL;
209 }

Here is the caller graph for this function:

void* obGateway ( void *  )

launch ObGateway actor

Parameters
identityhow to identify actor instance
Returns

Definition at line 274 of file ObGateway.cc.

Referenced by TopologyMgr::TopologyMgr().

275 {
276  new ObGateway((Topology::partitionAddress *)identity);
277  while (1)
278  {
279  sleep(150000);
280  }
281  return NULL;
282 }

Here is the caller graph for this function:

void replyToManager ( void *  zmqsocket,
msgpack::sbuffer &  sbuf 
)

Definition at line 609 of file TopologyMgr.cc.

Referenced by TopologyMgr::TopologyMgr().

610 {
611  zmq_msg_t zmqmsg;
612  zmq_msg_init_size(&zmqmsg, sbuf.size());
613  memcpy(zmq_msg_data(&zmqmsg), sbuf.data(), sbuf.size());
614  zmq_msg_send(&zmqmsg, zmqsocket, 0);
615  zmq_msg_close(&zmqmsg);
616 }

Here is the caller graph for this function:

void* topologyMgr ( void *  identity)

launch Topology Manager actor

Launcher function for TopologyMgr actor

Definition at line 599 of file TopologyMgr.cc.

Referenced by main().

600 {
601  new TopologyMgr((Topology::partitionAddress *)identity);
602  while (1)
603  {
604  sleep(1000000);
605  }
606  return NULL;
607 }

Here is the caller graph for this function:

void* transactionAgent ( void *  )

Definition at line 633 of file TransactionAgent.cc.

Referenced by TopologyMgr::TopologyMgr().

634 {
636  return NULL;
637 }

Here is the caller graph for this function:

void* userSchemaMgr ( void *  )

Definition at line 191 of file UserSchemaMgr.cc.

Referenced by TopologyMgr::TopologyMgr().

192 {
194  return NULL;
195 }

Here is the caller graph for this function:

Variable Documentation

cfg_s cfgs

Definition at line 37 of file main.cc.