org.drools.marshalling.impl
Class OutputMarshaller

java.lang.Object
  extended by org.drools.marshalling.impl.OutputMarshaller

public class OutputMarshaller
extends Object


Nested Class Summary
static class OutputMarshaller.AgendaGroupSorter
           
static class OutputMarshaller.EqualityKeySorter
           
static class OutputMarshaller.HandleSorter
           
static class OutputMarshaller.RuleFlowGroupSorter
           
static class OutputMarshaller.TupleSorter
           
 
Constructor Summary
OutputMarshaller()
           
 
Method Summary
static InternalFactHandle[] orderFacts(List<InternalFactHandle> handlesList)
           
static InternalFactHandle[] orderFacts(ObjectStore objectStore)
           
static void writeActionQueue(MarshallerWriteContext context)
           
static void writeActivation(MarshallerWriteContext context, LeftTuple leftTuple, AgendaItem agendaItem, RuleTerminalNode ruleTerminalNode)
           
static void writeActivations(MarshallerWriteContext context)
           
static void writeAgenda(MarshallerWriteContext context)
           
static void writeBehaviours(BetaNode betaNode, MarshallerWriteContext outCtx)
           
static void writeFactHandles(MarshallerWriteContext context, ObjectStore objectStore)
           
static void writeInitialFactHandleLeftTuples(MarshallerWriteContext context)
           
static void writeInitialFactHandleRightTuples(MarshallerWriteContext context)
           
static void writeLeftTuple(LeftTuple leftTuple, MarshallerWriteContext context, boolean recurse)
           
static void writeLeftTuples(MarshallerWriteContext context, InternalFactHandle[] factHandles)
           
static void writePropagationContext(MarshallerWriteContext context, PropagationContext pc)
           
static void writePropagationContexts(MarshallerWriteContext context)
           
static void writeRightTuple(RightTuple rightTuple, MarshallerWriteContext context)
           
static void writeRightTuples(InternalFactHandle handle, MarshallerWriteContext context)
           
static void writeSession(MarshallerWriteContext context)
           
static void writeSlidingLengthWindowBehaviour(SlidingLengthWindow stw, SlidingLengthWindow.SlidingLengthWindowContext slCtx, MarshallerWriteContext outputCtx)
           
static void writeSlidingTimeWindowBehaviour(SlidingTimeWindow stw, SlidingTimeWindow.SlidingTimeWindowContext slCtx, MarshallerWriteContext outputCtx)
           
static void writeTimers(Collection<TimerJobInstance> timers, MarshallerWriteContext outCtx)
           
static void writeTrigger(Trigger trigger, MarshallerWriteContext outCtx)
           
static void writeTruthMaintenanceSystem(MarshallerWriteContext context)
           
static void writeWorkItem(MarshallerWriteContext context, WorkItem workItem)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OutputMarshaller

public OutputMarshaller()
Method Detail

writeSession

public static void writeSession(MarshallerWriteContext context)
                         throws IOException
Throws:
IOException

writeAgenda

public static void writeAgenda(MarshallerWriteContext context)
                        throws IOException
Throws:
IOException

writeActionQueue

public static void writeActionQueue(MarshallerWriteContext context)
                             throws IOException
Throws:
IOException

writeTruthMaintenanceSystem

public static void writeTruthMaintenanceSystem(MarshallerWriteContext context)
                                        throws IOException
Throws:
IOException

writeFactHandles

public static void writeFactHandles(MarshallerWriteContext context,
                                    ObjectStore objectStore)
                             throws IOException
Throws:
IOException

orderFacts

public static InternalFactHandle[] orderFacts(ObjectStore objectStore)

orderFacts

public static InternalFactHandle[] orderFacts(List<InternalFactHandle> handlesList)

writeInitialFactHandleRightTuples

public static void writeInitialFactHandleRightTuples(MarshallerWriteContext context)
                                              throws IOException
Throws:
IOException

writeInitialFactHandleLeftTuples

public static void writeInitialFactHandleLeftTuples(MarshallerWriteContext context)
                                             throws IOException
Throws:
IOException

writeRightTuples

public static void writeRightTuples(InternalFactHandle handle,
                                    MarshallerWriteContext context)
                             throws IOException
Throws:
IOException

writeRightTuple

public static void writeRightTuple(RightTuple rightTuple,
                                   MarshallerWriteContext context)
                            throws IOException
Throws:
IOException

writeLeftTuples

public static void writeLeftTuples(MarshallerWriteContext context,
                                   InternalFactHandle[] factHandles)
                            throws IOException
Throws:
IOException

writeLeftTuple

public static void writeLeftTuple(LeftTuple leftTuple,
                                  MarshallerWriteContext context,
                                  boolean recurse)
                           throws IOException
Throws:
IOException

writeBehaviours

public static void writeBehaviours(BetaNode betaNode,
                                   MarshallerWriteContext outCtx)
                            throws IOException
Throws:
IOException

writeSlidingTimeWindowBehaviour

public static void writeSlidingTimeWindowBehaviour(SlidingTimeWindow stw,
                                                   SlidingTimeWindow.SlidingTimeWindowContext slCtx,
                                                   MarshallerWriteContext outputCtx)
                                            throws IOException
Throws:
IOException

writeSlidingLengthWindowBehaviour

public static void writeSlidingLengthWindowBehaviour(SlidingLengthWindow stw,
                                                     SlidingLengthWindow.SlidingLengthWindowContext slCtx,
                                                     MarshallerWriteContext outputCtx)
                                              throws IOException
Throws:
IOException

writeActivations

public static void writeActivations(MarshallerWriteContext context)
                             throws IOException
Throws:
IOException

writeActivation

public static void writeActivation(MarshallerWriteContext context,
                                   LeftTuple leftTuple,
                                   AgendaItem agendaItem,
                                   RuleTerminalNode ruleTerminalNode)
                            throws IOException
Throws:
IOException

writePropagationContexts

public static void writePropagationContexts(MarshallerWriteContext context)
                                     throws IOException
Throws:
IOException

writePropagationContext

public static void writePropagationContext(MarshallerWriteContext context,
                                           PropagationContext pc)
                                    throws IOException
Throws:
IOException

writeWorkItem

public static void writeWorkItem(MarshallerWriteContext context,
                                 WorkItem workItem)
                          throws IOException
Throws:
IOException

writeTimers

public static void writeTimers(Collection<TimerJobInstance> timers,
                               MarshallerWriteContext outCtx)
                        throws IOException
Throws:
IOException

writeTrigger

public static void writeTrigger(Trigger trigger,
                                MarshallerWriteContext outCtx)
                         throws IOException
Throws:
IOException


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