public class IndexTriggerPushAPI extends PipedPushAPI
Modifier and Type | Field and Description |
---|---|
protected static long |
BACKOFF_WAIT_INITIAL_MS
Initial poll wait time for trigger indexing job
|
protected static long |
BACKOFF_WAIT_MAX_MS
Max poll wait time for trigger indexing job
|
protected java.lang.String |
connectorName
Connector name.
|
protected boolean |
waitSearchable
Wait for documents to be searchable ?
|
protected int |
waitSearchableTimeout
Wait for documents timeout
|
defaultLogger, isBestEffortOnStopSession, jlogger, logger, parent
DEFAULT_CHECKPOINT_NAME, STREAMING_BLOCK_SIZE
Constructor and Description |
---|
IndexTriggerPushAPI(PushAPI source,
boolean waitSearchable,
int waitSearchableTimeout)
Create a new TeePushAPI
|
Modifier and Type | Method and Description |
---|---|
static PushAPI |
createPushAPIPlugin(PushAPI papi,
java.lang.String[] keys,
java.lang.String[] values)
Create a new IndexTriggerAPI (PushAPI triggering an indexing job)
|
void |
startPushSession()
Starts a new session on the push server.
|
void |
stopPushSession(boolean releaseConnections)
Stops the current session on the push server.
|
addDocument, addDocumentList, areDocumentsSearchable, areDocumentsSearchable, clearAllCheckpoints, clearCheckpoints, countSyncedEntries, debug, deleteDocument, deleteDocumentList, deleteDocumentList, deleteDocumentRootPath, deleteDocumentsWithPrefix, enumerateCheckpointInfo, enumerateCheckpointInfo, enumerateSyncedEntries, error, getBestEffortOnStopSession, getCheckpoint, getCheckpoint, getConnectorName, getDocumentStatus, getDocumentStatusList, getLogger, getParent, info, isTraceEnabled, log, ping, setBestEffortOnStopSession, setCheckpoint, setLogger, suggestSyncedEntries, sync, synchronize, trace, triggerIndexingJob, triggerIndexingJobWhenIdle, updateDocument, updateDocumentList, updateDocumentMetas, updateDocumentMetasList, warning
countSyncedEntries, deleteDocumentRootPath, deleteDocumentRootPath, deleteDocumentsWithPrefix, enumerateSyncedEntries, getCheckpoint, getDocumentDidsAndSlices, setCheckpoint, setCheckpoint, setCheckpoint
protected java.lang.String connectorName
protected final boolean waitSearchable
protected final int waitSearchableTimeout
protected static final long BACKOFF_WAIT_INITIAL_MS
protected static final long BACKOFF_WAIT_MAX_MS
public IndexTriggerPushAPI(PushAPI source, boolean waitSearchable, int waitSearchableTimeout) throws PushAPIException
PushAPIException
public static PushAPI createPushAPIPlugin(PushAPI papi, java.lang.String[] keys, java.lang.String[] values) throws java.lang.Exception
papi
- upstream PushAPIkeys
- configuration keys (see below)keys
- configuration values
Configuration keys are:
java.lang.Exception
public void startPushSession() throws PushAPIException
PushAPI
stopPushSession
),
if the push server restarts for any reason, an exception will be thrown.
The connector should then engage a recovery procedure.startPushSession
in class PipedPushAPI
PushAPISessionExistsException
- if the session is already started.PushAPIException
- if any another error occurred.public void stopPushSession(boolean releaseConnections) throws PushAPIException
PushAPI
stopPushSession
in class PipedPushAPI
PushAPISessionNotFoundException
- if session is not started.PushAPIException
- if another error occurred.startPushSession}
Copyright © 2021 Dassault Systèmes, All Rights Reserved.