Jive Scanner
Factory Namecom.searchtechnologies.aspire:aspire-jive-connector
subTypedefault
InputsAspireObject from a content source submitter holding all the information required for a crawl
OutputsJobs from the crawl

The Jive Scanner component performs full and incremental scans over a Jive Community, maintaining a snapshot of the community and comparing it with the current content to establish what content has been updated. Updated content is then submitted to the configured pipeline in AspireObjects attached to Jobs. As well as the URL of the changed item, the AspireObject will also contain metadata extracted from the repository. Updated content is split into three types -add, update and delete-. Each type of content is published as a different event so that it may be handled by different Aspire pipelines.

The scanner reacts to an incoming job. This job may instruct the scanner to start, stop, pause or resume. Typically the start job will contain all information required by the job to perform the crawl. However, the scanner can be configured with default values via application.xml file. When pausing or stopping, the scanner will wait until all the jobs it published have completed before completing itself.

Configuration


This section lists all configuration parameters available to configure the File System Scanner component.

General Scanner Component Configuration

Basic Scanner Configuration

ElementTypeDefaultDescription
snapshotDirStringsnapshotsThe directory for snapshot files.
numOfSnapshotBackupsint2The number of snapshots to keep after processing.
waitForSubJobsTimeoutlong600000
(=10 mins)
Scanner timeout while waiting for published jobs to complete.
maxOutstandingTimeStatisticslong1mThe max about of time to wait before updating the statistics file. Whichever happens first between this property and maxOutstandingUpdatesStatistics will trigger an update to the statistics file.
maxOutstandingUpdatesStatisticslong1000The max number of files to process before updating the statistics file. Whichever happens first between this property and maxOutstandingTimeStatistics will trigger an update to the statistics file.
usesDomainbooleantrueIndicates if the group expansion request will use a domain\user format (useful for connectors that does not support domain in the group expander).

Branch Handler Configuration

This component publishes to the onAdd, onDelete and onUpdate, so a branch must be configured for each of these three events.

ElementTypeDescription
branches/branch/@eventstringThe event to configure - onAdd, onDelete or onUpdate.
branches/branch/@pipelineManagerstringThe name of the pipeline manager to publish to. Can be relative.
branches/branch/@pipelinestringThe name of the pipeline to publish to. If missing, publishes to the default pipeline for the pipeline manager.
branches/branch/@allowRemotebooleanIndicates if this pipeline can be found on remote servers (see Distributed Processing for details).
branches/branch/@batchingbooleanIndicates if the jobs processed by this pipeline should be marked for batch processing (useful for publishers or other components that support batch processing).
branches/branch/@batchSizeintThe max size of the batches that the branch handler will created.
branches/branch/@batchTimeoutlongTime to wait before the batch is closed if the batchSize hasn't been reached.
branches/branch/@simultaneousBatchesintThe max number of simultanous batches that will be handled by the branch handler.

 

File System Specific Configuration

ElementTypeDefaultDescription
timeOutinteger10000The maximum time the connection wait before give a timeout connection.
maxRetriesinteger5The maximum number of retries for a connection in case it fails.
pageSizeinteger100Number of elements that are going to be fetched per call.
useSecuritybooleanfalsetrue if the Document Level Security must be fetched.
fetchPlacesAclsbooleanfalsetrue if want to fetch the security for jive places.
securityFetchingTypestringuseSecurityPluginuseEntitlementApi if want to fetch the security by using jive entitlement API.
useActivitybooleanfalsetrue if the activity incremental crawl is activated.
securitybooleanfalsetrue if the security must be fetched.
incrementalCrawlingTypestringnormalIncrementalactivityIncremental if you want to use the Activity incremental and analyticApiIncremental if you want to use the Analytic (DES) API incremental.
activityIncrementalbooleanfalsetrue if you want to use the Activity incremental.
incrementalCountinteger5How many Activity crawl must be perform in order to do a normal incremental.
timestampDirstring${dist.data.dir}/${app.name}/timestampDirectory where timestamp will be placed.
apiUrlstringnoneJive api URL.
apiVersionintegernoneVersion of Analytic API..
clientIdstringnoneClient id of Analytic API add-on..
clientSecretstringnoneClient Secret of Analytic API add-on..
authKeyPeriodbooleanfalseOption to set the validity period for Jive analytic API's Authorization key.
authKeyPeriodMinutesinteger30Authorization key validity period in minutes.
expandSecuritybooleanfalsetrue if the Security Groups must be expanded in the Group Expansion.
mapsDBDirstring${dist.data.dir}/${app.name}/mapsDBIndicates the path where the Map DBs will be stored
timestampDirstring${dist.data.dir}/${app.name}/timestampIndicates the path where the Timestamp will be stored
fetchHierarchybooleantrueIndicates if the connector needs to fetch the hierarchy for each element

Configuration Example

Configuration
  <component name="Scanner" subType="default" factoryName="aspire-jive-connector">
    <debug>true</debug>
    <snapshotDir>${aspire.home}/data/snapshots</snapshotDir>
    <fileNamePatterns>
      <include pattern=".*" />
      <exclude pattern=".*tmp$" />
    </fileNamePatterns>
    <branches>
      <branch event="onAdd" pipelineManager="../ProcessPipelineManager" pipeline="addUpdatePipeline" allowRemote="true" batching="true"
        batchSize="50" batchTimeout="60000" simultaneousBatches="2" />
      <branch event="onUpdate" pipelineManager="../ProcessPipelineManager" pipeline="addUpdatePipeline" allowRemote="true" batching="true"
        batchSize="50" batchTimeout="60000" simultaneousBatches="2" />
      <branch event="onDelete" pipelineManager="../ProcessPipelineManager" pipeline="deletePipeline" allowRemote="true" batching="true"
        batchSize="50" batchTimeout="60000" simultaneousBatches="2" />
    </branches>
  </component>

 

Source Configuration


Scanner Control Configuration

 

The following table describes the list of attributes that the AspireObject of the incoming scanner job requires to correctly execute and control the flow of a scan process.

 

ElementTypeOptionsDescription
@actionstringstart, stop, pause, resume, abortControl command to tell the scanner which operation to perform. Use start option to launch a new crawl.
@actionPropertiesstringfull, incrementalWhen a start @action is received, it will tell the scanner to either run a full or an incremental crawl.
@normalizedCSNamestring Unique identifier name for the content source that will be crawled.
displayNamestring Display or friendly name for the content source that will be crawled.

 

Header Example

Header
  <doc action="start" actionProperties="full" actionType="manual" crawlId="0" dbId="0" jobNumber="0" normalizedCSName="FeedOne_Connector"
   scheduleId="0" scheduler="##AspireSystemScheduler##" sourceName="ContentSourceName">
    ...
    <displayName>testSource</displayName>
    ...
  </doc>


All configuration properties described in this section are relative to /doc/connectorSource of the AspireObject of the incoming Job.

ElementTypeDefaultDescription
urlstringnoneThe url to the Jive Community.
usernamestringnoneThe name of the user that is going to be use for the crawl
passwordstringnoneThe password of the user.
useSecuritybooleanfalsetrue if want to fetch the document level security.
fetchPlacesAclsbooleanfalsetrue if want to fetch the security for jive places.
securityFetchingTypestringuseSecurityPluginuseEntitlementApi if want to fetch the security by using jive entitlement API.
pageSizeinteger100Number of elements that are going to be fetched per call
timeOutinteger5Time in seconds before the connection gives a timeout
maxRetriesinteger3Number of attempts before the connection gives error
mapsDBDirstring${dist.data.dir}/${app.name}/mapsDBDirectory where the mapDBs for the ACLs and the Hierarchy will be placed.
incrementalCrawlingTypestringnormalIncrementalactivityIncremental if you want to use the Activity incremental and analyticApiIncremental if you want to use the Analytic (DES) API incremental.
activityIncrementalbooleanfalsetrue if you want to use the Activity incremental.
incrementalCountinteger5How many Activity crawl must be perform in order to do a normal incremental.
timestampDirstring${dist.data.dir}/${app.name}/timestampDirectory where timestamp will be placed.
apiUrlstringnoneJive api URL.
apiVersionintegernoneVersion of Analytic API..
clientIdstringnoneClient id of Analytic API add-on..
clientSecretstringnoneClient Secret of Analytic API add-on..
authKeyPeriodbooleanfalseOption to set the validity period for Jive analytic API's Authorization key.
authKeyPeriodMinutesinteger30Authorization key validity period in minutes.
fileNamePatterns/include/@patternregexnoneOptional. A regular expression pattern to evaluate file urls against; if the file name matches the pattern, the file is included by the scanner. Multiple include nodes can be added.
fileNamePatterns/exclude/@patternregexnoneOption

Scanner Configuration Example

Scanner Configuration
	<doc action="start" actionProperties="full" normalizedCSName="testFile" scheduleId="1">
		<connectorSource>
			<url>http://searchtechnologies.jive.com</url>
			<username>Admin</username>
			<password>encrypted:63AA72A7708C8999DEE56A41894EBEEB</password>
			<pageSize>100</pageSize>
			<useSecurity>true</useSecurity>
			<fetchPlacesAcls>true</fetchPlacesAcls>
			<useEntitlementApi>true</useEntitlementApi>
			<timeOut>5</timeOut>
			<maxRetries>3</maxRetries>
			<mapsDBDir>${dist.data.dir}/${app.name}/mapsDB</mapsDBDir>
			<incrementalCrawlingType>analyticApiIncremental</incrementalCrawlingType>
			<analyticApiIncremental>true</analyticApiIncremental>
			<apiUrl>https://api.jivesoftware.com</apiUrl>
			<apiVersion>v2</apiVersion>
			<clientId>kjnt0qfclery6hznosmui0tguh8zboi1.i</clientId>
			<clientSecret>iv6b4k49xwj2wp1jfy0aj8bisaz1aisy.s</clientSecret>
			<authKeyPeriod>true</authKeyPeriod>
			<authKeyPeriodMinutes>30</authKeyPeriodMinutes>
			<timestampDir>${dist.data.dir}/${app.name}/timestamp</timestampDir>
			<fileNamePatterns>
				<include pattern=".*place.*"/>
				<exclude pattern=".*people.*"/>
			</fileNamePatterns>
		</connectorSource>
		<displayName>testFile</displayName>
	</doc>


Output


Output
<doc>
	<sourceType>jive</sourceType>
	<fetchUrl>http://searchtechnologies.jive.com/api/core/v3/places/1000</fetchUrl>
	<docType>container</docType>
	<lastModified>2013-04-22T13:56:11Z</lastModified>
	<dataSize>0</dataSize>
	<url>http://searchtechnologies.jive.com/api/core/v3/places/1000</url>
	<crawlId>43</crawlId>
	<id>1000</id>
	<displayUrl>http://searchtechnologies.jive.com/community/getting-started</displayUrl>
	<connectorSpecific type="jive">
		<field name="contentsUrl">http://searchtechnologies.jive.com/api/core/v3/contents?filter=place(http%3A%2F%2Fjive-search.com%3A8080%2Fapi%2Fcore%2Fv3%2Fplaces%2F1000)</field>
		<field name="contentsAllowed">GET</field>
		<field name="announcementsUrl">http://searchtechnologies.jive.com/api/core/v3/places/1000/announcements</field>
		<field name="announcementsAllowed">GET, POST</field>
		<field name="categoriesUrl">http://searchtechnologies.jive.com/api/core/v3/places/1000/categories</field>
		<field name="categoriesAllowed">GET, POST</field>
		<field name="htmlUrl">http://searchtechnologies.jive.com/community/getting-started</field>
		<field name="htmlAllowed">GET</field>
		<field name="selfUrl">http://searchtechnologies.jive.com/api/core/v3/places/1000</field>
		<field name="selfAllowed">DELETE, GET, PUT</field>
		<field name="placesUrl">http://searchtechnologies.jive.com/api/core/v3/places/1000/places</field>
		<field name="placesAllowed">GET</field>
		<field name="avatarUrl">http://searchtechnologies.jive.com/api/core/v3/places/1000/avatar</field>
		<field name="avatarAllowed">DELETE, GET, POST</field>
		<field name="followingInUrl">http://searchtechnologies.jive.com/api/core/v3/places/1000/followingIn</field>
		<field name="followingInAllowed">GET</field>
		<field name="activityUrl">http://searchtechnologies.jive.com/api/core/v3/places/1000/activities</field>
		<field name="activityAllowed">GET</field>
		<field name="staticsUrl">http://searchtechnologies.jive.com/api/core/v3/places/1000/statics</field>
		<field name="staticsAllowed">GET, POST</field>
		<field name="childCount">0</field>
		<field name="status">Active</field>
		<field name="locale">en_US</field>
		<field name="parent">http://searchtechnologies.jive.com/api/core/v3/places/1002</field>
		<field name="contentTypes">discussions, documents, files, polls</field>
		<field name="id">2001</field>
		<field name="visibleToExternalContributors">false</field>
		<field name="description">New to Jive SBS? Start here to learn how to get the most out of it.</field>
		<field name="name">Getting Started</field>
		<field name="followerCount">0</field>
		<field name="displayName">getting-started</field>
		<field name="published">2013-04-08T15:15:06Z</field>
		<field name="viewCount">0</field>
	</connectorSpecific>
	<repItemType>aspire/space</repItemType>
	<sourceName>Jive Connecotr with Plugin</sourceName>
	<snapshotUrl>002 http://searchtechnologies.jive.com/api/core/v3/places/1000</snapshotUrl>
	<action>add</action>
	<acls>
		<acl name="All Registered Users" sidType="4" scope="global" entity="group" sid="-2" access="allow"/>
		<acl name="All Guest Users" sidType="4" scope="global" entity="group" sid="-3" access="allow"/>
	</acls>
	<hierarchy>
		<item name="Getting Started" type="space" url="http://searchtechnologies.jive.com/api/core/v3/places/1000" id="1000" level="2">
			<ancestors>
				<ancestor name="Jive" parent="true" type="space" url="http://searchtechnologies.jive.com/api/core/v3/places/1002" id="1002" level="1"/>
			</ancestors>
		</item>
	</hierarchy>
	<connectorSource>
		<url>http://searchtechnologies.jive.com</url>
		<username>Admin</username>
		<password>encrypted:63AA72A7708C8999DEE56A41894EBEEB</password>
		<pageSize>100</pageSize>
		<useSecurity>true</useSecurity>
		<fetchPlacesAcls>true</fetchPlacesAcls>
		<useEntitlementApi>true</useEntitlementApi>
		<timeOut>5</timeOut>
		<maxRetries>3</maxRetries>
		<mapsDBDir>${dist.data.dir}/${app.name}/mapsDB</mapsDBDir>
		<incrementalCrawlingType>analyticApiIncremental</incrementalCrawlingType>
		<analyticApiIncremental>true</analyticApiIncremental>
		<apiUrl>https://api.jivesoftware.com</apiUrl>
		<apiVersion>v2</apiVersion>
		<clientId>kjnt0qfclery6hznosmui0tguh8zboi1.i</clientId>
		<clientSecret>iv6b4k49xwj2wp1jfy0aj8bisaz1aisy.s</clientSecret>
		<authKeyPeriod>true</authKeyPeriod>
		<authKeyPeriodMinutes>30</authKeyPeriodMinutes>
		<timestampDir>${dist.data.dir}/${app.name}/timestamp</timestampDir>
		<fileNamePatterns>
			<include pattern=".*place.*"/>
			<exclude pattern=".*people.*"/>
		</fileNamePatterns>
	</connectorSource>
</doc>

 

 

 

 

Save

  • No labels