Class PersisterHelper
java.lang.Object
org.drools.serialization.protobuf.marshalling.MarshallingHelper
org.drools.serialization.protobuf.PersisterHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic com.google.protobuf.ExtensionRegistrybuildRegistry(MarshallerReaderContext context, ProcessMarshaller processMarshaller) static ProtobufMessages.ActivationcreateActivation(String packageName, String ruleName, Tuple tuple) static ActivationKeycreateActivationKey(String pkgName, String ruleName, ProtobufMessages.Tuple _tuple) static ProtobufMessages.TuplecreateTuple(Tuple leftTuple) static long[]static TupleKeycreateTupleKey(ProtobufMessages.Tuple _tuple) static WorkingMemoryActiondeserializeWorkingMemoryAction(MarshallerReaderContext context, ProtobufMessages.ActionQueue.Action _action) static ProtobufMessages.HeaderreadFromStreamWithHeaderPreloaded(MarshallerReaderContext context, com.google.protobuf.ExtensionRegistry registry) static voidreadRuntimeDefinedClasses(ProtobufMessages.Header _header, org.drools.wiring.api.classloader.ProjectClassLoader pcl) static WorkingMemoryActionvoidwrite(ProtobufMarshallerWriteContext context) static voidwriteToStreamWithHeader(MarshallerWriteContext context, com.google.protobuf.Message payload) Methods inherited from class org.drools.serialization.protobuf.marshalling.MarshallingHelper
createActivationKey, createActivationKey, hasNodeMemory, toArrayOfObject
-
Constructor Details
-
PersisterHelper
public PersisterHelper()
-
-
Method Details
-
readWorkingMemoryAction
public static WorkingMemoryAction readWorkingMemoryAction(MarshallerReaderContext context) throws IOException - Throws:
IOException
-
deserializeWorkingMemoryAction
public static WorkingMemoryAction deserializeWorkingMemoryAction(MarshallerReaderContext context, ProtobufMessages.ActionQueue.Action _action) throws IOException - Throws:
IOException
-
write
- Throws:
IOException
-
createActivationKey
public static ActivationKey createActivationKey(String pkgName, String ruleName, ProtobufMessages.Tuple _tuple) -
createTuple
-
createTupleArray
-
createTupleKey
-
createActivation
public static ProtobufMessages.Activation createActivation(String packageName, String ruleName, Tuple tuple) -
writeToStreamWithHeader
public static void writeToStreamWithHeader(MarshallerWriteContext context, com.google.protobuf.Message payload) throws IOException - Throws:
IOException
-
readFromStreamWithHeaderPreloaded
public static ProtobufMessages.Header readFromStreamWithHeaderPreloaded(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(MarshallerReaderContext context, ProcessMarshaller processMarshaller)
-