Package org.prevayler.foundation.network

Examples of org.prevayler.foundation.network.OldNetworkImpl


   * @throws ClassNotFoundException If a class of a serialized Object is not found when reading a .journal or .snapshot file.
   */
  public Prevayler<P> create() throws Exception {
    GenericSnapshotManager<P> snapshotManager = snapshotManager();
    TransactionPublisher publisher = publisher(snapshotManager);
    if (_serverPort != -1) new ServerListener(publisher, new OldNetworkImpl(), _serverPort);
    return new PrevaylerImpl<P>(snapshotManager, publisher, journalSerializer(), _transactionDeepCopyMode);
  }
View Full Code Here


  }


  private TransactionPublisher publisher(GenericSnapshotManager<P> snapshotManager) throws IOException {
    if (_remoteServerIpAddress != null)
      return new ClientPublisher(new OldNetworkImpl(), _remoteServerIpAddress, _remoteServerPort);
    return new CentralPublisher(clock(), journal());
  }
View Full Code Here

TOP

Related Classes of org.prevayler.foundation.network.OldNetworkImpl

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.