Class PersisterHelper

    • Constructor Detail

      • PersisterHelper

        public PersisterHelper()
    • Method Detail

      • readWorkingMemoryAction

        public static org.drools.core.common.WorkingMemoryAction readWorkingMemoryAction​(org.drools.core.marshalling.MarshallerReaderContext context)
                                                                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • deserializeWorkingMemoryAction

        public static org.drools.core.common.WorkingMemoryAction deserializeWorkingMemoryAction​(org.drools.core.marshalling.MarshallerReaderContext context,
                                                                                                ProtobufMessages.ActionQueue.Action _action)
                                                                                         throws java.io.IOException
        Throws:
        java.io.IOException
      • createTupleKey

        public static org.drools.core.marshalling.TupleKey createTupleKey​(ProtobufMessages.Tuple _tuple)
      • createActivation

        public static ProtobufMessages.Activation createActivation​(java.lang.String packageName,
                                                                   java.lang.String ruleName,
                                                                   org.drools.core.reteoo.Tuple tuple)
      • writeToStreamWithHeader

        public static void writeToStreamWithHeader​(org.drools.core.marshalling.MarshallerWriteContext context,
                                                   com.google.protobuf.Message payload)
                                            throws java.io.IOException
        Throws:
        java.io.IOException
      • readFromStreamWithHeaderPreloaded

        public static ProtobufMessages.Header readFromStreamWithHeaderPreloaded​(org.drools.core.marshalling.MarshallerReaderContext context,
                                                                                com.google.protobuf.ExtensionRegistry registry)
                                                                         throws java.io.IOException,
                                                                                java.lang.ClassNotFoundException
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException
      • readRuntimeDefinedClasses

        public static void readRuntimeDefinedClasses​(ProtobufMessages.Header _header,
                                                     org.drools.wiring.api.classloader.ProjectClassLoader pcl)
                                              throws java.io.IOException,
                                                     java.lang.ClassNotFoundException
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException
      • buildRegistry

        public static com.google.protobuf.ExtensionRegistry buildRegistry​(org.drools.core.marshalling.MarshallerReaderContext context,
                                                                          ProcessMarshaller processMarshaller)