public MessageWindow(final String groupName, final ArrayBlockingQueue<MessagePacket> messageQueue) { this.groupName = groupName; this.messageQueue = messageQueue; GMSThreadFactory gtf = new GMSThreadFactory("GMS-DistributedStateCache-Group-" + groupName + "-thread"); this.dscExecutor = Executors.newSingleThreadExecutor(gtf); }
public MessageWindow(final String groupName, final ArrayBlockingQueue<MessagePacket> messageQueue) { this.groupName = groupName; this.messageQueue = messageQueue; GMSThreadFactory gtf = new GMSThreadFactory("GMS-DistributedStateCache-Group-" + groupName + "-thread"); this.dscExecutor = Executors.newSingleThreadExecutor(gtf); }
public Router(String groupName, int queueSize, AliveAndReadyViewWindow viewWindow, int incomingMsgThreadPoolSize, GMSMonitor gmsMonitor) { this.groupName = groupName; aliveAndReadyView = viewWindow; MAX_QUEUE_SIZE = queueSize; queue = new ArrayBlockingQueue<SignalPacket>(MAX_QUEUE_SIZE); signalHandler = new SignalHandler(queue, this); signalHandlerThread = new Thread(signalHandler, "GMS SignalHandler for Group-" + groupName + " thread"); signalHandlerThread.setDaemon(true); signalHandlerThread.start(); GMSThreadFactory tf = new GMSThreadFactory("GMS-processNotify-Group-" + groupName + "-thread"); actionPool = Executors.newFixedThreadPool(5, tf); tf = new GMSThreadFactory("GMS-processInboundMsg-Group-" + groupName + "-thread");; messageActionPool = Executors.newFixedThreadPool(incomingMsgThreadPoolSize, tf); startupTime = System.currentTimeMillis(); this.gmsMonitor = gmsMonitor; GMSContext ctx = GMSContextFactory.getGMSContext(groupName); if (ctx == null || ctx.getMemberType() == GroupManagementService.MemberType.CORE) { isSpectator = false; } else { isSpectator = true; } if (logger.isLoggable(Level.FINE)) { logger.fine("Router: isSpectator:" + isSpectator + " MONITOR_ENABLED:" + gmsMonitor.ENABLED); } }
public Router(String groupName, int queueSize, AliveAndReadyViewWindow viewWindow, int incomingMsgThreadPoolSize, GMSMonitor gmsMonitor) { this.groupName = groupName; aliveAndReadyView = viewWindow; MAX_QUEUE_SIZE = queueSize; queue = new ArrayBlockingQueue<SignalPacket>(MAX_QUEUE_SIZE); signalHandler = new SignalHandler(queue, this); signalHandlerThread = new Thread(signalHandler, "GMS SignalHandler for Group-" + groupName + " thread"); signalHandlerThread.setDaemon(true); signalHandlerThread.start(); GMSThreadFactory tf = new GMSThreadFactory("GMS-processNotify-Group-" + groupName + "-thread"); actionPool = Executors.newFixedThreadPool(5, tf); tf = new GMSThreadFactory("GMS-processInboundMsg-Group-" + groupName + "-thread");; messageActionPool = Executors.newFixedThreadPool(incomingMsgThreadPoolSize, tf); startupTime = System.currentTimeMillis(); this.gmsMonitor = gmsMonitor; GMSContext ctx = GMSContextFactory.getGMSContext(groupName); if (ctx == null || ctx.getMemberType() == GroupManagementService.MemberType.CORE) { isSpectator = false; } else { isSpectator = true; } if (logger.isLoggable(Level.FINE)) { logger.fine("Router: isSpectator:" + isSpectator + " MONITOR_ENABLED:" + gmsMonitor.ENABLED); } }
this.failureDetectionTCPTimeout = failureDetectionTCPTimeout; this.failureDetectionTCPPort = failureDetectionTCPPort; ThreadFactory isConnectedThreadFactory = new GMSThreadFactory("GMS-isConnected-Group-" + manager.getGroupName() + "-thread"); isConnectedPool = (ThreadPoolExecutor) Executors.newFixedThreadPool(3, isConnectedThreadFactory); if (LOG.isLoggable(Level.CONFIG)) {
this.failureDetectionTCPTimeout = failureDetectionTCPTimeout; this.failureDetectionTCPPort = failureDetectionTCPPort; ThreadFactory isConnectedThreadFactory = new GMSThreadFactory("GMS-isConnected-Group-" + manager.getGroupName() + "-thread"); isConnectedPool = (ThreadPoolExecutor) Executors.newFixedThreadPool(3, isConnectedThreadFactory); if (LOG.isLoggable(Level.CONFIG)) {
outstandingMasterNodeMessages = new TreeSet<MasterNodeMessageEvent>(); checkForMissedMasterMsgSingletonExecutor = Executors.newSingleThreadExecutor(new GMSThreadFactory("GMS-validateMasterChangeEvents-Group-" + manager.getGroupName() + "-thread")); String value = (String)props.get(DISCOVERY_URI_LIST.toString()); boolean NON_MULTICAST_VALUE = value != null;
outstandingMasterNodeMessages = new TreeSet<MasterNodeMessageEvent>(); checkForMissedMasterMsgSingletonExecutor = Executors.newSingleThreadExecutor(new GMSThreadFactory("GMS-validateMasterChangeEvents-Group-" + manager.getGroupName() + "-thread")); String value = (String)props.get(DISCOVERY_URI_LIST.toString()); boolean NON_MULTICAST_VALUE = value != null;
ThreadFactory tf = new GMSThreadFactory("GMS-McastMsgProcessor-Group-" + groupName + "-thread"); multicastSenderThreadPool = new ThreadPoolExecutor( 10, 10, 60 * 1000, TimeUnit.MILLISECONDS,
ThreadFactory tf = new GMSThreadFactory("GMS-McastMsgProcessor-Group-" + groupName + "-thread"); multicastSenderThreadPool = new ThreadPoolExecutor( 10, 10, 60 * 1000, TimeUnit.MILLISECONDS,
} else { final boolean FAIRNESS = true; ThreadFactory tf = new GMSThreadFactory("GMS-McastMsgProcessor-Group-" + groupName + "-thread"); multicastSenderThreadPool = new ThreadPoolExecutor( 10, 10, 60 * 1000, TimeUnit.MILLISECONDS, new ArrayBlockingQueue<Runnable>( 1024, FAIRNESS ), tf ); multicastSender = new BlockingIOMulticastSender( host,