Class ProtobufMarshallerReaderContext
- java.lang.Object
-
- java.io.InputStream
-
- java.io.ObjectInputStream
-
- org.drools.serialization.protobuf.ProtobufMarshallerReaderContext
-
- All Implemented Interfaces:
Closeable,DataInput,ObjectInput,ObjectStreamConstants,AutoCloseable,org.drools.core.marshalling.MarshallerReaderContext
public class ProtobufMarshallerReaderContext extends ObjectInputStream implements org.drools.core.marshalling.MarshallerReaderContext
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.io.ObjectInputStream
ObjectInputStream.GetField
-
-
Field Summary
Fields Modifier and Type Field Description Map<String,org.drools.core.rule.EntryPointId>entryPointsorg.kie.api.runtime.Environmentenvorg.kie.api.runtime.KieRuntimekruntimebooleanmarshalProcessInstancesbooleanmarshalWorkItemsMap<RightTupleKey,org.drools.core.reteoo.RightTuple>rightTuplesMap<Integer,Map<org.drools.core.marshalling.TupleKey,org.drools.core.phreak.PhreakTimerNode.Scheduler>>timerNodeSchedulers-
Fields inherited from interface java.io.ObjectStreamConstants
baseWireHandle, PROTOCOL_VERSION_1, PROTOCOL_VERSION_2, SC_BLOCK_DATA, SC_ENUM, SC_EXTERNALIZABLE, SC_SERIALIZABLE, SC_WRITE_METHOD, SERIAL_FILTER_PERMISSION, STREAM_MAGIC, STREAM_VERSION, SUBCLASS_IMPLEMENTATION_PERMISSION, SUBSTITUTION_PERMISSION, TC_ARRAY, TC_BASE, TC_BLOCKDATA, TC_BLOCKDATALONG, TC_CLASS, TC_CLASSDESC, TC_ENDBLOCKDATA, TC_ENUM, TC_EXCEPTION, TC_LONGSTRING, TC_MAX, TC_NULL, TC_OBJECT, TC_PROXYCLASSDESC, TC_REFERENCE, TC_RESET, TC_STRING
-
-
Constructor Summary
Constructors Constructor Description ProtobufMarshallerReaderContext(InputStream stream, org.drools.kiesession.rulebase.InternalKnowledgeBase kBase, Map<Integer,org.drools.core.common.BaseNode> sinks, org.kie.api.marshalling.ObjectMarshallingStrategyStore resolverStrategyFactory, Map<Integer,TimersInputMarshaller> timerReaders, boolean marshalProcessInstances, boolean marshalWorkItems, org.kie.api.runtime.Environment env)ProtobufMarshallerReaderContext(InputStream stream, org.drools.kiesession.rulebase.InternalKnowledgeBase kBase, Map<Integer,org.drools.core.common.BaseNode> sinks, org.kie.api.marshalling.ObjectMarshallingStrategyStore resolverStrategyFactory, Map<Integer,TimersInputMarshaller> timerReaders, org.kie.api.runtime.Environment env)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddTimerNodeScheduler(int nodeId, org.drools.core.marshalling.TupleKey key, org.drools.core.phreak.PhreakTimerNode.Scheduler scheduler)org.drools.core.common.InternalFactHandlecreateAccumulateHandle(org.drools.core.rule.EntryPointId entryPointId, org.drools.core.common.ReteEvaluator reteEvaluator, org.drools.core.reteoo.LeftTuple leftTuple, Object result, int nodeId)org.drools.core.common.InternalFactHandlecreateAsyncNodeHandle(org.drools.core.spi.Tuple leftTuple, org.drools.core.common.ReteEvaluator reteEvaluator, Object object, int nodeId, org.drools.core.reteoo.ObjectTypeConf objectTypeConf)org.drools.core.common.InternalFactHandlecreateQueryHandle(org.drools.core.spi.Tuple leftTuple, org.drools.core.common.ReteEvaluator reteEvaluator, int nodeId)org.drools.core.common.QueryElementFactHandlecreateQueryResultHandle(org.drools.core.spi.Tuple leftTuple, Object[] objects, int nodeId)ClassLoadergetClassLoader()ProtobufInputMarshaller.PBActivationsFiltergetFilter()Map<Long,org.drools.core.common.InternalFactHandle>getHandles()org.drools.kiesession.rulebase.InternalKnowledgeBasegetKnowledgeBase()protected org.kie.api.marshalling.ObjectMarshallingStrategy[]getMarshallingStrategy()Map<Integer,Object>getNodeMemories()ObjectgetParameterObject()Map<Long,org.drools.core.spi.PropagationContext>getPropagationContexts()ObjectgetReaderForInt(int i)org.kie.api.marshalling.ObjectMarshallingStrategyStoregetResolverStrategyFactory()Map<Integer,org.drools.core.common.BaseNode>getSinks()Map<org.kie.api.marshalling.ObjectMarshallingStrategy,org.kie.api.marshalling.ObjectMarshallingStrategy.Context>getStrategyContexts()Map<Integer,org.drools.core.reteoo.LeftTuple>getTerminalTupleMap()Map<Integer,org.kie.api.marshalling.ObjectMarshallingStrategy>getUsedStrategies()org.drools.core.common.InternalWorkingMemorygetWorkingMemory()org.drools.core.phreak.PhreakTimerNode.SchedulerremoveTimerNodeScheduler(int nodeId, org.drools.core.marshalling.TupleKey key)protected Class<?>resolveClass(ObjectStreamClass desc)voidsetClassLoader(ClassLoader classLoader)voidsetParameterObject(Object parameterObject)voidsetReaderForInt(int i, Object reader)voidsetWorkingMemory(org.drools.core.common.InternalWorkingMemory wm)voidwithSerializedNodeMemories()-
Methods inherited from class java.io.ObjectInputStream
available, close, defaultReadObject, enableResolveObject, getObjectInputFilter, read, read, readBoolean, readByte, readChar, readClassDescriptor, readDouble, readFields, readFloat, readFully, readFully, readInt, readLine, readLong, readObject, readObjectOverride, readShort, readStreamHeader, readUnshared, readUnsignedByte, readUnsignedShort, readUTF, registerValidation, resolveObject, resolveProxyClass, setObjectInputFilter, skipBytes
-
Methods inherited from class java.io.InputStream
mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, transferTo
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.io.DataInput
readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, skipBytes
-
Methods inherited from interface java.io.ObjectInput
available, close, read, read, read, readObject, skip
-
-
-
-
Field Detail
-
kruntime
public org.kie.api.runtime.KieRuntime kruntime
-
rightTuples
public final Map<RightTupleKey,org.drools.core.reteoo.RightTuple> rightTuples
-
marshalProcessInstances
public final boolean marshalProcessInstances
-
marshalWorkItems
public final boolean marshalWorkItems
-
env
public final org.kie.api.runtime.Environment env
-
-
Constructor Detail
-
ProtobufMarshallerReaderContext
public ProtobufMarshallerReaderContext(InputStream stream, org.drools.kiesession.rulebase.InternalKnowledgeBase kBase, Map<Integer,org.drools.core.common.BaseNode> sinks, org.kie.api.marshalling.ObjectMarshallingStrategyStore resolverStrategyFactory, Map<Integer,TimersInputMarshaller> timerReaders, org.kie.api.runtime.Environment env) throws IOException
- Throws:
IOException
-
ProtobufMarshallerReaderContext
public ProtobufMarshallerReaderContext(InputStream stream, org.drools.kiesession.rulebase.InternalKnowledgeBase kBase, Map<Integer,org.drools.core.common.BaseNode> sinks, org.kie.api.marshalling.ObjectMarshallingStrategyStore resolverStrategyFactory, Map<Integer,TimersInputMarshaller> timerReaders, boolean marshalProcessInstances, boolean marshalWorkItems, org.kie.api.runtime.Environment env) throws IOException
- Throws:
IOException
-
-
Method Detail
-
getNodeMemories
public Map<Integer,Object> getNodeMemories()
- Specified by:
getNodeMemoriesin interfaceorg.drools.core.marshalling.MarshallerReaderContext
-
getMarshallingStrategy
protected org.kie.api.marshalling.ObjectMarshallingStrategy[] getMarshallingStrategy()
-
resolveClass
protected Class<?> resolveClass(ObjectStreamClass desc) throws IOException, ClassNotFoundException
- Overrides:
resolveClassin classObjectInputStream- Throws:
IOExceptionClassNotFoundException
-
addTimerNodeScheduler
public void addTimerNodeScheduler(int nodeId, org.drools.core.marshalling.TupleKey key, org.drools.core.phreak.PhreakTimerNode.Scheduler scheduler)- Specified by:
addTimerNodeSchedulerin interfaceorg.drools.core.marshalling.MarshallerReaderContext
-
removeTimerNodeScheduler
public org.drools.core.phreak.PhreakTimerNode.Scheduler removeTimerNodeScheduler(int nodeId, org.drools.core.marshalling.TupleKey key)- Specified by:
removeTimerNodeSchedulerin interfaceorg.drools.core.marshalling.MarshallerReaderContext
-
getWorkingMemory
public org.drools.core.common.InternalWorkingMemory getWorkingMemory()
- Specified by:
getWorkingMemoryin interfaceorg.drools.core.marshalling.MarshallerReaderContext
-
setWorkingMemory
public void setWorkingMemory(org.drools.core.common.InternalWorkingMemory wm)
-
getKnowledgeBase
public org.drools.kiesession.rulebase.InternalKnowledgeBase getKnowledgeBase()
- Specified by:
getKnowledgeBasein interfaceorg.drools.core.marshalling.MarshallerReaderContext
-
getHandles
public Map<Long,org.drools.core.common.InternalFactHandle> getHandles()
- Specified by:
getHandlesin interfaceorg.drools.core.marshalling.MarshallerReaderContext
-
getTerminalTupleMap
public Map<Integer,org.drools.core.reteoo.LeftTuple> getTerminalTupleMap()
- Specified by:
getTerminalTupleMapin interfaceorg.drools.core.marshalling.MarshallerReaderContext
-
getFilter
public ProtobufInputMarshaller.PBActivationsFilter getFilter()
- Specified by:
getFilterin interfaceorg.drools.core.marshalling.MarshallerReaderContext
-
getSinks
public Map<Integer,org.drools.core.common.BaseNode> getSinks()
- Specified by:
getSinksin interfaceorg.drools.core.marshalling.MarshallerReaderContext
-
getPropagationContexts
public Map<Long,org.drools.core.spi.PropagationContext> getPropagationContexts()
- Specified by:
getPropagationContextsin interfaceorg.drools.core.marshalling.MarshallerReaderContext
-
getResolverStrategyFactory
public org.kie.api.marshalling.ObjectMarshallingStrategyStore getResolverStrategyFactory()
- Specified by:
getResolverStrategyFactoryin interfaceorg.drools.core.marshalling.MarshallerReaderContext
-
getClassLoader
public ClassLoader getClassLoader()
- Specified by:
getClassLoaderin interfaceorg.drools.core.marshalling.MarshallerReaderContext
-
setClassLoader
public void setClassLoader(ClassLoader classLoader)
-
getUsedStrategies
public Map<Integer,org.kie.api.marshalling.ObjectMarshallingStrategy> getUsedStrategies()
- Specified by:
getUsedStrategiesin interfaceorg.drools.core.marshalling.MarshallerReaderContext
-
getStrategyContexts
public Map<org.kie.api.marshalling.ObjectMarshallingStrategy,org.kie.api.marshalling.ObjectMarshallingStrategy.Context> getStrategyContexts()
- Specified by:
getStrategyContextsin interfaceorg.drools.core.marshalling.MarshallerReaderContext
-
getParameterObject
public Object getParameterObject()
- Specified by:
getParameterObjectin interfaceorg.drools.core.marshalling.MarshallerReaderContext
-
setParameterObject
public void setParameterObject(Object parameterObject)
- Specified by:
setParameterObjectin interfaceorg.drools.core.marshalling.MarshallerReaderContext
-
getReaderForInt
public Object getReaderForInt(int i)
- Specified by:
getReaderForIntin interfaceorg.drools.core.marshalling.MarshallerReaderContext
-
setReaderForInt
public void setReaderForInt(int i, Object reader)- Specified by:
setReaderForIntin interfaceorg.drools.core.marshalling.MarshallerReaderContext
-
createAccumulateHandle
public org.drools.core.common.InternalFactHandle createAccumulateHandle(org.drools.core.rule.EntryPointId entryPointId, org.drools.core.common.ReteEvaluator reteEvaluator, org.drools.core.reteoo.LeftTuple leftTuple, Object result, int nodeId)- Specified by:
createAccumulateHandlein interfaceorg.drools.core.marshalling.MarshallerReaderContext
-
createAsyncNodeHandle
public org.drools.core.common.InternalFactHandle createAsyncNodeHandle(org.drools.core.spi.Tuple leftTuple, org.drools.core.common.ReteEvaluator reteEvaluator, Object object, int nodeId, org.drools.core.reteoo.ObjectTypeConf objectTypeConf)- Specified by:
createAsyncNodeHandlein interfaceorg.drools.core.marshalling.MarshallerReaderContext
-
createQueryResultHandle
public org.drools.core.common.QueryElementFactHandle createQueryResultHandle(org.drools.core.spi.Tuple leftTuple, Object[] objects, int nodeId)- Specified by:
createQueryResultHandlein interfaceorg.drools.core.marshalling.MarshallerReaderContext
-
createQueryHandle
public org.drools.core.common.InternalFactHandle createQueryHandle(org.drools.core.spi.Tuple leftTuple, org.drools.core.common.ReteEvaluator reteEvaluator, int nodeId)- Specified by:
createQueryHandlein interfaceorg.drools.core.marshalling.MarshallerReaderContext
-
withSerializedNodeMemories
public void withSerializedNodeMemories()
-
-