|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdarx.ReplicationStrategy
darx.ActiveReplicationStrategy
public class ActiveReplicationStrategy
This is the replication group manager specialisation which implements the active replication strategy.
Field Summary |
---|
Fields inherited from class darx.ReplicationStrategy |
---|
ACTIVE_STRATEGY, BACKUP, EMPTY_STRATEGY, info, LEADER, PASSIVE_STRATEGY, QUORUM_STRATEGY, rep_number, replicants, role, type |
Constructor Summary | |
---|---|
ActiveReplicationStrategy()
|
|
ActiveReplicationStrategy(ActiveReplicationStrategy newstr)
|
Method Summary | |
---|---|
int |
compareTo(ReplicationStrategy other_strat)
Compares this replication strategy to another. |
void |
deliverAsyncMessage(TaskShell shell,
DarxMessage msg)
Spreads the delivery of an asynchronous message throughout the replication group. |
java.io.Serializable |
deliverSyncMessage(TaskShell shell,
DarxMessage msg)
Spreads the delivery of a synchronous message throughout the replication group. |
void |
resume()
Spreads the resumption of the encapsulated task execution throughout the replication group. |
void |
suspend()
Spreads the suspension of the encapsulated task execution throughout the replication group. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ActiveReplicationStrategy()
public ActiveReplicationStrategy(ActiveReplicationStrategy newstr)
Method Detail |
---|
public int compareTo(ReplicationStrategy other_strat)
ReplicationStrategy
compareTo
in class ReplicationStrategy
other_strat
- the strategy to be compared
public void suspend()
ReplicationStrategy
suspend
in class ReplicationStrategy
public void resume()
ReplicationStrategy
resume
in class ReplicationStrategy
public void deliverAsyncMessage(TaskShell shell, DarxMessage msg)
ReplicationStrategy
deliverAsyncMessage
in class ReplicationStrategy
shell
- the shell corresponding to the present strategy
(used to process the message locally)msg
- the message to deliverpublic java.io.Serializable deliverSyncMessage(TaskShell shell, DarxMessage msg)
ReplicationStrategy
deliverSyncMessage
in class ReplicationStrategy
shell
- the shell corresponding to the present strategy
(used to process the message locally)msg
- the message to deliver
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |