org.drools.marshalling.impl
Class MarshallerWriteContext

java.lang.Object
  extended by java.io.OutputStream
      extended by java.io.ObjectOutputStream
          extended by org.drools.marshalling.impl.MarshallerWriteContext
All Implemented Interfaces:
Closeable, DataOutput, Flushable, ObjectOutput, ObjectStreamConstants

public class MarshallerWriteContext
extends ObjectOutputStream


Nested Class Summary
 
Nested classes/interfaces inherited from class java.io.ObjectOutputStream
ObjectOutputStream.PutField
 
Field Summary
 long clockTime
           
 org.drools.runtime.Environment env
           
 boolean marshalProcessInstances
           
 boolean marshalWorkItems
           
 org.drools.marshalling.ObjectMarshallingStrategyStore objectMarshallingStrategyStore
           
 PrintStream out
           
 Object parameterObject
           
 InternalRuleBase ruleBase
           
 Map<Integer,BaseNode> sinks
           
 Map<org.drools.marshalling.ObjectMarshallingStrategy,org.drools.marshalling.ObjectMarshallingStrategy.Context> strategyContext
           
 MarshallerWriteContext stream
           
 Map<LeftTuple,Integer> terminalTupleMap
           
 Map<org.drools.marshalling.ObjectMarshallingStrategy,Integer> usedStrategies
           
 InternalWorkingMemory wm
           
 Map<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, 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
MarshallerWriteContext(OutputStream stream, InternalRuleBase ruleBase, InternalWorkingMemory wm, Map<Integer,BaseNode> sinks, org.drools.marshalling.ObjectMarshallingStrategyStore resolverStrategyFactory, boolean marshalProcessInstances, boolean marshalWorkItems, org.drools.runtime.Environment env)
           
MarshallerWriteContext(OutputStream stream, InternalRuleBase ruleBase, InternalWorkingMemory wm, Map<Integer,BaseNode> sinks, org.drools.marshalling.ObjectMarshallingStrategyStore resolverStrategyFactory, org.drools.runtime.Environment env)
           
 
Method Summary
 Integer getStrategyIndex(org.drools.marshalling.ObjectMarshallingStrategy strategy)
           
 
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.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

stream

public final MarshallerWriteContext stream

ruleBase

public final InternalRuleBase ruleBase

wm

public final InternalWorkingMemory wm

sinks

public final Map<Integer,BaseNode> sinks

clockTime

public long clockTime

writersByClass

public final Map<Class<?>,TimersOutputMarshaller> writersByClass

out

public final PrintStream out

objectMarshallingStrategyStore

public final org.drools.marshalling.ObjectMarshallingStrategyStore objectMarshallingStrategyStore

usedStrategies

public final Map<org.drools.marshalling.ObjectMarshallingStrategy,Integer> usedStrategies

strategyContext

public final Map<org.drools.marshalling.ObjectMarshallingStrategy,org.drools.marshalling.ObjectMarshallingStrategy.Context> strategyContext

terminalTupleMap

public final Map<LeftTuple,Integer> terminalTupleMap

marshalProcessInstances

public final boolean marshalProcessInstances

marshalWorkItems

public final boolean marshalWorkItems

env

public final org.drools.runtime.Environment env

parameterObject

public Object parameterObject
Constructor Detail

MarshallerWriteContext

public MarshallerWriteContext(OutputStream stream,
                              InternalRuleBase ruleBase,
                              InternalWorkingMemory wm,
                              Map<Integer,BaseNode> sinks,
                              org.drools.marshalling.ObjectMarshallingStrategyStore resolverStrategyFactory,
                              org.drools.runtime.Environment env)
                       throws IOException
Throws:
IOException

MarshallerWriteContext

public MarshallerWriteContext(OutputStream stream,
                              InternalRuleBase ruleBase,
                              InternalWorkingMemory wm,
                              Map<Integer,BaseNode> sinks,
                              org.drools.marshalling.ObjectMarshallingStrategyStore resolverStrategyFactory,
                              boolean marshalProcessInstances,
                              boolean marshalWorkItems,
                              org.drools.runtime.Environment env)
                       throws IOException
Throws:
IOException
Method Detail

getStrategyIndex

public Integer getStrategyIndex(org.drools.marshalling.ObjectMarshallingStrategy strategy)


Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.