Package org.prevayler.implementation

Examples of org.prevayler.implementation.PrevaylerDirectory


  private Journal journal() throws IOException {
    if (_transientMode) {
      return (Journal) new TransientJournal();
    } else {
      PrevaylerDirectory directory = new PrevaylerDirectory(prevalenceDirectory());
      return new PersistentJournal(directory, _journalSizeThreshold, _journalAgeThreshold, _journalDiskSync, journalSuffix(), monitor());
    }
  }
View Full Code Here


  private GenericSnapshotManager<P> snapshotManager() throws Exception {
    if (_nullSnapshotManager != null)
      return _nullSnapshotManager;

    PrevaylerDirectory directory = new PrevaylerDirectory(prevalenceDirectory());
    if (!_snapshotSerializers.isEmpty())
      return new GenericSnapshotManager<P>(_snapshotSerializers, _primarySnapshotSuffix, prevalentSystem(), directory, journalSerializer());

    String snapshotSuffix = "snapshot";
    JavaSerializer snapshotSerializer = new JavaSerializer();
View Full Code Here

TOP

Related Classes of org.prevayler.implementation.PrevaylerDirectory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.