public class PushConfig
extends java.lang.Object
implements com.exalead.util.Checkable, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
boolean |
automaticRestartOnFailure |
boolean |
buffer |
static boolean |
DEFAULT_AUTOMATIC_RESTART_ON_FAILURE |
static boolean |
DEFAULT_BUFFER |
static boolean |
DEFAULT_PROFILE_PUSH_OPERATIONS |
static boolean |
DEFAULT_TRIGGER_INDEXING_AFTER_SCAN |
boolean |
profilePushOperations |
boolean |
triggerIndexingAfterScan |
Constructor and Description |
---|
PushConfig() |
PushConfig(PushConfig o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this PushConfig.
|
static PushConfig |
fromString(java.lang.String s)
String representation of this PushConfig.
|
boolean |
isAutomaticRestartOnFailure()
When a scan throws a
PushAPIException does this connector automatically restart?This allows the connector to retry a scan operation when a component in the indexing chain crashes. Set this option to false to disable the retry behavior. |
boolean |
isBuffer()
Enables buffering of documents in the connector to send them as batches to the indexing server.
|
boolean |
isProfilePushOperations()
Enables profiling of push operations.
|
boolean |
isTriggerIndexingAfterScan()
Always triggers an indexing job after a completed scan.
|
PushConfig |
makeCopy()
Creates and returns a deep copy of this PushConfig.
|
static PushConfig |
readFrom(java.io.InputStream is)
Read this PushConfig from an XML fragment.
|
void |
setAutomaticRestartOnFailure(boolean automaticRestartOnFailure)
When a scan throws a
PushAPIException does this connector automatically restart?This allows the connector to retry a scan operation when a component in the indexing chain crashes. Set this option to false to disable the retry behavior. |
void |
setBuffer(boolean buffer)
Enables buffering of documents in the connector to send them as batches to the indexing server.
|
void |
setProfilePushOperations(boolean profilePushOperations)
Enables profiling of push operations.
|
void |
setTriggerIndexingAfterScan(boolean triggerIndexingAfterScan)
Always triggers an indexing job after a completed scan.
|
java.lang.String |
toString()
String representation of this PushConfig.
|
PushConfig |
withAutomaticRestartOnFailure(boolean automaticRestartOnFailure) |
PushConfig |
withAutomaticRestartOnFailure(java.lang.Boolean automaticRestartOnFailure) |
PushConfig |
withBuffer(boolean buffer) |
PushConfig |
withBuffer(java.lang.Boolean buffer) |
PushConfig |
withProfilePushOperations(boolean profilePushOperations) |
PushConfig |
withProfilePushOperations(java.lang.Boolean profilePushOperations) |
PushConfig |
withTriggerIndexingAfterScan(boolean triggerIndexingAfterScan) |
PushConfig |
withTriggerIndexingAfterScan(java.lang.Boolean triggerIndexingAfterScan) |
void |
writeTo(java.io.OutputStream os)
Write this PushConfig as an XML fragment
|
public boolean buffer
public static final boolean DEFAULT_BUFFER
public boolean triggerIndexingAfterScan
public static final boolean DEFAULT_TRIGGER_INDEXING_AFTER_SCAN
public boolean profilePushOperations
public static final boolean DEFAULT_PROFILE_PUSH_OPERATIONS
public boolean automaticRestartOnFailure
public static final boolean DEFAULT_AUTOMATIC_RESTART_ON_FAILURE
public PushConfig()
public PushConfig(PushConfig o)
public void setBuffer(boolean buffer)
public boolean isBuffer()
public PushConfig withBuffer(boolean buffer)
public PushConfig withBuffer(java.lang.Boolean buffer)
public void setTriggerIndexingAfterScan(boolean triggerIndexingAfterScan)
public boolean isTriggerIndexingAfterScan()
public PushConfig withTriggerIndexingAfterScan(boolean triggerIndexingAfterScan)
public PushConfig withTriggerIndexingAfterScan(java.lang.Boolean triggerIndexingAfterScan)
public void setProfilePushOperations(boolean profilePushOperations)
public boolean isProfilePushOperations()
public PushConfig withProfilePushOperations(boolean profilePushOperations)
public PushConfig withProfilePushOperations(java.lang.Boolean profilePushOperations)
public void setAutomaticRestartOnFailure(boolean automaticRestartOnFailure)
PushAPIException
does this connector automatically restart?false
to disable the retry behavior.public boolean isAutomaticRestartOnFailure()
PushAPIException
does this connector automatically restart?false
to disable the retry behavior.public PushConfig withAutomaticRestartOnFailure(boolean automaticRestartOnFailure)
public PushConfig withAutomaticRestartOnFailure(java.lang.Boolean automaticRestartOnFailure)
public PushConfig makeCopy()
public static PushConfig readFrom(java.io.InputStream is) throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public void writeTo(java.io.OutputStream os) throws javax.xml.bind.JAXBException, java.io.IOException
javax.xml.bind.JAXBException
java.io.IOException
public static PushConfig fromString(java.lang.String s) throws javax.xml.bind.JAXBException, java.io.UnsupportedEncodingException
javax.xml.bind.JAXBException
java.io.UnsupportedEncodingException
public java.lang.String toString()
toString
in class java.lang.Object
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
check
in interface com.exalead.util.Checkable
com.exalead.util.TypedException
Copyright © 2021 Dassault Systèmes, All Rights Reserved.