Class ProtobufMarshallerReaderContext
java.lang.Object
java.io.InputStream
java.io.ObjectInputStream
org.drools.serialization.protobuf.ProtobufMarshallerReaderContext
- All Implemented Interfaces:
Closeable,DataInput,ObjectInput,ObjectStreamConstants,AutoCloseable,MarshallerReaderContext
public class ProtobufMarshallerReaderContext
extends ObjectInputStream
implements MarshallerReaderContext
-
Nested Class Summary
Nested classes/interfaces inherited from class java.io.ObjectInputStream
ObjectInputStream.GetField -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal org.kie.api.runtime.Environmentorg.kie.api.runtime.KieRuntimefinal booleanfinal booleanfinal Map<RightTupleKey,RightTuple> 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
ConstructorsConstructorDescriptionProtobufMarshallerReaderContext(InputStream stream, org.drools.kiesession.rulebase.InternalKnowledgeBase kBase, Map<Integer, 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, BaseNode> sinks, org.kie.api.marshalling.ObjectMarshallingStrategyStore resolverStrategyFactory, Map<Integer, TimersInputMarshaller> timerReaders, org.kie.api.runtime.Environment env) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTimerNodeScheduler(int nodeId, TupleKey key, PhreakTimerNode.Scheduler scheduler) createAccumulateHandle(org.drools.base.rule.EntryPointId entryPointId, ReteEvaluator reteEvaluator, TupleImpl leftTuple, Object result, int nodeId) createAsyncNodeHandle(TupleImpl leftTuple, ReteEvaluator reteEvaluator, Object object, int nodeId, ObjectTypeConf objectTypeConf) createQueryHandle(TupleImpl leftTuple, ReteEvaluator reteEvaluator, int nodeId) createQueryResultHandle(TupleImpl leftTuple, Object[] objects, int nodeId) org.drools.kiesession.rulebase.InternalKnowledgeBaseprotected org.kie.api.marshalling.ObjectMarshallingStrategy[]getReaderForInt(int i) org.kie.api.marshalling.ObjectMarshallingStrategyStoregetSinks()Map<org.kie.api.marshalling.ObjectMarshallingStrategy,org.kie.api.marshalling.ObjectMarshallingStrategy.Context> removeTimerNodeScheduler(int nodeId, TupleKey key) protected Class<?>voidsetClassLoader(ClassLoader classLoader) voidsetParameterObject(Object parameterObject) voidsetReaderForInt(int i, Object reader) voidvoidMethods 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, skipBytesMethods inherited from class java.io.InputStream
mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferToMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.io.DataInput
readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, skipBytesMethods inherited from interface java.io.ObjectInput
available, close, read, read, read, readObject, skip
-
Field Details
-
kruntime
public org.kie.api.runtime.KieRuntime kruntime -
rightTuples
-
entryPoints
-
marshalProcessInstances
public final boolean marshalProcessInstances -
marshalWorkItems
public final boolean marshalWorkItems -
env
public final org.kie.api.runtime.Environment env -
timerNodeSchedulers
-
-
Constructor Details
-
ProtobufMarshallerReaderContext
public ProtobufMarshallerReaderContext(InputStream stream, org.drools.kiesession.rulebase.InternalKnowledgeBase kBase, Map<Integer, BaseNode> sinks, org.kie.api.marshalling.ObjectMarshallingStrategyStore resolverStrategyFactory, Map<Integer, throws IOExceptionTimersInputMarshaller> timerReaders, org.kie.api.runtime.Environment env) - Throws:
IOException
-
ProtobufMarshallerReaderContext
public ProtobufMarshallerReaderContext(InputStream stream, org.drools.kiesession.rulebase.InternalKnowledgeBase kBase, Map<Integer, BaseNode> sinks, org.kie.api.marshalling.ObjectMarshallingStrategyStore resolverStrategyFactory, Map<Integer, throws IOExceptionTimersInputMarshaller> timerReaders, boolean marshalProcessInstances, boolean marshalWorkItems, org.kie.api.runtime.Environment env) - Throws:
IOException
-
-
Method Details
-
getNodeMemories
- Specified by:
getNodeMemoriesin interfaceMarshallerReaderContext
-
getMarshallingStrategy
protected org.kie.api.marshalling.ObjectMarshallingStrategy[] getMarshallingStrategy() -
resolveClass
- Overrides:
resolveClassin classObjectInputStream- Throws:
IOExceptionClassNotFoundException
-
addTimerNodeScheduler
- Specified by:
addTimerNodeSchedulerin interfaceMarshallerReaderContext
-
removeTimerNodeScheduler
- Specified by:
removeTimerNodeSchedulerin interfaceMarshallerReaderContext
-
getWorkingMemory
- Specified by:
getWorkingMemoryin interfaceMarshallerReaderContext
-
setWorkingMemory
-
getKnowledgeBase
public org.drools.kiesession.rulebase.InternalKnowledgeBase getKnowledgeBase()- Specified by:
getKnowledgeBasein interfaceMarshallerReaderContext
-
getHandles
- Specified by:
getHandlesin interfaceMarshallerReaderContext
-
getTerminalTupleMap
- Specified by:
getTerminalTupleMapin interfaceMarshallerReaderContext
-
getFilter
- Specified by:
getFilterin interfaceMarshallerReaderContext
-
getSinks
- Specified by:
getSinksin interfaceMarshallerReaderContext
-
getPropagationContexts
- Specified by:
getPropagationContextsin interfaceMarshallerReaderContext
-
getResolverStrategyFactory
public org.kie.api.marshalling.ObjectMarshallingStrategyStore getResolverStrategyFactory()- Specified by:
getResolverStrategyFactoryin interfaceMarshallerReaderContext
-
getClassLoader
- Specified by:
getClassLoaderin interfaceMarshallerReaderContext
-
setClassLoader
-
getUsedStrategies
- Specified by:
getUsedStrategiesin interfaceMarshallerReaderContext
-
getStrategyContexts
public Map<org.kie.api.marshalling.ObjectMarshallingStrategy,org.kie.api.marshalling.ObjectMarshallingStrategy.Context> getStrategyContexts()- Specified by:
getStrategyContextsin interfaceMarshallerReaderContext
-
getParameterObject
- Specified by:
getParameterObjectin interfaceMarshallerReaderContext
-
setParameterObject
- Specified by:
setParameterObjectin interfaceMarshallerReaderContext
-
getReaderForInt
- Specified by:
getReaderForIntin interfaceMarshallerReaderContext
-
setReaderForInt
- Specified by:
setReaderForIntin interfaceMarshallerReaderContext
-
createAccumulateHandle
public InternalFactHandle createAccumulateHandle(org.drools.base.rule.EntryPointId entryPointId, ReteEvaluator reteEvaluator, TupleImpl leftTuple, Object result, int nodeId) - Specified by:
createAccumulateHandlein interfaceMarshallerReaderContext
-
createAsyncNodeHandle
public InternalFactHandle createAsyncNodeHandle(TupleImpl leftTuple, ReteEvaluator reteEvaluator, Object object, int nodeId, ObjectTypeConf objectTypeConf) - Specified by:
createAsyncNodeHandlein interfaceMarshallerReaderContext
-
createQueryResultHandle
public QueryElementFactHandle createQueryResultHandle(TupleImpl leftTuple, Object[] objects, int nodeId) - Specified by:
createQueryResultHandlein interfaceMarshallerReaderContext
-
createQueryHandle
public InternalFactHandle createQueryHandle(TupleImpl leftTuple, ReteEvaluator reteEvaluator, int nodeId) - Specified by:
createQueryHandlein interfaceMarshallerReaderContext
-
withSerializedNodeMemories
public void withSerializedNodeMemories()
-