| | | | SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
|
|
com.newstep.solid.replication
|
+--com.newstep.solid.replication.ReplicationService
public class ReplicationService
Implements:
MulticastChannelListener
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:
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:
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:
aggregationByValue
Client cardinality:
1
Client navigability:
NOT NAVIGABLE
Client visibility:
private
Directed.
Supplier cardinality:
0..1
Supplier navigability:
NAVIGABLE
Supplier visibility:
private
Custom properties
link:
aggregationByValue
Kernel Association Association Link
Associates type:
aggregationByValue
Client cardinality:
1
Client navigability:
NOT NAVIGABLE
Client visibility:
private
Directed.
Supplier cardinality:
0..1
Supplier navigability:
NAVIGABLE
Supplier visibility:
private
Custom properties
link:
aggregationByValue
Kernel Association Association Link
registered clients of this service
Associates type:
aggregation
Client cardinality:
1
Client navigability:
NOT NAVIGABLE
Client visibility:
private
Directed.
Supplier cardinality:
1..2
Supplier navigability:
NAVIGABLE
Supplier visibility:
private
Custom properties
associates:
com.newstep.solid.replication.ReplicationMessageListener
link:
aggregation
Implementation Implementation Link
Generalization Generalization Link
| Field Summary |
private final static String |
|
private int |
|
private HashMap |
|
private boolean |
|
|
|
private ReentrantLock |
|
private final static Logger |
|
|
|
|
|
private int |
|
|
|
|
|
| Method Summary |
public void |
|
public long |
|
protected void |
|
protected void |
|
protected void |
|
protected void |
|
protected void |
|
protected void |
|
private int |
|
|
|
private void |
|
public void |
|
public void |
|
|
|
public int |
|
public long |
|
protected void |
|
private final static String className
Final.
Multiplicity:
1
Static.
private int clientId
ever incrementing id for registered clients
Multiplicity:
1
private HashMap clients
registered clients of this service
Multiplicity:
1
Custom properties
associates:
com.newstep.solid.replication.ReplicationMessageListener
private boolean initialized
Multiplicity:
1
Multiplicity:
1
Static.
private ReentrantLock lock
Internal lock for locking the access to the clients hashmap
Multiplicity:
1
private final static Logger logger
Final.
Multiplicity:
1
Static.
Multiplicity:
1
Multiplicity:
1
private int nodeId
Unique id for this node
Multiplicity:
1
Multiplicity:
1
Multiplicity:
1
public void deregister (Integer clId)
Clients deregister when they no longer want to receive new messages
Parameters:
clId id of the deregistering client
public long deregisterReplicant (Replicant replicant)
protected void doRestart ()
Throws:
ExecutableException
protected void doResume ()
Throws:
ExecutableException
protected void doShutdown ()
Throws:
ExecutableException
protected void doStart ()
Throws:
ExecutableException
protected void doStop ()
Throws:
ExecutableException
protected void doSuspend ()
Throws:
ExecutableException
private int generateClientId ()
Static.
private void getUniqueId ()
negotiates a unique id within a replication group on startaup
Throws:
ConfigurationException
public void onMessage (Byte message)
Receives a message blocking on the multicast channel's receive
Custom properties
return replication:
message
Clients must register with the service before incomming messeges are forwarded to them.
Client's node id is set to this service's id
Parameters:
client to be notified about new messages
Return:
unique client id for this service.
public long registerReplicant (Replicant replicant)
Replicants have to be registered with the Replicator in order to offer or take
advantage of replication services. Each replicant is instantiated and given its
copy of the replication strategy by the management/config subsystem.
Parameters:
replicant to be registered with the Replicator
Return:
the unique id of the newly registered replicant
Sends a message
Parameters:
message ReplciationMessage to be sent
| | | | SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
|
|