public abstract class AbstractClusterManager extends Object implements IClusterManager
IClusterManager
,
independent of communication form.Modifier and Type | Field and Description |
---|---|
protected boolean |
processTransmissionsReceived
Indicates whether
transmissionReceived(IClusterTransmission)
processes the given transmission. |
protected String |
serverId
The identifier for this cluster node.
|
Constructor and Description |
---|
AbstractClusterManager() |
Modifier and Type | Method and Description |
---|---|
<T extends Serializable> |
createClusterCommand(IClusterCallable<T> callable)
Creates a cluster command instance and returns it.
|
IClusterCommand<Serializable> |
createClusterCommand(Runnable runnable)
Creates a cluster command instance and returns it.
|
IClusterMessage |
createClusterMessage(String group,
Serializable data)
Creates a cluster message instance and returns it.
|
void |
destroy()
Destroys the cluster manager.
|
void |
init()
Initializes the cluster manager.
|
protected <T extends Serializable> |
transmissionReceived(IClusterTransmission transmission)
Processes a received transmission.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
call, getClusterConfig, getLocalMember, getMembers, send
protected String serverId
protected boolean processTransmissionsReceived
transmissionReceived(IClusterTransmission)
processes the given transmission.protected <T extends Serializable> ITransmissionResult<T> transmissionReceived(IClusterTransmission transmission)
processTransmissionsReceived
may be used to disable the processing done by this method.transmission
- the transmission received.public void init()
IClusterManager
init
in interface IClusterManager
public void destroy()
IClusterManager
destroy
in interface IClusterManager
public IClusterCommand<Serializable> createClusterCommand(Runnable runnable)
IClusterManager
createClusterCommand
in interface IClusterManager
runnable
- the runnable that contains the command's execution. It must be serializable.IClusterCommand
public <T extends Serializable> IClusterCommand<T> createClusterCommand(IClusterCallable<T> callable)
IClusterManager
createClusterCommand
in interface IClusterManager
callable
- the IClusterCallable
that contains the command's execution. It must be serializable.public IClusterMessage createClusterMessage(String group, Serializable data)
IClusterManager
createClusterMessage
in interface IClusterManager
group
- the destination group for the message.data
- the data sent in the message.IClusterMessage
LumisXP 12.0.0.190809 - Copyright © 2006–2019 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.