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

Field Summary
 
Fields inherited from class edu.UCL.xmiddle.framework.lib.protocols.Protocol
ACTIVE, listener, name, PASSIVE, remoteID, sender, sessionID
 
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
 

Constructor Detail

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 packets
sender - the network object used to send data packets
sessionType - the type of session this instance in which is involved
localhost - the reference to the LocalHost
appManager - the reference to the ApplicationManager
sessionID - the unique identifier for this protocol session
remotePrimaryID - the primary ID of the host with which we are communicating
args - An Object array holding arguments for this session
Method Detail

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