Package org.nuxeo.elasticsearch.core
Class ReindexingMessage
- java.lang.Object
-
- org.nuxeo.elasticsearch.core.ReindexingMessage
-
- All Implemented Interfaces:
Serializable,SerializableMessage
public class ReindexingMessage extends Object implements SerializableMessage
- Since:
- 2021.12
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description StringindexNameprotected static StringNULStringotherIndexStringrepositoryprotected static StringSEPReindexingStatestate
-
Constructor Summary
Constructors Constructor Description ReindexingMessage(String repository, String indexName, String otherIndex, ReindexingState state)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ReindexingMessagedeserialize(InputStream in)booleanequals(Object o)inthashCode()voidserialize(OutputStream out)Serializes this to an output stream.StringtoString()protected static StringvalueOf(String string)
-
-
-
Field Detail
-
repository
public final String repository
-
indexName
public final String indexName
-
otherIndex
public final String otherIndex
-
state
public final ReindexingState state
-
SEP
protected static final String SEP
- See Also:
- Constant Field Values
-
NUL
protected static final String NUL
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ReindexingMessage
public ReindexingMessage(String repository, String indexName, String otherIndex, ReindexingState state)
- Parameters:
repository- being re-indexedindexName- the name of the search indexotherIndex- the name of the second write index, or new index depending on the statestate- the state of the reindexing
-
-
Method Detail
-
serialize
public void serialize(OutputStream out) throws IOException
Description copied from interface:SerializableMessageSerializes this to an output stream. The deserialization is handled byAbstractPubSubBroker.deserialize(java.io.InputStream).- Specified by:
serializein interfaceSerializableMessage- Throws:
IOException
-
deserialize
public static ReindexingMessage deserialize(InputStream in) throws IOException
- Throws:
IOException
-
-