org.drools.marshalling.impl
Class ProtobufOutputMarshaller

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

public class ProtobufOutputMarshaller
extends Object

An output marshaller that uses ProtoBuf as the marshalling framework in order to provide backward compatibility with marshalled sessions


Nested Class Summary
static class ProtobufOutputMarshaller.ActivationsSorter
           
static class ProtobufOutputMarshaller.EqualityKeySorter
           
static class ProtobufOutputMarshaller.HandleSorter
           
 
Constructor Summary
ProtobufOutputMarshaller()
           
 
Method Summary
static InternalFactHandle[] orderFacts(List<InternalFactHandle> handlesList)
           
static InternalFactHandle[] orderFacts(ObjectStore objectStore)
           
static void writeActionQueue(MarshallerWriteContext context, ProtobufMessages.RuleData.Builder _session)
           
static ProtobufMessages.Activation writeActivation(MarshallerWriteContext context, AgendaItem agendaItem)
           
static void writeSession(MarshallerWriteContext context)
           
static ProtobufMessages.Trigger writeTrigger(Trigger trigger, MarshallerWriteContext outCtx)
           
static void writeTruthMaintenanceSystem(MarshallerWriteContext context, ProtobufMessages.RuleData.Builder _session)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProtobufOutputMarshaller

public ProtobufOutputMarshaller()
Method Detail

writeSession

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

writeActionQueue

public static void writeActionQueue(MarshallerWriteContext context,
                                    ProtobufMessages.RuleData.Builder _session)
                             throws IOException
Throws:
IOException

writeTruthMaintenanceSystem

public static void writeTruthMaintenanceSystem(MarshallerWriteContext context,
                                               ProtobufMessages.RuleData.Builder _session)
                                        throws IOException
Throws:
IOException

orderFacts

public static InternalFactHandle[] orderFacts(ObjectStore objectStore)

orderFacts

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

writeActivation

public static ProtobufMessages.Activation writeActivation(MarshallerWriteContext context,
                                                          AgendaItem agendaItem)

writeTrigger

public static ProtobufMessages.Trigger writeTrigger(Trigger trigger,
                                                    MarshallerWriteContext outCtx)


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