Class ProtobufInputMarshaller
java.lang.Object
org.drools.serialization.protobuf.ProtobufInputMarshaller
An input marshaller that uses protobuf.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidreadActionQueue(ProtobufMarshallerReaderContext context, ProtobufMessages.RuleData _session) static voidreadAgenda(ProtobufMarshallerReaderContext context, ProtobufMessages.RuleData _ruleData, InternalAgenda agenda) static InternalFactHandlereadFactHandle(ProtobufMarshallerReaderContext context, org.kie.api.runtime.rule.EntryPoint entryPoint, ProtobufMessages.FactHandle _handle) static voidreadFactHandles(ProtobufMarshallerReaderContext context, ProtobufMessages.EntryPoint _ep, ObjectStore objectStore, List<PropagationContext> pctxs) static voidreadSession(org.drools.kiesession.session.StatefulKnowledgeSessionImpl session, ProtobufMarshallerReaderContext context) Stream the data into an existing sessionstatic ReadSessionResultreadSession(ProtobufMarshallerReaderContext context, int id, org.kie.api.runtime.Environment environment, SessionConfiguration config, KieSessionInitializer initializer) static org.drools.kiesession.session.StatefulKnowledgeSessionImplreadSession(ProtobufMessages.KnowledgeSession _session, org.drools.kiesession.session.StatefulKnowledgeSessionImpl session, InternalAgenda agenda, ProtobufMarshallerReaderContext context) static voidreadTimer(MarshallerReaderContext inCtx, ProtobufMessages.Timers.Timer _timer) static org.drools.base.time.TriggerreadTrigger(MarshallerReaderContext inCtx, ProtobufMessages.Trigger _trigger) static voidreadTruthMaintenanceSystem(org.drools.kiesession.session.StatefulKnowledgeSessionImpl session, ProtobufMarshallerReaderContext context, org.kie.api.runtime.rule.EntryPoint wmep, ProtobufMessages.EntryPoint _ep, List<PropagationContext> pctxs) static WorkItemreadWorkItem(MarshallerReaderContext context)
-
Constructor Details
-
ProtobufInputMarshaller
public ProtobufInputMarshaller()
-
-
Method Details
-
readSession
public static void readSession(org.drools.kiesession.session.StatefulKnowledgeSessionImpl session, ProtobufMarshallerReaderContext context) throws IOException, ClassNotFoundException Stream the data into an existing session- Parameters:
session-context-- Throws:
IOExceptionClassNotFoundException
-
readSession
public static ReadSessionResult readSession(ProtobufMarshallerReaderContext context, int id, org.kie.api.runtime.Environment environment, SessionConfiguration config, KieSessionInitializer initializer) throws IOException, ClassNotFoundException - Throws:
IOExceptionClassNotFoundException
-
readSession
public static org.drools.kiesession.session.StatefulKnowledgeSessionImpl readSession(ProtobufMessages.KnowledgeSession _session, org.drools.kiesession.session.StatefulKnowledgeSessionImpl session, InternalAgenda agenda, ProtobufMarshallerReaderContext context) throws IOException, ClassNotFoundException - Throws:
IOExceptionClassNotFoundException
-
readAgenda
public static void readAgenda(ProtobufMarshallerReaderContext context, ProtobufMessages.RuleData _ruleData, InternalAgenda agenda) -
readActionQueue
public static void readActionQueue(ProtobufMarshallerReaderContext context, ProtobufMessages.RuleData _session) throws IOException, ClassNotFoundException - Throws:
IOExceptionClassNotFoundException
-
readFactHandles
public static void readFactHandles(ProtobufMarshallerReaderContext context, ProtobufMessages.EntryPoint _ep, ObjectStore objectStore, List<PropagationContext> pctxs) throws IOException, ClassNotFoundException - Throws:
IOExceptionClassNotFoundException
-
readFactHandle
public static InternalFactHandle readFactHandle(ProtobufMarshallerReaderContext context, org.kie.api.runtime.rule.EntryPoint entryPoint, ProtobufMessages.FactHandle _handle) throws IOException, ClassNotFoundException - Throws:
IOExceptionClassNotFoundException
-
readTruthMaintenanceSystem
public static void readTruthMaintenanceSystem(org.drools.kiesession.session.StatefulKnowledgeSessionImpl session, ProtobufMarshallerReaderContext context, org.kie.api.runtime.rule.EntryPoint wmep, ProtobufMessages.EntryPoint _ep, List<PropagationContext> pctxs) throws IOException, ClassNotFoundException - Throws:
IOExceptionClassNotFoundException
-
readTimer
-
readTrigger
public static org.drools.base.time.Trigger readTrigger(MarshallerReaderContext inCtx, ProtobufMessages.Trigger _trigger) -
readWorkItem
-