public CWConnectorEventStore getEventStore();
None.
A CWConnectorEventStore object that provides access to the connector's event store. If the event-store-factory class cannot be located, the method returns null.
None.
The getEventStore() method is the event-store factory, whose task is to instantiate an event-store object for the connector. Through this event-store object, the connector can access its event store. The getEventStore() method calls the getEventStore() method of your event-store-factory class, which implements the CWConnectorEventStoreFactory interface.
The default implementation of the getEventStore() method that the CWConnectorAgent class provides checks the EventStoreFactory connector configuration property for the name of the event-store-factory class (which implements the CWConnectorEventStoreFactory interface), as follows:
From the name of the connector package, the getEventStore() method extracts the connector name. It assumes that the event store is named as follows:
connectorNameEventStore
For example, for the WebSphere Business Integration Adapter for JDBC, the connector name is JDBC. Therefore, the getEventStore() would generate JDBCEventStore as the name of the connector's event store and try to instantiate an event-store-factory class of this name.
The EventStoreFactory property must specify the entire class name for the event-store factory instance. For information on the format of this property, see CWConnectorEventStoreFactory interface. For example, the WebSphere Business Integration Adapter for JDBC contains an event-store factory that provides access to a JDBC event store. Therefore, the EventStoreFactory property might be set as follows:
com.crossworlds.connectors.JDBC.JDBCEventStoreFactoryInstance
The default implementation of the pollForEvents() method calls this getEventStore() method to retrieve a reference to the event store. For more information, see Retrieving event records.