org.drools.core.marshalling.impl
Class ProtobufInputMarshaller
java.lang.Object
org.drools.core.marshalling.impl.ProtobufInputMarshaller
public class ProtobufInputMarshaller
- extends Object
An input marshaller that uses protobuf.
|
Method Summary |
static void |
readActionQueue(MarshallerReaderContext context,
ProtobufMessages.RuleData _session)
|
static void |
readAgenda(MarshallerReaderContext context,
ProtobufMessages.RuleData _ruleData,
InternalAgenda agenda)
|
static InternalFactHandle |
readFactHandle(MarshallerReaderContext context,
org.kie.api.runtime.rule.EntryPoint entryPoint,
ProtobufMessages.FactHandle _handle)
|
static void |
readFactHandles(MarshallerReaderContext context,
ProtobufMessages.EntryPoint _ep,
ObjectStore objectStore,
List<PropagationContext> pctxs)
|
static AbstractWorkingMemory |
readSession(AbstractWorkingMemory session,
MarshallerReaderContext context)
Stream the data into an existing session |
static AbstractWorkingMemory |
readSession(MarshallerReaderContext context,
int id)
Create a new session into which to read the stream data |
static AbstractWorkingMemory |
readSession(MarshallerReaderContext context,
int id,
org.kie.api.runtime.Environment environment,
SessionConfiguration config)
|
static AbstractWorkingMemory |
readSession(ProtobufMessages.KnowledgeSession _session,
AbstractWorkingMemory session,
InternalAgenda agenda,
MarshallerReaderContext context)
|
static void |
readTimer(MarshallerReaderContext inCtx,
ProtobufMessages.Timers.Timer _timer)
|
static Trigger |
readTrigger(MarshallerReaderContext inCtx,
ProtobufMessages.Trigger _trigger)
|
static void |
readTruthMaintenanceSystem(MarshallerReaderContext context,
org.kie.api.runtime.rule.EntryPoint wmep,
ProtobufMessages.EntryPoint _ep,
List<PropagationContext> pctxs)
|
static WorkItem |
readWorkItem(MarshallerReaderContext context)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProtobufInputMarshaller
public ProtobufInputMarshaller()
readSession
public static AbstractWorkingMemory readSession(AbstractWorkingMemory session,
MarshallerReaderContext context)
throws IOException,
ClassNotFoundException
- Stream the data into an existing session
- Parameters:
session - context -
- Returns:
-
- Throws:
IOException
ClassNotFoundException
readSession
public static AbstractWorkingMemory readSession(MarshallerReaderContext context,
int id)
throws IOException,
ClassNotFoundException
- Create a new session into which to read the stream data
- Throws:
IOException
ClassNotFoundException
readSession
public static AbstractWorkingMemory readSession(MarshallerReaderContext context,
int id,
org.kie.api.runtime.Environment environment,
SessionConfiguration config)
throws IOException,
ClassNotFoundException
- Throws:
IOException
ClassNotFoundException
readSession
public static AbstractWorkingMemory readSession(ProtobufMessages.KnowledgeSession _session,
AbstractWorkingMemory session,
InternalAgenda agenda,
MarshallerReaderContext context)
throws IOException,
ClassNotFoundException
- Throws:
IOException
ClassNotFoundException
readAgenda
public static void readAgenda(MarshallerReaderContext context,
ProtobufMessages.RuleData _ruleData,
InternalAgenda agenda)
readActionQueue
public static void readActionQueue(MarshallerReaderContext context,
ProtobufMessages.RuleData _session)
throws IOException,
ClassNotFoundException
- Throws:
IOException
ClassNotFoundException
readFactHandles
public static void readFactHandles(MarshallerReaderContext context,
ProtobufMessages.EntryPoint _ep,
ObjectStore objectStore,
List<PropagationContext> pctxs)
throws IOException,
ClassNotFoundException
- Throws:
IOException
ClassNotFoundException
readFactHandle
public static InternalFactHandle readFactHandle(MarshallerReaderContext context,
org.kie.api.runtime.rule.EntryPoint entryPoint,
ProtobufMessages.FactHandle _handle)
throws IOException,
ClassNotFoundException
- Throws:
IOException
ClassNotFoundException
readTruthMaintenanceSystem
public static void readTruthMaintenanceSystem(MarshallerReaderContext context,
org.kie.api.runtime.rule.EntryPoint wmep,
ProtobufMessages.EntryPoint _ep,
List<PropagationContext> pctxs)
throws IOException,
ClassNotFoundException
- Throws:
IOException
ClassNotFoundException
readTimer
public static void readTimer(MarshallerReaderContext inCtx,
ProtobufMessages.Timers.Timer _timer)
throws IOException,
ClassNotFoundException
- Throws:
IOException
ClassNotFoundException
readTrigger
public static Trigger readTrigger(MarshallerReaderContext inCtx,
ProtobufMessages.Trigger _trigger)
readWorkItem
public static WorkItem readWorkItem(MarshallerReaderContext context)
Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.