| Modifier and Type | Class and Description |
|---|---|
static class |
JGroupsCluster.ClusterMessageHeader |
class |
JGroupsCluster.JGroupsConnector |
| Constructor and Description |
|---|
JGroupsCluster(RevenoClusterConfiguration config,
org.jgroups.JChannel channel) |
| Modifier and Type | Method and Description |
|---|---|
void |
connect()
Connects to the current Reveno group of nodes.
|
void |
disconnect()
Marks itself as detached from the cluster, and frees all allocated resources and connections
for it.
|
ClusterConnector |
gateway()
Provides gateway instance which provides with communication ability between nodes via
sending
Messages to each other. |
boolean |
isConnected()
Checks whether current node is included in current group of hosts.
|
void |
listenEvents(java.util.function.Consumer<ClusterEvent> consumer)
Subscribes to the set of events, which can eventually be issued, reflecting some changes in
membership, etc.
|
void |
marshallWith(Marshaller marshaller)
Sets the marshaller instance, which will be used to marshall/unmarshall all incoming/outgoing
messages.
|
ClusterView |
view()
Returns the current Reveno Cluster View.
|
public JGroupsCluster(RevenoClusterConfiguration config, org.jgroups.JChannel channel)
public void connect()
Clusterpublic void disconnect()
Clusterdisconnect in interface Clusterpublic boolean isConnected()
ClusterisConnected in interface Clusterpublic ClusterConnector gateway()
ClusterMessages to each other.public void marshallWith(Marshaller marshaller)
ClustermarshallWith in interface Clusterpublic void listenEvents(java.util.function.Consumer<ClusterEvent> consumer)
ClusterlistenEvents in interface Clusterpublic ClusterView view()
ClusterCopyright © 2015 Artem Dmitriev. All Rights Reserved.