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 String
indexName
protected static String
NUL
String
otherIndex
String
repository
protected static String
SEP
ReindexingState
state
-
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 ReindexingMessage
deserialize(InputStream in)
boolean
equals(Object o)
int
hashCode()
void
serialize(OutputStream out)
Serializes this to an output stream.String
toString()
protected static String
valueOf(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:SerializableMessage
Serializes this to an output stream. The deserialization is handled byAbstractPubSubBroker.deserialize(java.io.InputStream)
.- Specified by:
serialize
in interfaceSerializableMessage
- Throws:
IOException
-
deserialize
public static ReindexingMessage deserialize(InputStream in) throws IOException
- Throws:
IOException
-
-