| | | | SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
|
|
com.newstep.solid.replication
public class MulticastChannel
MulticastChannel sends and receives replication control messages on behalf of
its clients. There is a single multicast channel per replication node.
Author:
dpetroni
Links:
Kernel Association Association Link
Associates type:
association
Client cardinality:
1
Client navigability:
NOT NAVIGABLE
Client visibility:
private
Supplier cardinality:
1
Supplier navigability:
NAVIGABLE
Supplier visibility:
private
| Field Summary |
int |
|
String |
|
int |
|
private byte[] |
|
private final static String |
|
private boolean |
|
|
|
private final static Logger |
|
private InetAddress |
|
private String |
|
private int |
|
private byte[] |
|
private String |
|
private String |
|
private byte[] |
|
private String |
|
private String |
|
private MulticastSocket |
|
private int |
|
private int |
|
| Method Summary |
public void |
|
public int |
|
public void |
|
protected void |
|
public byte[] |
|
public void |
|
public void |
|
public void |
|
public void |
|
public void |
|
public void |
|
public void |
|
public void |
|
private byte[] buffer
single receive buffer
Multiplicity:
1
private final static String className
Final.
Multiplicity:
1
Static.
private boolean dontStop
loop control
Multiplicity:
1
Multiplicity:
1
private final static Logger logger
Final.
Multiplicity:
1
Static.
private InetAddress multicastGroup
address for this replication group
Multiplicity:
1
String multicastGroupAddress
address for this replication group in string format
private String multicastGroupAddress
address for this replication group in string format
Multiplicity:
1
int multicastGroupPort
port for this replication group
private int multicastGroupPort
port for this replication group
Multiplicity:
1
private byte[] primaryLocalAddress
Multiplicity:
1
private String primaryNicAddress
Primary network interface's IP address
Multiplicity:
1
private String primaryNicName
Primary network interface to use for multicasting
Multiplicity:
1
private byte[] secondaryLocalAddress
Multiplicity:
1
private String secondaryNicAddress
Secondary network interface's IP address
Multiplicity:
1
private String secondaryNicName
Secondary network interface to use for multicasting
Multiplicity:
1
private MulticastSocket socket
Multiplicity:
1
int timeOutMillis
How long to wait for response during the initaial id negotiations
private int timeOutMillis
How long to wait for response during the initaial id negotiations
Multiplicity:
1
private int timeToLive
time to live for the replication messages
Multiplicity:
1
public int getTimeOutMillis ()
MulticastChannel must be initialized with proper configuration before it
can be used. During the initalization it joins the configured multicast
group and obtains a unique id within the group
Parameters:
config
configuration containing all the necessary config parameters
Throws:
ConfigurationException
protected void multicastListen ()
Listens for incomming messages in a while ( dontStop ) loop
public byte[] multicastReceive ()
Receives a message blocking for the duration of the socket timeout or
indefinitely if socket timeout is 0
Return:
replication message
public void send (Byte message)
Sends a message
Parameters:
message
byte array containg the message to be sent
public void setMulticastGroupAddress (String mcastGroupAddress)
public void setMulticastGroupPort (Integer mcastGroupPort)
public void setTimeOutMillis (Integer timeOut)
public void start ()
public void stop ()
public void stopListening ()
| | | | SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
|
|