/** * Creates the unicast and multicast sockets and starts the unicast and multicast receiver threads */ public void start() throws Exception { try { createSockets(); super.start(); } catch(Exception ex) { destroySockets(); throw ex; } ucast_receivers=createReceivers(unicast_receiver_threads, sock, UCAST_NAME); if(ip_mcast) mcast_receivers=createReceivers(multicast_receiver_threads, mcast_sock, MCAST_NAME); }
@Property(description="Number of multicast receiver threads, all reading from the same MulticastSocket. " + "If de-serialization is slow, increasing the number of receiver threads might yield better performance.") public void setMcastReceiverThreads(int num) { if(multicast_receiver_threads != num) { multicast_receiver_threads=num; if(mcast_receivers != null) { stopMcastReceiverThreads(); mcast_receivers=createReceivers(multicast_receiver_threads, mcast_sock, MCAST_NAME); startMcastReceiverThreads(); } } }
@Property(description="Number of unicast receiver threads, all reading from the same DatagramSocket. " + "If de-serialization is slow, increasing the number of receiver threads might yield better performance.") public void setUcastReceiverThreads(int num) { if(unicast_receiver_threads != num) { unicast_receiver_threads=num; if(ucast_receivers != null) { stopUcastReceiverThreads(); ucast_receivers=createReceivers(unicast_receiver_threads, sock, UCAST_NAME); startUcastReceiverThreads(); } } }
/** * Creates the unicast and multicast sockets and starts the unicast and multicast receiver threads */ public void start() throws Exception { try { createSockets(); super.start(); } catch(Exception ex) { destroySockets(); throw ex; } ucast_receivers=createReceivers(unicast_receiver_threads, sock, UCAST_NAME); if(ip_mcast) mcast_receivers=createReceivers(multicast_receiver_threads, mcast_sock, MCAST_NAME); }
@Property(description="Number of unicast receiver threads, all reading from the same DatagramSocket. " + "If de-serialization is slow, increasing the number of receiver threads might yield better performance.") public void setUcastReceiverThreads(int num) { if(unicast_receiver_threads != num) { unicast_receiver_threads=num; if(ucast_receivers != null) { stopUcastReceiverThreads(); ucast_receivers=createReceivers(unicast_receiver_threads, sock, UCAST_NAME); startUcastReceiverThreads(); } } }
@Property(description="Number of multicast receiver threads, all reading from the same MulticastSocket. " + "If de-serialization is slow, increasing the number of receiver threads might yield better performance.") public void setMcastReceiverThreads(int num) { if(multicast_receiver_threads != num) { multicast_receiver_threads=num; if(mcast_receivers != null) { stopMcastReceiverThreads(); mcast_receivers=createReceivers(multicast_receiver_threads, mcast_sock, MCAST_NAME); startMcastReceiverThreads(); } } }