Class JGroupsChannel
- java.lang.Object
-
- com.adaptris.mgmt.cluster.jgroups.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.StringgetClusterName()The common name known and configured in the bootstrap.properties by each instance in this cluster.java.lang.StringgetConfigResource()static JGroupsChannelgetInstance()static JGroupsChannelgetInstance(java.lang.String configResource)org.jgroups.JChannelgetJGroupsChannel()JGroups manager that will handle the broadcasting and receiving of network pings.voidsetClusterName(java.lang.String clusterName)The common name known and configured in the bootstrap.properties by each instance in this cluster.voidsetConfigResource(java.lang.String configResource)voidsetJGroupsChannel(org.jgroups.JChannel jChannel)JGroups manager that will handle the broadcasting and receiving of network pings.voidstart()voidstop()
-
-
-
Method Detail
-
getInstance
public static JGroupsChannel getInstance()
-
getInstance
public static JGroupsChannel getInstance(java.lang.String configResource)
-
getJGroupsChannel
public org.jgroups.JChannel getJGroupsChannel() throws java.lang.ExceptionJGroups 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)
-
-