@Deprecated public class ImpressionsImporter extends Object implements Importer, TopologyEventListener
Importerfor importing page impressions from SiteCatalyst.
Page impressions are only fetched if the configured
ImpresionsImporter.REPORT_INTERVAL is larger than the time since the last
page impressions import. A timestamp for the last import attempt will be
stored in a
cq:lastAttempt property of the cq:PollConfig parent
|Constructor and Description|
|Modifier and Type||Method and Description|
Inform the service about an event in the topology - or in the discovery of the topology.
This method is called to poll for data to be imported at the given called
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public void importData(String scheme, String dataSource, Resource target) throws ImportException
dataSourcelocation and to import the result into the target
scheme- The actual scheme of the data source. If an
Importeris registered for multiple schemes, this scheme may for example be used to decide on which data represenation can be expected. This value is one of the schemes with which the
Importerservice has been configured in the
importer.scheme service property.
dataSource- The scheme specific string (generally an URI) describing the location at which the data is to be polled. The format of this string is specific to the actual
schemeused. For example, this may be a plain HTTP URL of the form http://host/some/data.xml.
target- The target resource into which the data has to be imported
ImportException- may be thrown in case of problems accessing, transferring or actually importing the data. If the failure is caused by an exception, this exception (
Throwable) should be made available as the cause of this exception.
public void handleTopologyEvent(TopologyEvent event)
TopologyEvent contains details about what changed.
The supported event types are:
TOPOLOGY_INITsent when the
TopologyEventListenerwas first bound to the discovery service - represents the initial state of the topology at that time.
TOPOLOGY_CHANGINGsent when the discovery service discovered a change in the topology and has started to settle the change. This event is sent before
TOPOLOGY_CHANGEDbut is optional
TOPOLOGY_CHANGEDsent when the discovery service discovered a change in the topology and has settled it.
PROPERTIES_CHANGEDsent when the one or many properties have changed in an instance in the current topology
event- The topology event
"Copyright © 2010 - 2016 Adobe Systems Incorporated. All Rights Reserved"