Drools :: Core 6.0.0.Beta5

org.drools.core.marshalling.impl
Class ProtobufMarshaller

java.lang.Object
  extended by org.drools.core.marshalling.impl.ProtobufMarshaller
All Implemented Interfaces:
org.kie.api.marshalling.Marshaller

public class ProtobufMarshaller
extends Object
implements org.kie.api.marshalling.Marshaller

A Marshaller implementation that uses ProtoBuf as the marshalling framework in order to support backward compatibility with marshalled sessions


Field Summary
static Map<Integer,TimersInputMarshaller> TIMER_READERS
           
 
Constructor Summary
ProtobufMarshaller(org.kie.api.KieBase kbase, org.kie.api.marshalling.MarshallingConfiguration marshallingConfig)
           
 
Method Summary
 org.kie.api.marshalling.MarshallingConfiguration getMarshallingConfiguration()
           
 void marshall(OutputStream stream, org.kie.api.runtime.KieSession ksession)
           
 void marshall(OutputStream stream, org.kie.api.runtime.KieSession ksession, long clockTime)
           
 org.kie.internal.runtime.StatefulKnowledgeSession unmarshall(InputStream stream)
           
 void unmarshall(InputStream stream, org.kie.api.runtime.KieSession ksession)
           
 org.kie.internal.runtime.StatefulKnowledgeSession unmarshall(InputStream stream, org.kie.api.runtime.KieSessionConfiguration config, org.kie.api.runtime.Environment environment)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TIMER_READERS

public static final Map<Integer,TimersInputMarshaller> TIMER_READERS
Constructor Detail

ProtobufMarshaller

public ProtobufMarshaller(org.kie.api.KieBase kbase,
                          org.kie.api.marshalling.MarshallingConfiguration marshallingConfig)
Method Detail

unmarshall

public org.kie.internal.runtime.StatefulKnowledgeSession unmarshall(InputStream stream)
                                                             throws IOException,
                                                                    ClassNotFoundException
Specified by:
unmarshall in interface org.kie.api.marshalling.Marshaller
Throws:
IOException
ClassNotFoundException

unmarshall

public org.kie.internal.runtime.StatefulKnowledgeSession unmarshall(InputStream stream,
                                                                    org.kie.api.runtime.KieSessionConfiguration config,
                                                                    org.kie.api.runtime.Environment environment)
                                                             throws IOException,
                                                                    ClassNotFoundException
Specified by:
unmarshall in interface org.kie.api.marshalling.Marshaller
Throws:
IOException
ClassNotFoundException

unmarshall

public void unmarshall(InputStream stream,
                       org.kie.api.runtime.KieSession ksession)
                throws IOException,
                       ClassNotFoundException
Specified by:
unmarshall in interface org.kie.api.marshalling.Marshaller
Throws:
IOException
ClassNotFoundException

marshall

public void marshall(OutputStream stream,
                     org.kie.api.runtime.KieSession ksession)
              throws IOException
Specified by:
marshall in interface org.kie.api.marshalling.Marshaller
Throws:
IOException

marshall

public void marshall(OutputStream stream,
                     org.kie.api.runtime.KieSession ksession,
                     long clockTime)
              throws IOException
Throws:
IOException

getMarshallingConfiguration

public org.kie.api.marshalling.MarshallingConfiguration getMarshallingConfiguration()
Specified by:
getMarshallingConfiguration in interface org.kie.api.marshalling.Marshaller

Drools :: Core 6.0.0.Beta5

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