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,org.drools.core.marshalling.impl.MarshallerWriteContext
- Direct Known Subclasses:
ProtobufProcessMarshallerWriteContext
public class ProtobufMarshallerWriteContext extends ObjectOutputStream implements org.drools.core.marshalling.impl.MarshallerWriteContext
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.io.ObjectOutputStream
ObjectOutputStream.PutField
-
-
Field Summary
Fields Modifier and Type Field Description PrintStreamoutMap<org.drools.core.reteoo.LeftTuple,Integer>terminalTupleMapMap<Class<?>,TimersOutputMarshaller>writersByClass-
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 ProtobufMarshallerWriteContext(OutputStream stream, org.drools.core.impl.InternalKnowledgeBase kBase, org.drools.core.common.InternalWorkingMemory wm, Map<Integer,org.drools.core.common.BaseNode> sinks, org.kie.api.marshalling.ObjectMarshallingStrategyStore resolverStrategyFactory, boolean marshalProcessInstances, boolean marshalWorkItems, org.kie.api.runtime.Environment env)ProtobufMarshallerWriteContext(OutputStream stream, org.drools.core.impl.InternalKnowledgeBase kBase, org.drools.core.common.InternalWorkingMemory wm, Map<Integer,org.drools.core.common.BaseNode> sinks, org.kie.api.marshalling.ObjectMarshallingStrategyStore resolverStrategyFactory, org.kie.api.runtime.Environment env)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetClockTime()org.kie.api.runtime.EnvironmentgetEnvironment()org.drools.core.impl.InternalKnowledgeBasegetKnowledgeBase()protected org.kie.api.marshalling.ObjectMarshallingStrategy[]getMarshallingStrategy()org.kie.api.marshalling.ObjectMarshallingStrategyStoregetObjectMarshallingStrategyStore()ObjectgetParameterObject()Map<Integer,org.drools.core.common.BaseNode>getSinks()Map<org.kie.api.marshalling.ObjectMarshallingStrategy,org.kie.api.marshalling.ObjectMarshallingStrategy.Context>getStrategyContext()IntegergetStrategyIndex(org.kie.api.marshalling.ObjectMarshallingStrategy strategy)Map<org.kie.api.marshalling.ObjectMarshallingStrategy,Integer>getUsedStrategies()org.drools.core.common.InternalWorkingMemorygetWorkingMemory()ObjectgetWriterForClass(Class<?> c)booleanisMarshalProcessInstances()booleanisMarshalWorkItems()voidsetClockTime(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, writeUTF
-
Methods inherited from class java.io.OutputStream
nullOutputStream
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.io.DataOutput
writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
-
Methods inherited from interface java.io.ObjectOutput
close, flush, write, write, write, writeObject
-
-
-
-
Field Detail
-
writersByClass
public final Map<Class<?>,TimersOutputMarshaller> writersByClass
-
out
public final PrintStream out
-
-
Constructor Detail
-
ProtobufMarshallerWriteContext
public ProtobufMarshallerWriteContext(OutputStream stream, org.drools.core.impl.InternalKnowledgeBase kBase, org.drools.core.common.InternalWorkingMemory wm, Map<Integer,org.drools.core.common.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.core.impl.InternalKnowledgeBase kBase, org.drools.core.common.InternalWorkingMemory wm, Map<Integer,org.drools.core.common.BaseNode> sinks, org.kie.api.marshalling.ObjectMarshallingStrategyStore resolverStrategyFactory, boolean marshalProcessInstances, boolean marshalWorkItems, org.kie.api.runtime.Environment env) throws IOException
- Throws:
IOException
-
-
Method Detail
-
getMarshallingStrategy
protected org.kie.api.marshalling.ObjectMarshallingStrategy[] getMarshallingStrategy()
-
getStrategyIndex
public Integer getStrategyIndex(org.kie.api.marshalling.ObjectMarshallingStrategy strategy)
- Specified by:
getStrategyIndexin interfaceorg.drools.core.marshalling.impl.MarshallerWriteContext
-
getKnowledgeBase
public org.drools.core.impl.InternalKnowledgeBase getKnowledgeBase()
- Specified by:
getKnowledgeBasein interfaceorg.drools.core.marshalling.impl.MarshallerWriteContext
-
getObjectMarshallingStrategyStore
public org.kie.api.marshalling.ObjectMarshallingStrategyStore getObjectMarshallingStrategyStore()
- Specified by:
getObjectMarshallingStrategyStorein interfaceorg.drools.core.marshalling.impl.MarshallerWriteContext
-
getParameterObject
public Object getParameterObject()
- Specified by:
getParameterObjectin interfaceorg.drools.core.marshalling.impl.MarshallerWriteContext
-
setParameterObject
public void setParameterObject(Object parameterObject)
- Specified by:
setParameterObjectin interfaceorg.drools.core.marshalling.impl.MarshallerWriteContext
-
getWorkingMemory
public org.drools.core.common.InternalWorkingMemory getWorkingMemory()
- Specified by:
getWorkingMemoryin interfaceorg.drools.core.marshalling.impl.MarshallerWriteContext
-
getStrategyContext
public Map<org.kie.api.marshalling.ObjectMarshallingStrategy,org.kie.api.marshalling.ObjectMarshallingStrategy.Context> getStrategyContext()
- Specified by:
getStrategyContextin interfaceorg.drools.core.marshalling.impl.MarshallerWriteContext
-
getUsedStrategies
public Map<org.kie.api.marshalling.ObjectMarshallingStrategy,Integer> getUsedStrategies()
- Specified by:
getUsedStrategiesin interfaceorg.drools.core.marshalling.impl.MarshallerWriteContext
-
getSinks
public Map<Integer,org.drools.core.common.BaseNode> getSinks()
- Specified by:
getSinksin interfaceorg.drools.core.marshalling.impl.MarshallerWriteContext
-
isMarshalProcessInstances
public boolean isMarshalProcessInstances()
- Specified by:
isMarshalProcessInstancesin interfaceorg.drools.core.marshalling.impl.MarshallerWriteContext
-
isMarshalWorkItems
public boolean isMarshalWorkItems()
- Specified by:
isMarshalWorkItemsin interfaceorg.drools.core.marshalling.impl.MarshallerWriteContext
-
getEnvironment
public org.kie.api.runtime.Environment getEnvironment()
- Specified by:
getEnvironmentin interfaceorg.drools.core.marshalling.impl.MarshallerWriteContext
-
getClockTime
public long getClockTime()
- Specified by:
getClockTimein interfaceorg.drools.core.marshalling.impl.MarshallerWriteContext
-
setClockTime
public void setClockTime(long clockTime)
- Specified by:
setClockTimein interfaceorg.drools.core.marshalling.impl.MarshallerWriteContext
-
getWriterForClass
public Object getWriterForClass(Class<?> c)
- Specified by:
getWriterForClassin interfaceorg.drools.core.marshalling.impl.MarshallerWriteContext
-
-