Class JGroupsChannel


  • public class JGroupsChannel
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getClusterName()
      The common name known and configured in the bootstrap.properties by each instance in this cluster.
      java.lang.String getConfigResource()  
      static JGroupsChannel getInstance()  
      static JGroupsChannel getInstance​(java.lang.String configResource)  
      org.jgroups.JChannel getJGroupsChannel()
      JGroups manager that will handle the broadcasting and receiving of network pings.
      void setClusterName​(java.lang.String clusterName)
      The common name known and configured in the bootstrap.properties by each instance in this cluster.
      void setConfigResource​(java.lang.String configResource)  
      void setJGroupsChannel​(org.jgroups.JChannel jChannel)
      JGroups manager that will handle the broadcasting and receiving of network pings.
      void start()  
      void stop()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getInstance

        public static JGroupsChannel getInstance​(java.lang.String configResource)
      • getJGroupsChannel

        public org.jgroups.JChannel getJGroupsChannel()
                                               throws java.lang.Exception

        JGroups manager that will handle the broadcasting and receiving of network pings.

        Typically, you won't need to set or access this member. It is all handled internally. The getter and setter only exist for unit test mocking.

        When JGroups is initialised the configuration file is taken from the META-INF directory of this jar file.

        Throws:
        java.lang.Exception
      • setJGroupsChannel

        public void setJGroupsChannel​(org.jgroups.JChannel jChannel)

        JGroups manager that will handle the broadcasting and receiving of network pings.

        Typically, you won't need to set or access this member. It is all handled internally. The getter and setter only exist for unit test mocking.

        When JGroups is initialised the configuration file is taken from the META-INF directory of this jar file, or a configured override..

      • start

        public void start()
                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • stop

        public void stop()
      • getClusterName

        public java.lang.String getClusterName()
        The common name known and configured in the bootstrap.properties by each instance in this cluster.
      • setClusterName

        public void setClusterName​(java.lang.String clusterName)
        The common name known and configured in the bootstrap.properties by each instance in this cluster.
      • getConfigResource

        public java.lang.String getConfigResource()
      • setConfigResource

        public void setConfigResource​(java.lang.String configResource)