Class ProtobufMarshallerWriteContext
java.lang.Object
java.io.OutputStream
java.io.ObjectOutputStream
org.drools.serialization.protobuf.ProtobufMarshallerWriteContext
- All Implemented Interfaces:
Closeable,DataOutput,Flushable,ObjectOutput,ObjectStreamConstants,AutoCloseable,MarshallerWriteContext
- Direct Known Subclasses:
ProtobufProcessMarshallerWriteContext
public class ProtobufMarshallerWriteContext
extends ObjectOutputStream
implements MarshallerWriteContext
-
Nested Class Summary
Nested classes/interfaces inherited from class java.io.ObjectOutputStream
ObjectOutputStream.PutField -
Field Summary
FieldsFields 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
ConstructorsConstructorDescriptionProtobufMarshallerWriteContext(OutputStream stream, org.drools.kiesession.rulebase.InternalKnowledgeBase kBase, InternalWorkingMemory wm, Map<Integer, BaseNode> sinks, org.kie.api.marshalling.ObjectMarshallingStrategyStore resolverStrategyFactory, boolean marshalProcessInstances, boolean marshalWorkItems, org.kie.api.runtime.Environment env) ProtobufMarshallerWriteContext(OutputStream stream, org.drools.kiesession.rulebase.InternalKnowledgeBase kBase, InternalWorkingMemory wm, Map<Integer, BaseNode> sinks, org.kie.api.marshalling.ObjectMarshallingStrategyStore resolverStrategyFactory, org.kie.api.runtime.Environment env) -
Method Summary
Modifier and TypeMethodDescriptionlongorg.kie.api.runtime.Environmentorg.drools.kiesession.rulebase.InternalKnowledgeBaseprotected org.kie.api.marshalling.ObjectMarshallingStrategy[]org.kie.api.marshalling.ObjectMarshallingStrategyStoregetSinks()Map<org.kie.api.marshalling.ObjectMarshallingStrategy,org.kie.api.marshalling.ObjectMarshallingStrategy.Context> getStrategyIndex(org.kie.api.marshalling.ObjectMarshallingStrategy strategy) getWriterForClass(Class<?> c) booleanbooleanvoidsetClockTime(long clockTime) voidsetParameterObject(Object parameterObject) voidsetWriterForClass(Class<?> c, Object writer) Methods inherited from class java.io.ObjectOutputStream
annotateClass, annotateProxyClass, close, defaultWriteObject, drain, enableReplaceObject, flush, putFields, replaceObject, reset, useProtocolVersion, write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeClassDescriptor, writeDouble, writeFields, writeFloat, writeInt, writeLong, writeObject, writeObjectOverride, writeShort, writeStreamHeader, writeUnshared, writeUTFMethods inherited from class java.io.OutputStream
nullOutputStreamMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.io.DataOutput
writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTFMethods inherited from interface java.io.ObjectOutput
close, flush, write, write, write, writeObject
-
Field Details
-
writersByClass
-
out
-
terminalTupleMap
-
-
Constructor Details
-
ProtobufMarshallerWriteContext
public ProtobufMarshallerWriteContext(OutputStream stream, org.drools.kiesession.rulebase.InternalKnowledgeBase kBase, InternalWorkingMemory wm, Map<Integer, BaseNode> sinks, org.kie.api.marshalling.ObjectMarshallingStrategyStore resolverStrategyFactory, org.kie.api.runtime.Environment env) throws IOException- Throws:
IOException
-
ProtobufMarshallerWriteContext
public ProtobufMarshallerWriteContext(OutputStream stream, org.drools.kiesession.rulebase.InternalKnowledgeBase kBase, InternalWorkingMemory wm, Map<Integer, BaseNode> sinks, org.kie.api.marshalling.ObjectMarshallingStrategyStore resolverStrategyFactory, boolean marshalProcessInstances, boolean marshalWorkItems, org.kie.api.runtime.Environment env) throws IOException- Throws:
IOException
-
-
Method Details
-
getMarshallingStrategy
protected org.kie.api.marshalling.ObjectMarshallingStrategy[] getMarshallingStrategy() -
getStrategyIndex
- Specified by:
getStrategyIndexin interfaceMarshallerWriteContext
-
getKnowledgeBase
public org.drools.kiesession.rulebase.InternalKnowledgeBase getKnowledgeBase()- Specified by:
getKnowledgeBasein interfaceMarshallerWriteContext
-
getObjectMarshallingStrategyStore
public org.kie.api.marshalling.ObjectMarshallingStrategyStore getObjectMarshallingStrategyStore()- Specified by:
getObjectMarshallingStrategyStorein interfaceMarshallerWriteContext
-
getParameterObject
- Specified by:
getParameterObjectin interfaceMarshallerWriteContext
-
setParameterObject
- Specified by:
setParameterObjectin interfaceMarshallerWriteContext
-
getWorkingMemory
- Specified by:
getWorkingMemoryin interfaceMarshallerWriteContext
-
getStrategyContext
public Map<org.kie.api.marshalling.ObjectMarshallingStrategy,org.kie.api.marshalling.ObjectMarshallingStrategy.Context> getStrategyContext()- Specified by:
getStrategyContextin interfaceMarshallerWriteContext
-
getUsedStrategies
- Specified by:
getUsedStrategiesin interfaceMarshallerWriteContext
-
getSinks
- Specified by:
getSinksin interfaceMarshallerWriteContext
-
isMarshalProcessInstances
public boolean isMarshalProcessInstances()- Specified by:
isMarshalProcessInstancesin interfaceMarshallerWriteContext
-
isMarshalWorkItems
public boolean isMarshalWorkItems()- Specified by:
isMarshalWorkItemsin interfaceMarshallerWriteContext
-
getEnvironment
public org.kie.api.runtime.Environment getEnvironment()- Specified by:
getEnvironmentin interfaceMarshallerWriteContext
-
getClockTime
public long getClockTime()- Specified by:
getClockTimein interfaceMarshallerWriteContext
-
setClockTime
public void setClockTime(long clockTime) - Specified by:
setClockTimein interfaceMarshallerWriteContext
-
getWriterForClass
- Specified by:
getWriterForClassin interfaceMarshallerWriteContext
-
setWriterForClass
- Specified by:
setWriterForClassin interfaceMarshallerWriteContext
-