edu.UCL.xmiddle.lib.protocols
Class Linking
java.lang.Object
|
+--edu.UCL.xmiddle.framework.lib.protocols.Protocol
|
+--edu.UCL.xmiddle.lib.protocols.Linking
- All Implemented Interfaces:
- java.io.Serializable
- public class Linking
- extends Protocol
Linking.java
The standard XMIDDLE linking protocol. This is registered by
SimpleManager as LINK. The protocol retreives/sends
the first edition (+ the latest version) of the data including all
policy data.
Created: Mon Aug 13 12:53:37 2001
- See Also:
- Serialized Form
|
Constructor Summary |
Linking(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 instace of the Linking protocol. |
|
Method Summary |
void |
abort()
Immediatly aborts execution of the protocol |
void |
execute()
Starts executing the protocol |
| 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 |
Linking
public Linking(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 instace of the Linking protocol. Note that this
is instanciated by the
ProtocolChooser. Application programmers should
never have to instanciate protocols directly.
- Parameters:
listener - The Listener for information from the remote hostsender - The Sender used to send information
to the remote hostsessionType - Can be either ACTIVE (i.e. this is the first
host to send data) or PASSIVE, i.e. the hsot should wait first
before receiving any data.localhost - A reference to the LocalHost,
giving us access to the linktable, primaryID etc.appManager - A reference to the AppManager,
giving us access to the data on the local platformsessionID - The unique sessionID decided for this sessionremotePrimaryID - The primaryID of the remote hostargs - Arguments for the linking protocol. These include
information such as the application ID where the element
resides /is going to be placed etc.
abort
public void abort()
- Immediatly aborts execution of the protocol
- Specified by:
abort in class Protocol
execute
public void execute()
- Starts executing the protocol
- Specified by:
execute in class Protocol