DirXML Interface
The main interfaces provided by DirXML technology include DriverShim, Subscribershim, and PublisherShim.
Driver Shim
When the DirXML engine starts a driver, the first thing it does is instantiate an instance of the driver's DriverShim interface.
The main purpose of the driver shim executable is to:
- Instantiate the Publisher and Subscriber shims- and perform common initialization tasks
- Initialize the driver- parse any input parameters, documents, for driver setup
- Shut down the driver- free all allocated resources (socket connections, open file paths)
Interface Methods include:
Methods
|
Definition
|
Init
|
init will be called so the driver can perform
initialization.
|
getSchema
|
getSchema returns a representation of the
application schema data encoded in XML.
|
getPublicationShim
|
getPublicaitonShim returns an instance of PublicationShim
that will be invoked by NDS.
|
getSubscriptionShim
|
getSubscriptionShim returns an implementation
of SubscriptionShim that can be used to
process commands submitted from NDS.
|
Shutdown
|
shutdown indicates to the DriverShim that the
VRDriver is being terminated.
|
The following code is a sample DirXML driver shim. This code is a basic skeleton for implementing a DirXML driver shim.
|