Class ProtobufOutputMarshaller
- java.lang.Object
-
- org.drools.serialization.protobuf.ProtobufOutputMarshaller
-
public class ProtobufOutputMarshaller extends Object
An output marshaller that uses ProtoBuf as the marshalling framework in order to provide backward compatibility with marshalled sessions
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classProtobufOutputMarshaller.ActivationsSorterstatic classProtobufOutputMarshaller.EqualityKeySorterstatic classProtobufOutputMarshaller.HandleSorter
-
Constructor Summary
Constructors Constructor Description ProtobufOutputMarshaller()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.drools.core.common.InternalFactHandle[]orderFacts(List<org.drools.core.common.InternalFactHandle> handlesList)static org.drools.core.common.InternalFactHandle[]orderFacts(org.drools.core.common.ObjectStore objectStore)static voidwriteActionQueue(org.drools.core.marshalling.impl.MarshallerWriteContext context, ProtobufMessages.RuleData.Builder _session)static <M extends org.drools.core.beliefsystem.ModedAssertion<M>>
ProtobufMessages.ActivationwriteActivation(org.drools.core.marshalling.impl.MarshallerWriteContext context, org.drools.core.common.AgendaItem<M> agendaItem, boolean isDormient)static voidwriteSession(ProtobufMarshallerWriteContext context)static ProtobufMessages.TriggerwriteTrigger(org.drools.core.time.Trigger trigger, org.drools.core.marshalling.impl.MarshallerWriteContext outCtx)static voidwriteTruthMaintenanceSystem(org.drools.core.marshalling.impl.MarshallerWriteContext context, org.kie.api.runtime.rule.EntryPoint wmep, ProtobufMessages.EntryPoint.Builder _epb)static ProtobufMessages.TuplewriteTuple(org.drools.core.marshalling.impl.MarshallerWriteContext context, org.drools.core.spi.Activation<?> activation, boolean isDormient)static voidwriteWorkItem(org.drools.core.marshalling.impl.MarshallerWriteContext context, org.drools.core.process.instance.WorkItem workItem)
-
-
-
Method Detail
-
writeSession
public static void writeSession(ProtobufMarshallerWriteContext context) throws IOException
- Throws:
IOException
-
writeActionQueue
public static void writeActionQueue(org.drools.core.marshalling.impl.MarshallerWriteContext context, ProtobufMessages.RuleData.Builder _session) throws IOException- Throws:
IOException
-
writeTruthMaintenanceSystem
public static void writeTruthMaintenanceSystem(org.drools.core.marshalling.impl.MarshallerWriteContext context, org.kie.api.runtime.rule.EntryPoint wmep, ProtobufMessages.EntryPoint.Builder _epb) throws IOException- Throws:
IOException
-
orderFacts
public static org.drools.core.common.InternalFactHandle[] orderFacts(org.drools.core.common.ObjectStore objectStore)
-
orderFacts
public static org.drools.core.common.InternalFactHandle[] orderFacts(List<org.drools.core.common.InternalFactHandle> handlesList)
-
writeActivation
public static <M extends org.drools.core.beliefsystem.ModedAssertion<M>> ProtobufMessages.Activation writeActivation(org.drools.core.marshalling.impl.MarshallerWriteContext context, org.drools.core.common.AgendaItem<M> agendaItem, boolean isDormient)
-
writeTuple
public static ProtobufMessages.Tuple writeTuple(org.drools.core.marshalling.impl.MarshallerWriteContext context, org.drools.core.spi.Activation<?> activation, boolean isDormient)
-
writeTrigger
public static ProtobufMessages.Trigger writeTrigger(org.drools.core.time.Trigger trigger, org.drools.core.marshalling.impl.MarshallerWriteContext outCtx)
-
writeWorkItem
public static void writeWorkItem(org.drools.core.marshalling.impl.MarshallerWriteContext context, org.drools.core.process.instance.WorkItem workItem)
-
-