Class ProtobufInputMarshaller
- java.lang.Object
-
- org.drools.serialization.protobuf.ProtobufInputMarshaller
-
public class ProtobufInputMarshaller extends Object
An input marshaller that uses protobuf.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classProtobufInputMarshaller.PBActivationsFilterstatic classProtobufInputMarshaller.QueryElementContext
-
Constructor Summary
Constructors Constructor Description ProtobufInputMarshaller()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidreadActionQueue(ProtobufMarshallerReaderContext context, ProtobufMessages.RuleData _session)static voidreadAgenda(ProtobufMarshallerReaderContext context, ProtobufMessages.RuleData _ruleData, org.drools.core.common.InternalAgenda agenda)static org.drools.core.common.InternalFactHandlereadFactHandle(ProtobufMarshallerReaderContext context, org.kie.api.runtime.rule.EntryPoint entryPoint, ProtobufMessages.FactHandle _handle)static voidreadFactHandles(ProtobufMarshallerReaderContext context, ProtobufMessages.EntryPoint _ep, org.drools.core.common.ObjectStore objectStore, List<org.drools.core.spi.PropagationContext> pctxs)static org.drools.kiesession.session.StatefulKnowledgeSessionImplreadSession(org.drools.kiesession.session.StatefulKnowledgeSessionImpl session, ProtobufMarshallerReaderContext context)Stream the data into an existing sessionstatic ReadSessionResultreadSession(ProtobufMarshallerReaderContext context, int id)Create a new session into which to read the stream datastatic ReadSessionResultreadSession(ProtobufMarshallerReaderContext context, int id, org.kie.api.runtime.Environment environment, org.drools.core.SessionConfiguration config)static ReadSessionResultreadSession(ProtobufMarshallerReaderContext context, int id, org.kie.api.runtime.Environment environment, org.drools.core.SessionConfiguration config, KieSessionInitializer initializer)static org.drools.kiesession.session.StatefulKnowledgeSessionImplreadSession(ProtobufMessages.KnowledgeSession _session, org.drools.kiesession.session.StatefulKnowledgeSessionImpl session, org.drools.core.common.InternalAgenda agenda, ProtobufMarshallerReaderContext context)static voidreadTimer(org.drools.core.marshalling.MarshallerReaderContext inCtx, ProtobufMessages.Timers.Timer _timer)static org.drools.core.time.TriggerreadTrigger(org.drools.core.marshalling.MarshallerReaderContext inCtx, ProtobufMessages.Trigger _trigger)static voidreadTruthMaintenanceSystem(ProtobufMarshallerReaderContext context, org.kie.api.runtime.rule.EntryPoint wmep, ProtobufMessages.EntryPoint _ep, List<org.drools.core.spi.PropagationContext> pctxs)static org.drools.core.process.instance.WorkItemreadWorkItem(org.drools.core.marshalling.MarshallerReaderContext context)
-
-
-
Method Detail
-
readSession
public static org.drools.kiesession.session.StatefulKnowledgeSessionImpl readSession(org.drools.kiesession.session.StatefulKnowledgeSessionImpl session, ProtobufMarshallerReaderContext context) throws IOException, ClassNotFoundExceptionStream the data into an existing session- Parameters:
session-context-- Returns:
- Throws:
IOExceptionClassNotFoundException
-
readSession
public static ReadSessionResult readSession(ProtobufMarshallerReaderContext context, int id) throws IOException, ClassNotFoundException
Create a new session into which to read the stream data- Throws:
IOExceptionClassNotFoundException
-
readSession
public static ReadSessionResult readSession(ProtobufMarshallerReaderContext context, int id, org.kie.api.runtime.Environment environment, org.drools.core.SessionConfiguration config) throws IOException, ClassNotFoundException
- Throws:
IOExceptionClassNotFoundException
-
readSession
public static ReadSessionResult readSession(ProtobufMarshallerReaderContext context, int id, org.kie.api.runtime.Environment environment, org.drools.core.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, org.drools.core.common.InternalAgenda agenda, ProtobufMarshallerReaderContext context) throws IOException, ClassNotFoundException
- Throws:
IOExceptionClassNotFoundException
-
readAgenda
public static void readAgenda(ProtobufMarshallerReaderContext context, ProtobufMessages.RuleData _ruleData, org.drools.core.common.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, org.drools.core.common.ObjectStore objectStore, List<org.drools.core.spi.PropagationContext> pctxs) throws IOException, ClassNotFoundException
- Throws:
IOExceptionClassNotFoundException
-
readFactHandle
public static org.drools.core.common.InternalFactHandle readFactHandle(ProtobufMarshallerReaderContext context, org.kie.api.runtime.rule.EntryPoint entryPoint, ProtobufMessages.FactHandle _handle) throws IOException, ClassNotFoundException
- Throws:
IOExceptionClassNotFoundException
-
readTruthMaintenanceSystem
public static void readTruthMaintenanceSystem(ProtobufMarshallerReaderContext context, org.kie.api.runtime.rule.EntryPoint wmep, ProtobufMessages.EntryPoint _ep, List<org.drools.core.spi.PropagationContext> pctxs) throws IOException, ClassNotFoundException
- Throws:
IOExceptionClassNotFoundException
-
readTimer
public static void readTimer(org.drools.core.marshalling.MarshallerReaderContext inCtx, ProtobufMessages.Timers.Timer _timer) throws IOException, ClassNotFoundException- Throws:
IOExceptionClassNotFoundException
-
readTrigger
public static org.drools.core.time.Trigger readTrigger(org.drools.core.marshalling.MarshallerReaderContext inCtx, ProtobufMessages.Trigger _trigger)
-
readWorkItem
public static org.drools.core.process.instance.WorkItem readWorkItem(org.drools.core.marshalling.MarshallerReaderContext context)
-
-