Class ProtobufOutputMarshaller


  • public class ProtobufOutputMarshaller
    extends java.lang.Object
    An output marshaller that uses ProtoBuf as the marshalling framework in order to provide backward compatibility with marshalled sessions
    • Constructor Detail

      • ProtobufOutputMarshaller

        public ProtobufOutputMarshaller()
    • Method Detail

      • writeActionQueue

        public static void writeActionQueue​(org.drools.core.marshalling.MarshallerWriteContext context,
                                            ProtobufMessages.RuleData.Builder _session)
                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • writeTruthMaintenanceSystem

        public static void writeTruthMaintenanceSystem​(org.drools.core.marshalling.MarshallerWriteContext context,
                                                       org.kie.api.runtime.rule.EntryPoint wmep,
                                                       ProtobufMessages.EntryPoint.Builder _epb)
                                                throws java.io.IOException
        Throws:
        java.io.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​(java.util.List<org.drools.core.common.InternalFactHandle> handlesList)
      • writeActivation

        public static <M extends org.drools.tms.beliefsystem.ModedAssertion<M>> ProtobufMessages.Activation writeActivation​(org.drools.core.marshalling.MarshallerWriteContext context,
                                                                                                                            org.drools.core.rule.consequence.InternalMatch internalMatch,
                                                                                                                            boolean isDormient)
      • writeActivation

        public static <M extends org.drools.tms.beliefsystem.ModedAssertion<M>> ProtobufMessages.Activation writeActivation​(org.drools.core.marshalling.MarshallerWriteContext context,
                                                                                                                            org.drools.core.phreak.RuleAgendaItem agendaItem)
      • writeTuple

        public static ProtobufMessages.Tuple writeTuple​(org.drools.core.marshalling.MarshallerWriteContext context,
                                                        org.drools.core.rule.consequence.InternalMatch internalMatch,
                                                        boolean isDormient)
      • writeTrigger

        public static ProtobufMessages.Trigger writeTrigger​(org.drools.core.time.Trigger trigger,
                                                            org.drools.core.marshalling.MarshallerWriteContext outCtx)
      • writeWorkItem

        public static void writeWorkItem​(org.drools.core.marshalling.MarshallerWriteContext context,
                                         org.drools.core.process.WorkItem workItem)