Package com.attivio.sdk.ingest
Class Optimize
- java.lang.Object
-
- com.attivio.sdk.esb.AbstractPlatformMessage
-
- com.attivio.sdk.ingest.AbstractIndexMessage
-
- com.attivio.sdk.ingest.Optimize
-
- All Implemented Interfaces:
PlatformMessage,IndexMessage,java.io.Serializable,java.lang.Cloneable
public class Optimize extends AbstractIndexMessage
Represents an 'optimize' index message.The specifics of an optimize is left up to the underlying data storage system. In general an optimize should put the storage system in a state that is most efficient for future work. Note that an optimize does not specify if future queries or future indexing are favored for efficiency.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOptimize.BackgroundModeBackgroundMode specifies if optimize will block ingestion of documents while running.static classOptimize.OptimizeModeMode for determining how the index will be optimized.
-
Field Summary
-
Fields inherited from interface com.attivio.sdk.esb.PlatformMessage
DEFAULT_MAX_LOG_LENGTH, MESSAGE_DROPPED, MESSAGE_SEND_TIME_PROP, PROP_MAX_LOG_LENGTH
-
-
Constructor Summary
Constructors Constructor Description Optimize()The default constructorOptimize(java.util.UUID cid, WorkflowQueue workflows)Constructor with a client ID and a workflow queue.Optimize(java.util.UUID cid, java.lang.String... workflows)Constructor with a client ID and workflows.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optimizeclone()Clones the object and resets message ID to -1.booleanequals(java.lang.Object other)Optimize.BackgroundModegetBackgroundMode()Get theOptimize.BackgroundModefor this message.Optimize.OptimizeModegetMode()Get the optimization mode.java.util.List<java.lang.String>getZones()Expert: Get the list of zones to commit as part of this message.inthashCode()booleanisCommit()Get if this optimize message will commit outstanding documents.voidsetBackgroundMode(Optimize.BackgroundMode value)Set theOptimize.BackgroundModefor this message.voidsetCommit(boolean value)Set if this optimize message should commit outstanding documents.voidsetMode(Optimize.OptimizeMode value)Set the optimization mode.voidsetZones(java.lang.String... value)Expert: Set the list of zones to commit as part of this message.voidsetZones(java.util.List<java.lang.String> value)Expert: Set the list of zones to commit as part of this message.-
Methods inherited from class com.attivio.sdk.esb.AbstractPlatformMessage
addMessageHistory, addMessageHistory, getClientId, getEstimatedSize, getMessageHistory, getMessageId, getMetadata, getProperty, getProperty, getProperty, getProperty, getProperty, getProperty, getWorkflowQueue, getWorkflowQueue, hasProperty, isRedelivered, removeProperty, removeWorkflowQueue, setClientId, setMessageId, setProperty, setRedelivered, setWorkflowQueue, setWorkflowQueue, toMessageString, toString, toString, toString, toString, toString, toString, toString, toString, toString, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.attivio.sdk.esb.PlatformMessage
addMessageHistory, addMessageHistory, getClientId, getEstimatedSize, getMessageHistory, getMessageId, getMetadata, getProperty, getWorkflowQueue, getWorkflowQueue, isRedelivered, removeProperty, setClientId, setMessageId, setProperty, setRedelivered, setWorkflowQueue, setWorkflowQueue, toMessageString
-
-
-
-
Constructor Detail
-
Optimize
public Optimize()
The default constructor
-
Optimize
public Optimize(java.util.UUID cid, java.lang.String... workflows)Constructor with a client ID and workflows.- Parameters:
cid- the client IDworkflows- the workflows
-
Optimize
public Optimize(java.util.UUID cid, WorkflowQueue workflows)Constructor with a client ID and a workflow queue.- Parameters:
cid- the client IDworkflows- the workflow queue
-
-
Method Detail
-
getMode
public Optimize.OptimizeMode getMode()
Get the optimization mode.
-
setMode
public void setMode(Optimize.OptimizeMode value)
Set the optimization mode.
-
getBackgroundMode
public Optimize.BackgroundMode getBackgroundMode()
Get theOptimize.BackgroundModefor this message.
-
setBackgroundMode
public void setBackgroundMode(Optimize.BackgroundMode value)
Set theOptimize.BackgroundModefor this message.
-
isCommit
public boolean isCommit()
Get if this optimize message will commit outstanding documents.
-
setCommit
public void setCommit(boolean value)
Set if this optimize message should commit outstanding documents.
-
getZones
public java.util.List<java.lang.String> getZones()
Expert: Get the list of zones to commit as part of this message.If
nullor empty, then all zones will be committed.
-
setZones
public void setZones(java.util.List<java.lang.String> value)
Expert: Set the list of zones to commit as part of this message.If
nullor empty, then all zones will be committed.
-
setZones
public void setZones(java.lang.String... value)
Expert: Set the list of zones to commit as part of this message.If
nullor empty, then all zones will be committed.
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAbstractPlatformMessage
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classAbstractPlatformMessage
-
clone
public Optimize clone()
Clones the object and resets message ID to -1. Clones a message. The message ID is not cloned.- Specified by:
clonein interfaceIndexMessage- Specified by:
clonein interfacePlatformMessage- Overrides:
clonein classAbstractIndexMessage- Returns:
- the cloned index message
-
-