Class ScaleActivityJsonWriter
java.lang.Object
org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonWriter<ScaleActivity>
org.nuxeo.ecm.core.bulk.introspection.ScaleActivityJsonWriter
- All Implemented Interfaces:
Marshaller<ScaleActivity>,Writer<ScaleActivity>
@Setup(mode=SINGLETON,
priority=2000)
public class ScaleActivityJsonWriter
extends AbstractJsonWriter<ScaleActivity>
- Since:
- 2025.11
-
Field Summary
Fields inherited from class org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonWriter
ctx, registry -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidwrite(ScaleActivity.ActiveComputationNode node, com.fasterxml.jackson.core.JsonGenerator jg) protected voidwrite(ScaleActivity.ActiveComputation computation, com.fasterxml.jackson.core.JsonGenerator jg) protected voidwrite(ScaleActivity.ActiveComputationRecommendation recommendationCurrent, com.fasterxml.jackson.core.JsonGenerator jg) protected voidwrite(ScaleActivity.ActiveComputationStream stream, com.fasterxml.jackson.core.JsonGenerator jg) protected voidwrite(ScaleActivity.ClusterNode node, com.fasterxml.jackson.core.JsonGenerator jg) protected voidwrite(ScaleActivity.Scale scale, com.fasterxml.jackson.core.JsonGenerator jg) voidwrite(ScaleActivity scaleActivity, com.fasterxml.jackson.core.JsonGenerator jg) Implement this method to writes the entity in the providedJsonGenerator.Methods inherited from class org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonWriter
accept, getGenerator, write, writeEntity, writeEntity, writeEntityField, writeSerializable, writeSerializableField, writeSerializableListField, writeSerializableMapField
-
Constructor Details
-
ScaleActivityJsonWriter
public ScaleActivityJsonWriter()
-
-
Method Details
-
write
public void write(ScaleActivity scaleActivity, com.fasterxml.jackson.core.JsonGenerator jg) throws IOException Description copied from class:AbstractJsonWriterImplement this method to writes the entity in the providedJsonGenerator.This method implementation can use injected properties.
The
JsonGenerator's flushing is done by this abstract class, it's also not not necessary to flush it. Do not close the providedJsonGenerator. It may be used is another marshaller calling this one.- Specified by:
writein classAbstractJsonWriter<ScaleActivity>- Parameters:
scaleActivity- The entity to marshall as Json.jg- TheJsonGeneratorused to produce Json output.- Throws:
IOException
-
write
protected void write(ScaleActivity.Scale scale, com.fasterxml.jackson.core.JsonGenerator jg) throws IOException - Throws:
IOException
-
write
protected void write(ScaleActivity.ClusterNode node, com.fasterxml.jackson.core.JsonGenerator jg) throws IOException - Throws:
IOException
-
write
protected void write(ScaleActivity.ActiveComputation computation, com.fasterxml.jackson.core.JsonGenerator jg) throws IOException - Throws:
IOException
-
write
protected void write(ScaleActivity.ActiveComputationStream stream, com.fasterxml.jackson.core.JsonGenerator jg) throws IOException - Throws:
IOException
-
write
protected void write(ScaleActivity.ActiveComputationNode node, com.fasterxml.jackson.core.JsonGenerator jg) throws IOException - Throws:
IOException
-
write
protected void write(ScaleActivity.ActiveComputationRecommendation recommendationCurrent, com.fasterxml.jackson.core.JsonGenerator jg) throws IOException - Throws:
IOException
-