| | | | SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
|
|
com.newstep.solid.replication
public class ReplicationPeer
ReplicationPeers are contained within the local replicator and act as proxies
for remote replicators. When two replicators establish a relationship through
negotiation of services, they create replication peers for each other and
delegate the actual fulfilment of replication services to the peers.
ReplicationPeers are responsible for opening and maintaining of (unicast)
replication channels, as well as sending, receiving and directing the actual
replication traffic.
Author:
dpetroni
Implements:
ReplicationTarget
ConnectionListener
MessageListener
CommChannelStateListener
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
Kernel Association Association Link
Associates type:
aggregation
Client cardinality:
1
Client navigability:
NOT NAVIGABLE
Client visibility:
private
Directed.
Supplier cardinality:
0..
Supplier navigability:
NAVIGABLE
Supplier visibility:
private
Custom properties
associates:
com.newstep.solid.replication.Replicant
link:
aggregation
Kernel Association Association Link
Associates type:
aggregation
Client cardinality:
1
Client navigability:
NOT NAVIGABLE
Client visibility:
private
Directed.
Supplier cardinality:
1
Supplier navigability:
NAVIGABLE
Supplier visibility:
private
Custom properties
link:
aggregation
Implementation Implementation Link
ReplicationPeers are contained within the local replicator and act as proxies
for remote replicators. When two replicators establish a relationship through
negotiation of services, they create replication peers for each other and
delegate the actual fulfilment of replication services to the peers.
ReplicationPeers are responsible for opening and maintaining of (unicast)
replication channels, as well as sending, receiving and directing the actual
replication traffic.
Author:
dpetroni
Implementation Implementation Link
ReplicationPeers are contained within the local replicator and act as proxies
for remote replicators. When two replicators establish a relationship through
negotiation of services, they create replication peers for each other and
delegate the actual fulfilment of replication services to the peers.
ReplicationPeers are responsible for opening and maintaining of (unicast)
replication channels, as well as sending, receiving and directing the actual
replication traffic.
Author:
dpetroni
Implementation Implementation Link
ReplicationPeers are contained within the local replicator and act as proxies
for remote replicators. When two replicators establish a relationship through
negotiation of services, they create replication peers for each other and
delegate the actual fulfilment of replication services to the peers.
ReplicationPeers are responsible for opening and maintaining of (unicast)
replication channels, as well as sending, receiving and directing the actual
replication traffic.
Author:
dpetroni
Implementation Implementation Link
ReplicationPeers are contained within the local replicator and act as proxies
for remote replicators. When two replicators establish a relationship through
negotiation of services, they create replication peers for each other and
delegate the actual fulfilment of replication services to the peers.
ReplicationPeers are responsible for opening and maintaining of (unicast)
replication channels, as well as sending, receiving and directing the actual
replication traffic.
Author:
dpetroni
| Field Summary |
private final static String |
|
private HashMap |
|
private HashMap |
|
private final static Logger |
|
private int |
|
|
|
private int |
|
private HashMap |
|
|
|
| Constructor Summary |
protected void |
|
| Method Summary |
protected void |
|
protected void |
|
|
|
protected int |
|
public boolean |
|
public void |
|
public synchronized void |
|
protected boolean |
|
protected boolean |
|
public boolean |
|
protected synchronized void |
|
public void |
|
private final static String className
Final.
Multiplicity:
1
Static.
private HashMap clientReplicants
Multiplicity:
1
private HashMap clientToServer
Multiplicity:
1
private final static Logger logger
Final.
Multiplicity:
1
Static.
private int remoteId
Multiplicity:
1
Multiplicity:
1
private int replicatorId
Multiplicity:
1
private HashMap serverReplicants
Multiplicity:
1
Custom properties
associates:
com.newstep.solid.replication.Replicant
Multiplicity:
1
protected void ReplicationPeer (Integer peerId, Replicator parent)
Stereotype:
create
protected void addClientReplicant (Replicant replicant)
Connects to the remote peer listening on the channel. Server connects to
the client as a confirmation of the initial request. It is invoked only
when there is no connection between the two Replicators.
See Also:
Parameters:
channel
channel to use for communication
Throws:
IOException
protected int getRemoteId ()
public boolean isConnected ()
public void messageReceived (Byte message)
public synchronized void newConnection (CommChannel channel)
Synchronized.
protected boolean removeClientReplicant (Replicant replicant)
protected boolean removeServerReplicant (Replicant replicant)
public boolean replicate (Capsule newState)
When a client requests replication services from a remote peer it listens
for a connection from the server and is notified when the connection
happens
protected synchronized void startReplication (Replicant replicant, Long clientReplicantId)
Accepts the client replicant and establishes a client-server relationship
with the local replicant
Parameters:
replicant
local replicant providing replication services
clientReplicantId
id of the remote (client) replicant
Synchronized.
| | | | SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
|
|