<?xml version='1.0' encoding='UTF-8'?>
<!-- See src/resources/configuration/ReadMe.txt for how the configuration assembly works -->
<config>
   <extension-module>org.jboss.as.clustering.jgroups</extension-module>
   <subsystem xmlns="urn:infinispan:server:jgroups:7.0" default-stack="${jboss.default.jgroups.stack:udp}">
      <stack name="udp">
         <transport type="UDP" socket-binding="jgroups-udp" />
         <protocol type="PING" />
         <protocol type="MERGE3" />
         <protocol type="FD_SOCK" socket-binding="jgroups-udp-fd" />
         <protocol type="FD_ALL" />
         <protocol type="VERIFY_SUSPECT"/>         
         <protocol type="pbcast.NAKACK2" />
         <protocol type="UNICAST3" />
         <protocol type="pbcast.STABLE" />
         <protocol type="pbcast.GMS" />
         <protocol type="UFC" />
         <protocol type="MFC" />
         <protocol type="FRAG2" />
      </stack>
      <stack name="tcp">
         <transport type="TCP" socket-binding="jgroups-tcp" />
         <protocol type="MPING" socket-binding="jgroups-mping" />
         <protocol type="MERGE3" />
         <protocol type="FD_SOCK" socket-binding="jgroups-tcp-fd" />
         <protocol type="FD_ALL" />
         <protocol type="VERIFY_SUSPECT" />
         <protocol type="pbcast.NAKACK2">
            <property name="use_mcast_xmit">false</property>
         </protocol>
         <protocol type="UNICAST3" />
         <protocol type="pbcast.STABLE" />
         <protocol type="pbcast.GMS" />
         <protocol type="MFC" />
         <protocol type="FRAG2" />
      </stack>
      <stack name="s3">
         <transport type="TCP" socket-binding="jgroups-tcp" />
         <protocol type='S3_PING'>
            <property name="location">${jgroups.s3.bucket:}</property>
            <property name="access_key">${jgroups.s3.access_key:}</property>
            <property name="secret_access_key">${jgroups.s3.secret_access_key:}</property>
            <property name="pre_signed_delete_url">${jgroups.s3.pre_signed_delete_url:}</property>
            <property name="pre_signed_put_url">${jgroups.s3.pre_signed_put_url:}</property>
            <property name="prefix">${jgroups.s3.prefix:}</property>
         </protocol>
         <protocol type="MERGE3" />
         <protocol type="FD_SOCK" socket-binding="jgroups-tcp-fd" />
         <protocol type="FD_ALL" />
         <protocol type="VERIFY_SUSPECT" />
         <protocol type="pbcast.NAKACK2">
            <property name="use_mcast_xmit">false</property>
         </protocol>
         <protocol type="UNICAST3" />
         <protocol type="pbcast.STABLE" />
         <protocol type="pbcast.GMS" />
         <protocol type="MFC" />
         <protocol type="FRAG2" />
      </stack>
      <stack name="google">
         <transport type="TCP" socket-binding="jgroups-tcp" />
         <protocol type='GOOGLE_PING'>
            <property name="location">${jgroups.google.bucket:}</property>
            <property name="access_key">${jgroups.google.access_key:}</property>
            <property name="secret_access_key">${jgroups.google.secret_access_key:}</property>
         </protocol>
         <protocol type="MERGE3" />
         <protocol type="FD_SOCK" socket-binding="jgroups-tcp-fd" />
         <protocol type="FD_ALL" />
         <protocol type="VERIFY_SUSPECT" />
         <protocol type="pbcast.NAKACK2">
            <property name="use_mcast_xmit">false</property>
         </protocol>
         <protocol type="UNICAST3" />
         <protocol type="pbcast.STABLE" />
         <protocol type="pbcast.GMS" />
         <protocol type="MFC" />
         <protocol type="FRAG2" />
      </stack>
   </subsystem>

   <socket-binding name="jgroups-mping" port="0" multicast-address="${jboss.default.multicast.address:234.99.54.14}" multicast-port="45700" />
   <socket-binding name="jgroups-tcp" port="7600" />
   <socket-binding name="jgroups-tcp-fd" port="57600" />
   <socket-binding name="jgroups-udp" port="55200" multicast-address="${jboss.default.multicast.address:234.99.54.14}" multicast-port="45688" />
   <socket-binding name="jgroups-udp-fd" port="54200" />
</config>
