edu.UCL.xmiddle.lib.protocols
Class Reconciliation
java.lang.Object
|
+--edu.UCL.xmiddle.framework.lib.protocols.Protocol
|
+--edu.UCL.xmiddle.lib.protocols.Reconciliation
- All Implemented Interfaces:
- java.io.Serializable
- public class Reconciliation
- extends Protocol
This class implements a protocol dealing with reconciliation.
It detects changes in the tree, and reconcile them,
either generally or application-specifically.
- See Also:
- Serialized Form
|
Constructor Summary |
Reconciliation(Listener listener,
Sender sender,
java.lang.Boolean sessionType,
LocalHost localhost,
AppManager appManager,
java.lang.String sessionID,
java.lang.Object remotePrimaryID,
java.lang.Object[] args)
Creates a new instance of the Reconciliation protocol |
|
Method Summary |
void |
abort()
Aborts the protocol session |
void |
execute()
Starts the protocol execution |
| Methods inherited from class edu.UCL.xmiddle.framework.lib.protocols.Protocol |
getName |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Reconciliation
public Reconciliation(Listener listener,
Sender sender,
java.lang.Boolean sessionType,
LocalHost localhost,
AppManager appManager,
java.lang.String sessionID,
java.lang.Object remotePrimaryID,
java.lang.Object[] args)
- Creates a new instance of the Reconciliation protocol
- Parameters:
listener - the network object listening for data packetssender - the network object used to send data packetssessionType - the type of session this instance in which is involvedlocalhost - the reference to the LocalHostappManager - the reference to the ApplicationManagersessionID - the unique identifier for this protocol sessionremotePrimaryID - the primary ID of the host with which we are communicatingargs - An Object array holding arguments for this session
abort
public void abort()
- Aborts the protocol session
- Specified by:
abort in class Protocol
execute
public void execute()
- Starts the protocol execution
- Specified by:
execute in class Protocol