Log Jgroups stack
package org.radargun.service;
import org.infinispan.remoting.transport.jgroups.JGroupsTransport;
+import org.radargun.logging.Log;
+import org.radargun.logging.LogFactory;
/**
* Infinispan 10.0.x custom JGroupsTransport
@@ -9,6 +11,8 @@ import org.infinispan.remoting.transport.jgroups.JGroupsTransport;
*/
public class Infinispan100HookedJGroupsTransport extends JGroupsTransport {
+ private static final Log log = LogFactory.getLog(Infinispan100HookedJGroupsTransport.class);
+
private InfinispanPartitionableLifecycle lifecycle;
public Infinispan100HookedJGroupsTransport(InfinispanPartitionableLifecycle lifecycle) {
@@ -23,5 +27,6 @@ public class Infinispan100HookedJGroupsTransport extends JGroupsTransport {
protected void startJGroupsChannelIfNeeded() {
this.lifecycle.handleStartJGroupsChannelIfNeeded(this.channel);
super.startJGroupsChannelIfNeeded();
+ log.info(String.format("JGroups stack: %s", this.channel.getProtocolStack().getProtocols()));
}
}
