public class SocketClusterBroadcast extends Object implements ClusterBroadcast
| Constructor and Description |
|---|
SocketClusterBroadcast() |
| Modifier and Type | Method and Description |
|---|---|
void |
broadcast(RemoteTransactionEvent remoteTransEvent)
Send the payload to all the members of the cluster.
|
protected void |
broadcast(SocketClusterMessage msg) |
SocketClusterStatus |
getStatus()
Return the current status of this instance.
|
protected boolean |
process(com.avaje.ebeaninternal.server.cluster.socket.SocketConnection request)
Process a Cluster message.
|
protected void |
setMemberOnline(String fullName,
boolean online) |
void |
shutdown()
Inform the other cluster members that this instance is leaving and
shutdown any listeners.
|
void |
startup(ClusterManager clusterManager)
Inform the other cluster members that this instance has come online and
start any listeners etc.
|
public SocketClusterStatus getStatus()
public void startup(ClusterManager clusterManager)
ClusterBroadcaststartup in interface ClusterBroadcastpublic void shutdown()
ClusterBroadcastshutdown in interface ClusterBroadcastprotected void setMemberOnline(String fullName, boolean online) throws IOException
IOExceptionpublic void broadcast(RemoteTransactionEvent remoteTransEvent)
broadcast in interface ClusterBroadcastprotected void broadcast(SocketClusterMessage msg)
protected boolean process(com.avaje.ebeaninternal.server.cluster.socket.SocketConnection request)
throws IOException,
ClassNotFoundException
IOExceptionClassNotFoundExceptionCopyright © 2014. All Rights Reserved.