@ManagedAttribute(description="Returns stats about the current bundler") public String bundlerStats() { Map<String,Object> tmp=bundler != null? bundler.getStats() : null; return tmp != null? tmp.toString() : "n/a"; }
@ManagedOperation(description="Creates and sets a new bundler. Type has to be either a bundler_type or the fully " + "qualified classname of a Bundler impl. Stops the current bundler (if running)") public void bundler(String type) { Bundler new_bundler=createBundler(type); String old_bundler_class=null; if(bundler != null) { bundler.stop(); old_bundler_class=bundler.getClass().getName(); } new_bundler.init(this); new_bundler.start(); bundler=new_bundler; bundler_type=type; if(old_bundler_class != null) log.debug("%s: replaced bundler %s with %s", local_addr, old_bundler_class, bundler.getClass().getName()); }
@ManagedOperation(description="Resets stats of the current bundler") public void bundlerStatsReset() {bundler.resetStats();}
/** * Creates the unicast and multicast sockets and starts the unicast and multicast receiver threads */ public void start() throws Exception { if(use_ip_addrs) { PhysicalAddress tmp=getPhysicalAddress(); if(tmp instanceof IpAddress) { local_addr=new IpAddressUUID(((IpAddress)tmp).getIpAddress(), ((IpAddress)tmp).getPort()); stack.getTopProtocol().down(new Event(Event.SET_LOCAL_ADDRESS, local_addr)); stack.getTopProtocol().up(new Event(Event.SET_LOCAL_ADDRESS, local_addr)); } } fetchLocalAddresses(); if(timer == null) throw new Exception("timer is null"); startDiagnostics(); if(bundler == null) { bundler=createBundler(bundler_type); bundler.init(this); bundler.start(); } // local_addr is null when shared transport setInAllThreadFactories(cluster_name != null? cluster_name.toString() : null, local_addr, thread_naming_pattern); }
/** Serializes and sends a message. This method is not reentrant */ protected void send(Message msg, Address dest) throws Exception { // bundle all messages, even the ones tagged with DONT_BUNDLE: https://issues.jboss.org/browse/JGRP-1737 // remove the ones tagged as OOB|DONT_BUNDLE at the receiver and pass them up individually (in separate threads) Bundler tmp_bundler=bundler; if(tmp_bundler != null) tmp_bundler.send(msg); }
public void stop() { stopDiagnostics(); if(bundler != null) { bundler.stop(); bundler=null; } if(msg_processing_policy != null) msg_processing_policy.destroy(); }
@ManagedAttribute public int getBundlerBufferSize() { if(bundler instanceof TransferQueueBundler) return ((TransferQueueBundler)bundler).getBufferSize(); return bundler != null? bundler.size() : 0; }
bundler.viewChange(evt.getArg()); if(msg_processing_policy instanceof MaxOneThreadPerSender) ((MaxOneThreadPerSender)msg_processing_policy).viewChange(view.getMembers());
/** * Creates the unicast and multicast sockets and starts the unicast and multicast receiver threads */ public void start() throws Exception { if(use_ip_addrs) { PhysicalAddress tmp=getPhysicalAddress(); if(tmp instanceof IpAddress) { local_addr=new IpAddressUUID(((IpAddress)tmp).getIpAddress(), ((IpAddress)tmp).getPort()); stack.getTopProtocol().down(new Event(Event.SET_LOCAL_ADDRESS, local_addr)); stack.getTopProtocol().up(new Event(Event.SET_LOCAL_ADDRESS, local_addr)); } } fetchLocalAddresses(); if(timer == null) throw new Exception("timer is null"); startDiagnostics(); if(bundler == null) { bundler=createBundler(bundler_type); bundler.init(this); bundler.start(); } // local_addr is null when shared transport setInAllThreadFactories(cluster_name != null? cluster_name.toString() : null, local_addr, thread_naming_pattern); }
/** Serializes and sends a message. This method is not reentrant */ protected void send(Message msg, Address dest) throws Exception { // bundle all messages, even the ones tagged with DONT_BUNDLE: https://issues.jboss.org/browse/JGRP-1737 // remove the ones tagged as OOB|DONT_BUNDLE at the receiver and pass them up individually (in separate threads) Bundler tmp_bundler=bundler; if(tmp_bundler != null) tmp_bundler.send(msg); }
public void stop() { stopDiagnostics(); if(bundler != null) { bundler.stop(); bundler=null; } if(msg_processing_policy != null) msg_processing_policy.destroy(); }
@ManagedAttribute public int getBundlerBufferSize() { if(bundler instanceof TransferQueueBundler) return ((TransferQueueBundler)bundler).getBufferSize(); return bundler != null? bundler.size() : 0; }
bundler.viewChange(evt.getArg()); if(msg_processing_policy instanceof MaxOneThreadPerSender) ((MaxOneThreadPerSender)msg_processing_policy).viewChange(view.getMembers());
@ManagedOperation(description="Creates and sets a new bundler. Type has to be either a bundler_type or the fully " + "qualified classname of a Bundler impl. Stops the current bundler (if running)") public void bundler(String type) { Bundler new_bundler=createBundler(type); String old_bundler_class=null; if(bundler != null) { bundler.stop(); old_bundler_class=bundler.getClass().getName(); } new_bundler.init(this); new_bundler.start(); bundler=new_bundler; bundler_type=type; if(old_bundler_class != null) log.debug("%s: replaced bundler %s with %s", local_addr, old_bundler_class, bundler.getClass().getName()); }
@ManagedAttribute(description="Returns stats about the current bundler") public String bundlerStats() { Map<String,Object> tmp=bundler != null? bundler.getStats() : null; return tmp != null? tmp.toString() : "n/a"; }
@ManagedOperation(description="Resets stats of the current bundler") public void bundlerStatsReset() {bundler.resetStats();}