org.drools.persistence
Class SessionMarshallingHelper
java.lang.Object
org.drools.persistence.SessionMarshallingHelper
public class SessionMarshallingHelper
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SessionMarshallingHelper
public SessionMarshallingHelper(KnowledgeBase kbase,
org.drools.runtime.KnowledgeSessionConfiguration conf,
org.drools.runtime.Environment env)
- Exist Info, so load session from here
- Parameters:
info - ruleBase - conf - marshallingConfiguration -
SessionMarshallingHelper
public SessionMarshallingHelper(org.drools.runtime.StatefulKnowledgeSession ksession,
org.drools.runtime.KnowledgeSessionConfiguration conf)
- new session, don't write now as info will request it on update callback
- Parameters:
info - session - conf - marshallingConfiguration -
getSnapshot
public byte[] getSnapshot()
loadSnapshot
public org.drools.runtime.StatefulKnowledgeSession loadSnapshot(byte[] bytes,
org.drools.runtime.StatefulKnowledgeSession ksession)
getObject
public org.drools.runtime.StatefulKnowledgeSession getObject()
getKbase
public KnowledgeBase getKbase()
getConf
public org.drools.runtime.KnowledgeSessionConfiguration getConf()
getMarshaller
public org.drools.marshalling.Marshaller getMarshaller()
Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.