|
Public Member Functions |
| postmaster (const char *host, unsigned short host_port, unsigned short serverport, int backlog=10) |
| ~postmaster () |
void | terminate_node () |
void | terminate_system () |
void | reg (const actorref &r, actor *a) |
void | reg (const syncref &s, synchronizer *s) |
void | reg (const syncref &s, globalsync *s) |
void | reg (const syncref &s, const actorref &a1, const actorref &a2) |
void | broadcast_action (const actorref &a, const method &m) |
void | sendmsg (const message &m) |
void | sendsyncmsg (const message &m) |
void | recvsyncmsg (const message &m) |
void | run (const actorref &a, const method &m, bool connect) |
void | run (bool connect) |
void | sm_notify_action (const syncref &s, const actorref &a, const method &m, const rttime_t &t) |
message | sm_request_msg (const syncref &s, const actorref &a) |
void | sm_ack_msg (const syncref &s, const message &m) |
bool | am_enabled (const actorref &a, const method &m) |
void | am_enable (const actorref &a, const method &m) |
void | am_disable (const actorref &a, const method &m) |
rttime_t | am_lastrun (const actorref &a, const method &m) |
void | am_register_msg (const actorref &a, syncref s, rttime_t priority) |
void | am_register_listener (const actorref &a, const syncref &s) |
void | update_local_run (const actorref &a, const method &m) |
void | reg_methods (const actorref &a, const std::list< method > &ml) |
net_id | get_nid () |
Private Types |
typedef lock_map< actorref,
actor * > | actormap |
typedef lock_map< syncref,
actionlistener * > | listenermap |
typedef lock_map< syncref,
synchronizer * > | syncmap |
typedef lock_map< std::pair<
actorref, actorref >, syncref > | sync_rel_map |
typedef std::pair< actorref,
syncref > | reg_pair |
typedef boost::tuple< pthread_cond_t,
bool > | block_param |
typedef boost::tuple< pthread_cond_t,
bool, message > | ret_param |
typedef lock_map< actorref,
ret_param > | recv_msg_map |
typedef lock_map< actorref,
net_id > | rem_actor_map |
typedef lock_map< syncref,
net_id > | rem_sync_map |
typedef lock_map< std::pair<
actorref, method >, method_info > | method_map |
enum | message_type {
RT_MESSAGE = 1,
RT_NOTIF = 2,
RT_REQUEST = 3,
RT_REQRESPONSE = 4,
RT_REGMSG = 5,
RT_ENABLE = 6,
RT_DISABLE = 7,
RT_REG_LISTENER = 8,
RT_ACKMSG = 9,
RT_POST_ENABLE = 10,
RT_POST_DISABLE = 11,
RT_GET_NETIDS = 12,
RT_POPULATE = 13,
RT_POPULATION = 14,
RT_TERMINATE = 15,
RT_KILLALL = 16,
RT_TIMEUPDATE = 17,
RT_SYNCNOTE = 18
} |
Private Member Functions |
void | net_recv () |
void | populate (std::stringstream &ss, net_id n) |
void | send_population_data (net_id n) |
void | parse_data (const net_id &nid, rtsocket &sock) |
void | terminate (const net_id &nid) |
void | update_run (const actorref &a, const method &m, const rttime_t &t) |
Private Attributes |
pthread_t | recv_thread |
net_id | m_id |
std::string | null_name |
int | server_socket |
int | awaiting_postmasters |
lock_map< net_id, rtsocket * > | postmasters |
actormap | actors |
listenermap | listeners |
syncmap | synchronizers |
sync_rel_map | sync_rel |
globalsync * | gsync |
synchronizer * | nullsync |
lock_list< reg_pair > | reg_requests |
lock_list< reg_pair > | listener_cache |
lock_list< boost::tuple< actorref,
syncref, rttime_t > > | msg_reg_cache |
lock_map< message::serial_no,
block_param > | return_map |
recv_msg_map | recv_msgs |
rem_actor_map | rem_actors |
rem_sync_map | rem_syncs |
method_map | methods |
Friends |
bool | operator< (const rem_actor_map::iterator &i1, const rem_actor_map::iterator &i2) |
void * | start_polling_func (postmaster *p) |
Classes |
struct | method_info |