public class PersisterHelper extends Object
Constructor and Description |
---|
PersisterHelper() |
public static WorkingMemoryAction readWorkingMemoryAction(MarshallerReaderContext context) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
public static WorkingMemoryAction deserializeWorkingMemoryAction(MarshallerReaderContext context, ProtobufMessages.ActionQueue.Action _action) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
public void write(MarshallerWriteContext context) throws IOException
IOException
public static ProtobufInputMarshaller.ActivationKey createActivationKey(String pkgName, String ruleName, ProtobufMessages.Tuple _tuple)
public static ProtobufInputMarshaller.ActivationKey createActivationKey(String pkgName, String ruleName, Tuple leftTuple)
public static ProtobufInputMarshaller.ActivationKey createActivationKey(String pkgName, String ruleName, Object[] tuple)
public static ProtobufMessages.Tuple createTuple(Tuple leftTuple)
public static long[] createTupleArray(ProtobufMessages.Tuple _tuple)
public static long[] createTupleArray(Tuple leftTuple)
public static ProtobufInputMarshaller.TupleKey createTupleKey(ProtobufMessages.Tuple _tuple)
public static ProtobufInputMarshaller.TupleKey createTupleKey(Tuple leftTuple)
public static ProtobufMessages.Activation createActivation(String packageName, String ruleName, Tuple tuple)
public static void writeToStreamWithHeader(MarshallerWriteContext context, com.google.protobuf.Message payload) throws IOException
IOException
public static void writeRuntimeDefinedClasses(MarshallerWriteContext context, ProtobufMessages.Header.Builder _header)
public static ProtobufMessages.Header readFromStreamWithHeaderPreloaded(MarshallerReaderContext context, com.google.protobuf.ExtensionRegistry registry) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
public static void readRuntimeDefinedClasses(ProtobufMessages.Header _header, org.drools.reflective.classloader.ProjectClassLoader pcl) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
public static com.google.protobuf.ExtensionRegistry buildRegistry(MarshallerReaderContext context, ProcessMarshaller processMarshaller)
public static final byte[] intToByteArray(int value)
public static final int byteArrayToInt(byte[] b)
public static final byte[] longToByteArray(long value)
public static final long byteArrayToLong(byte[] b)
public static boolean hasNodeMemory(TerminalNode terminalNode)
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.