Class ProtobufMarshallerWriteContext

  • All Implemented Interfaces:
    java.io.Closeable, java.io.DataOutput, java.io.Flushable, java.io.ObjectOutput, java.io.ObjectStreamConstants, java.lang.AutoCloseable, org.drools.core.marshalling.MarshallerWriteContext
    Direct Known Subclasses:
    ProtobufProcessMarshallerWriteContext

    public class ProtobufMarshallerWriteContext
    extends java.io.ObjectOutputStream
    implements org.drools.core.marshalling.MarshallerWriteContext
    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.io.ObjectOutputStream

        java.io.ObjectOutputStream.PutField
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.io.PrintStream out  
      java.util.Map<org.drools.core.reteoo.LeftTuple,​java.lang.Integer> terminalTupleMap  
      java.util.Map<java.lang.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​(java.io.OutputStream stream, org.drools.kiesession.rulebase.InternalKnowledgeBase kBase, org.drools.core.common.InternalWorkingMemory wm, java.util.Map<java.lang.Integer,​org.drools.core.common.BaseNode> sinks, org.kie.api.marshalling.ObjectMarshallingStrategyStore resolverStrategyFactory, boolean marshalProcessInstances, boolean marshalWorkItems, org.kie.api.runtime.Environment env)  
      ProtobufMarshallerWriteContext​(java.io.OutputStream stream, org.drools.kiesession.rulebase.InternalKnowledgeBase kBase, org.drools.core.common.InternalWorkingMemory wm, java.util.Map<java.lang.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
      long getClockTime()  
      org.kie.api.runtime.Environment getEnvironment()  
      org.drools.kiesession.rulebase.InternalKnowledgeBase getKnowledgeBase()  
      protected org.kie.api.marshalling.ObjectMarshallingStrategy[] getMarshallingStrategy()  
      org.kie.api.marshalling.ObjectMarshallingStrategyStore getObjectMarshallingStrategyStore()  
      java.lang.Object getParameterObject()  
      java.util.Map<java.lang.Integer,​org.drools.core.common.BaseNode> getSinks()  
      java.util.Map<org.kie.api.marshalling.ObjectMarshallingStrategy,​org.kie.api.marshalling.ObjectMarshallingStrategy.Context> getStrategyContext()  
      java.lang.Integer getStrategyIndex​(org.kie.api.marshalling.ObjectMarshallingStrategy strategy)  
      java.util.Map<org.kie.api.marshalling.ObjectMarshallingStrategy,​java.lang.Integer> getUsedStrategies()  
      org.drools.core.common.InternalWorkingMemory getWorkingMemory()  
      java.lang.Object getWriterForClass​(java.lang.Class<?> c)  
      boolean isMarshalProcessInstances()  
      boolean isMarshalWorkItems()  
      void setClockTime​(long clockTime)  
      void setParameterObject​(java.lang.Object parameterObject)  
      void setWriterForClass​(java.lang.Class<?> c, java.lang.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

      • out

        public final java.io.PrintStream out
      • terminalTupleMap

        public final java.util.Map<org.drools.core.reteoo.LeftTuple,​java.lang.Integer> terminalTupleMap
    • Constructor Detail

      • ProtobufMarshallerWriteContext

        public ProtobufMarshallerWriteContext​(java.io.OutputStream stream,
                                              org.drools.kiesession.rulebase.InternalKnowledgeBase kBase,
                                              org.drools.core.common.InternalWorkingMemory wm,
                                              java.util.Map<java.lang.Integer,​org.drools.core.common.BaseNode> sinks,
                                              org.kie.api.marshalling.ObjectMarshallingStrategyStore resolverStrategyFactory,
                                              org.kie.api.runtime.Environment env)
                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • ProtobufMarshallerWriteContext

        public ProtobufMarshallerWriteContext​(java.io.OutputStream stream,
                                              org.drools.kiesession.rulebase.InternalKnowledgeBase kBase,
                                              org.drools.core.common.InternalWorkingMemory wm,
                                              java.util.Map<java.lang.Integer,​org.drools.core.common.BaseNode> sinks,
                                              org.kie.api.marshalling.ObjectMarshallingStrategyStore resolverStrategyFactory,
                                              boolean marshalProcessInstances,
                                              boolean marshalWorkItems,
                                              org.kie.api.runtime.Environment env)
                                       throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • getMarshallingStrategy

        protected org.kie.api.marshalling.ObjectMarshallingStrategy[] getMarshallingStrategy()
      • getStrategyIndex

        public java.lang.Integer getStrategyIndex​(org.kie.api.marshalling.ObjectMarshallingStrategy strategy)
        Specified by:
        getStrategyIndex in interface org.drools.core.marshalling.MarshallerWriteContext
      • getKnowledgeBase

        public org.drools.kiesession.rulebase.InternalKnowledgeBase getKnowledgeBase()
        Specified by:
        getKnowledgeBase in interface org.drools.core.marshalling.MarshallerWriteContext
      • getObjectMarshallingStrategyStore

        public org.kie.api.marshalling.ObjectMarshallingStrategyStore getObjectMarshallingStrategyStore()
        Specified by:
        getObjectMarshallingStrategyStore in interface org.drools.core.marshalling.MarshallerWriteContext
      • getParameterObject

        public java.lang.Object getParameterObject()
        Specified by:
        getParameterObject in interface org.drools.core.marshalling.MarshallerWriteContext
      • setParameterObject

        public void setParameterObject​(java.lang.Object parameterObject)
        Specified by:
        setParameterObject in interface org.drools.core.marshalling.MarshallerWriteContext
      • getWorkingMemory

        public org.drools.core.common.InternalWorkingMemory getWorkingMemory()
        Specified by:
        getWorkingMemory in interface org.drools.core.marshalling.MarshallerWriteContext
      • getStrategyContext

        public java.util.Map<org.kie.api.marshalling.ObjectMarshallingStrategy,​org.kie.api.marshalling.ObjectMarshallingStrategy.Context> getStrategyContext()
        Specified by:
        getStrategyContext in interface org.drools.core.marshalling.MarshallerWriteContext
      • getUsedStrategies

        public java.util.Map<org.kie.api.marshalling.ObjectMarshallingStrategy,​java.lang.Integer> getUsedStrategies()
        Specified by:
        getUsedStrategies in interface org.drools.core.marshalling.MarshallerWriteContext
      • getSinks

        public java.util.Map<java.lang.Integer,​org.drools.core.common.BaseNode> getSinks()
        Specified by:
        getSinks in interface org.drools.core.marshalling.MarshallerWriteContext
      • isMarshalProcessInstances

        public boolean isMarshalProcessInstances()
        Specified by:
        isMarshalProcessInstances in interface org.drools.core.marshalling.MarshallerWriteContext
      • isMarshalWorkItems

        public boolean isMarshalWorkItems()
        Specified by:
        isMarshalWorkItems in interface org.drools.core.marshalling.MarshallerWriteContext
      • getEnvironment

        public org.kie.api.runtime.Environment getEnvironment()
        Specified by:
        getEnvironment in interface org.drools.core.marshalling.MarshallerWriteContext
      • getClockTime

        public long getClockTime()
        Specified by:
        getClockTime in interface org.drools.core.marshalling.MarshallerWriteContext
      • setClockTime

        public void setClockTime​(long clockTime)
        Specified by:
        setClockTime in interface org.drools.core.marshalling.MarshallerWriteContext
      • getWriterForClass

        public java.lang.Object getWriterForClass​(java.lang.Class<?> c)
        Specified by:
        getWriterForClass in interface org.drools.core.marshalling.MarshallerWriteContext
      • setWriterForClass

        public void setWriterForClass​(java.lang.Class<?> c,
                                      java.lang.Object writer)
        Specified by:
        setWriterForClass in interface org.drools.core.marshalling.MarshallerWriteContext