public FunctionEdgeListener(int id, double loss_prob, TAAuthorizer ta_auth) { _listener_id = id; _ploss_prob = loss_prob; if (ta_auth == null) { _ta_auth = new ConstantAuthorizer(TAAuthorizer.Decision.Allow); } else { _ta_auth = ta_auth; } _tas = new ArrayList(); _tas.Add(TransportAddressFactory.CreateInstance("brunet.function://localhost:" + _listener_id.ToString())); _queue = new BC.LFBlockingQueue <FQEntry>(); _queue_thread = new Thread(new ThreadStart(StartQueueProcessing)); }
public FunctionEdgeListener(int id, double loss_prob, TAAuthorizer ta_auth) { _listener_id = id; _ploss_prob = loss_prob; if (ta_auth == null) { _ta_auth = new ConstantAuthorizer(TAAuthorizer.Decision.Allow); } else { _ta_auth = ta_auth; } _tas = new ArrayList(); _tas.Add(TransportAddressFactory.CreateInstance("brunet.function://localhost:" + _listener_id.ToString()) ); _queue = new BC.LFBlockingQueue<FQEntry>(); _queue_thread = new Thread(new ThreadStart(StartQueueProcessing)); }