Class PersisterHelper
- java.lang.Object
-
- org.drools.serialization.protobuf.marshalling.MarshallingHelper
-
- org.drools.serialization.protobuf.PersisterHelper
-
public class PersisterHelper extends MarshallingHelper
-
-
Constructor Summary
Constructors Constructor Description PersisterHelper()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static com.google.protobuf.ExtensionRegistrybuildRegistry(org.drools.core.marshalling.MarshallerReaderContext context, ProcessMarshaller processMarshaller)static ProtobufMessages.ActivationcreateActivation(String packageName, String ruleName, org.drools.core.spi.Tuple tuple)static ActivationKeycreateActivationKey(String pkgName, String ruleName, ProtobufMessages.Tuple _tuple)static ProtobufMessages.TuplecreateTuple(org.drools.core.spi.Tuple leftTuple)static long[]createTupleArray(ProtobufMessages.Tuple _tuple)static org.drools.core.marshalling.TupleKeycreateTupleKey(ProtobufMessages.Tuple _tuple)static org.drools.core.common.WorkingMemoryActiondeserializeWorkingMemoryAction(org.drools.core.marshalling.MarshallerReaderContext context, ProtobufMessages.ActionQueue.Action _action)static ProtobufMessages.HeaderreadFromStreamWithHeaderPreloaded(org.drools.core.marshalling.MarshallerReaderContext context, com.google.protobuf.ExtensionRegistry registry)static voidreadRuntimeDefinedClasses(ProtobufMessages.Header _header, org.drools.wiring.api.classloader.ProjectClassLoader pcl)static org.drools.core.common.WorkingMemoryActionreadWorkingMemoryAction(org.drools.core.marshalling.MarshallerReaderContext context)voidwrite(ProtobufMarshallerWriteContext context)static voidwriteToStreamWithHeader(org.drools.core.marshalling.MarshallerWriteContext context, com.google.protobuf.Message payload)-
Methods inherited from class org.drools.serialization.protobuf.marshalling.MarshallingHelper
createActivationKey, createActivationKey, hasNodeMemory, toArrayOfObject
-
-
-
-
Method Detail
-
readWorkingMemoryAction
public static org.drools.core.common.WorkingMemoryAction readWorkingMemoryAction(org.drools.core.marshalling.MarshallerReaderContext context) throws IOException- Throws:
IOException
-
deserializeWorkingMemoryAction
public static org.drools.core.common.WorkingMemoryAction deserializeWorkingMemoryAction(org.drools.core.marshalling.MarshallerReaderContext context, ProtobufMessages.ActionQueue.Action _action) throws IOException- Throws:
IOException
-
write
public void write(ProtobufMarshallerWriteContext context) throws IOException
- Throws:
IOException
-
createActivationKey
public static ActivationKey createActivationKey(String pkgName, String ruleName, ProtobufMessages.Tuple _tuple)
-
createTuple
public static ProtobufMessages.Tuple createTuple(org.drools.core.spi.Tuple leftTuple)
-
createTupleArray
public static long[] createTupleArray(ProtobufMessages.Tuple _tuple)
-
createTupleKey
public static org.drools.core.marshalling.TupleKey createTupleKey(ProtobufMessages.Tuple _tuple)
-
createActivation
public static ProtobufMessages.Activation createActivation(String packageName, String ruleName, org.drools.core.spi.Tuple tuple)
-
writeToStreamWithHeader
public static void writeToStreamWithHeader(org.drools.core.marshalling.MarshallerWriteContext context, com.google.protobuf.Message payload) throws IOException- Throws:
IOException
-
readFromStreamWithHeaderPreloaded
public static ProtobufMessages.Header readFromStreamWithHeaderPreloaded(org.drools.core.marshalling.MarshallerReaderContext context, com.google.protobuf.ExtensionRegistry registry) throws IOException, ClassNotFoundException
- Throws:
IOExceptionClassNotFoundException
-
readRuntimeDefinedClasses
public static void readRuntimeDefinedClasses(ProtobufMessages.Header _header, org.drools.wiring.api.classloader.ProjectClassLoader pcl) throws IOException, ClassNotFoundException
- Throws:
IOExceptionClassNotFoundException
-
buildRegistry
public static com.google.protobuf.ExtensionRegistry buildRegistry(org.drools.core.marshalling.MarshallerReaderContext context, ProcessMarshaller processMarshaller)
-
-