impl.reportimporter.ReportImporter
@Deprecated public class ImpressionsImporter extends Object implements Importer, TopologyEventListener
ImpressionsImporter
is a Importer
for 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
resource
SCHEME_PROPERTY, SERVICE_NAME
Constructor and Description |
---|
ImpressionsImporter()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
handleTopologyEvent(TopologyEvent event)
Deprecated.
Inform the service about an event in the topology - or in the discovery
of the topology.
|
void |
importData(String scheme,
String dataSource,
Resource target)
Deprecated.
This method is called to poll for data to be imported at the given called
dataSource location and to import the result into the target
Resource . |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
importData
public void importData(String scheme, String dataSource, Resource target) throws ImportException
Importer
dataSource
location and to import the result into the target
Resource
.importData
in interface Importer
scheme
- The actual scheme of the data source. If an
Importer
is 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 Importer
service 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
scheme
used. 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 importedImportException
- 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)
TopologyEventListener
The TopologyEvent
contains details about what changed.
The supported event types are:
TOPOLOGY_INIT
sent when the TopologyEventListener
was first bound to the discovery service - represents the initial state
of the topology at that time.TOPOLOGY_CHANGING
sent when the discovery service
discovered a change in the topology and has started to settle the change.
This event is sent before TOPOLOGY_CHANGED
but is optionalTOPOLOGY_CHANGED
sent when the discovery service
discovered a change in the topology and has settled it.PROPERTIES_CHANGED
sent when the one or many properties
have changed in an instance in the current topologyhandleTopologyEvent
in interface TopologyEventListener
event
- The topology eventTopologyEventListener.handleTopologyEvent(org.apache.sling.discovery.TopologyEvent)
"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"