def __init__(self, recv_queue, send_queues): self.connection = Connection() self.receiver = SecureRpcReceiver(recv_queue, self.connection) self.senders = [] for queue in send_queues: print("Linking senders to: {}".format(queue)) self.senders.append(SecureRpcSender(queue, Connection()))
def __init__(self, recv_queue): self.connection = Connection() self.expected = 3 self.actual = 0 self.receiver = self.connection.create_direct_receiver(recv_queue)
def __init__(self, recv_queue, send_queue, total_workers): self.connection = Connection() self.pending_connections = total_workers self.receiver = self.connection.create_direct_receiver(recv_queue) self.sender = self.connection.create_direct_sender(send_queue)
def __init__(self, recv_queue, state_saver): self.connection = Connection() self.receiver = SecureDirectReceiver(recv_queue, self.connection) self.state_saver = state_saver self.connection_id = None
def __init__(self, recv_queue, send_queue, total_workers): self.connection = Connection() self.total_workers = total_workers self.receiver = self.connection.create_direct_receiver(recv_queue) self.sender = self.connection.create_distributed_work_sender( send_queue)
def __init__(self, recv_queue, send_queue, total_workers, status_queue): self.connection = Connection() print("Connected to RabbitMQ") self.total_workers = total_workers self.status_sender = SecureDirectSender(status_queue, self.connection) self.receiver = SecureDirectReceiver(recv_queue, self.connection) self.sender = SecureDistributedSender(send_queue, self.connection)
def __init__(self, recv_queue, send_queue, status_queue, data_cluster_write, data_cluster_read): self.connection = Connection() self.receiver = SecureDirectReceiver(recv_queue, self.connection) self.sender = SecureDirectSender(send_queue, self.connection) self.state_saver = StateSaver(STAGE, data_cluster_write, data_cluster_read) self.connection_id = None
def __init__( self, recv_queue, status_queue, data_cluster_write, data_cluster_read, coordinator_queue ): self.connection = Connection() self.expected = EXPECTED_EOF self.actual = 0 self.receiver = SecureDirectReceiver(recv_queue, self.connection) self.status_sender = SecureDirectSender(status_queue, self.connection) self.coordinator_sender = SecureRpcSender(coordinator_queue, Connection()) self.state_saver = StateSaver(STAGE, data_cluster_write, data_cluster_read) self.connection_id = None
def __init__(self, recv_queue, send_queues, master_send_queue): self.connection = Connection() self.receiver = self.connection.create_distributed_work_receiver( recv_queue) self.senders = {} for queue in send_queues: self.senders[queue] = self.connection.create_direct_sender(queue) self.master_sender = self.connection.create_direct_sender( master_send_queue)
def __init__(self, queue_map, queue_date, queue_count, eof_map, eof_date, eof_count, topic_places): self.connection = Connection() self.sender_map = self.connection.create_distributed_work_sender( queue_map) self.sender_date = self.connection.create_distributed_work_sender( queue_date) self.sender_count = self.connection.create_distributed_work_sender( queue_count) self.sender_places = self.connection.create_topic_sender(topic_places) self.eof_map = self.connection.create_direct_sender(eof_map) self.eof_date = self.connection.create_direct_sender(eof_date) self.eof_count = self.connection.create_direct_sender(eof_count)
def __init__(self, recv_queue, send_queues, master_send_queue, status_queue, state_saver, my_id): self.connection = Connection() self.status_sender = SecureDirectSender(status_queue, self.connection) self.senders = {} self.recv_queue = recv_queue for queue in send_queues: self.senders[queue] = SecureDirectSender(queue, self.connection) self.master_sender = SecureDirectSender(master_send_queue, self.connection) self.state_saver = state_saver self.my_id = my_id print("Creating RabbitMQ Queue: {}".format(self.recv_queue)) self.receiver = SecureDistributedReceiver(self.recv_queue, self.connection)
def __init__(self, recv_queue, send_queue, total_workers, status_queue, worker_id, data_cluster_write, data_cluster_read): self.connection = Connection() self.worker_id = worker_id self.total_workers = total_workers self.pending_connections = total_workers self.receiver = SecureDirectReceiver(recv_queue, self.connection) self.sender = SecureDirectSender(send_queue, self.connection) self.status_sender = SecureDirectSender(status_queue, self.connection) self.send_queue = send_queue self.state_saver = StateSaver(self.worker_id, data_cluster_write, data_cluster_read) self.connection_id = None
def __init__(self, send_queue): self.connection = Connection() self.sender = SecureDirectSender(send_queue, self.connection)
def __init__(self, recv_queue): self.connection = Connection() self.receiver = SecureRpcReceiver(recv_queue, self.connection)
def __init__(self, recv_queue, callback): self.connection = Connection() self.callback = callback self.receiver = self.connection.create_topic_receiver(recv_queue)
def __init__(self, recv_queue, data_cluster_write, data_cluster_read): self.connection = Connection() self.state_saver = StateSaver("coordinator_" + recv_queue, data_cluster_write, data_cluster_read) self.recv_queue = recv_queue
def __init__(self, recv_queue, send_queue): self.connection = Connection() self.receiver = self.connection.create_direct_receiver(recv_queue) self.sender = self.connection.create_direct_sender(send_queue)
def __init__(self, cluster_w_dir, cluster_r_dir): self.connection = Connection() self.sender_write = SecureRpcSender(cluster_w_dir, self.connection) self.sender_read = SecureRpcSender(cluster_r_dir, self.connection)
def __init__(self, send_queue, callback): self.connection = Connection() self.callback = callback self.sender = SecureRpcSender(send_queue, self.connection)