Package org.openstreetmap.osmosis.replication.common

Examples of org.openstreetmap.osmosis.replication.common.ServerStateReader


  }


  private long getCurrentSequenceNumber() {
    try {
      return new ServerStateReader().getServerState(dataDirectory.toURI().toURL()).getSequenceNumber();
    } catch (MalformedURLException e) {
      throw new OsmosisRuntimeException("Unable to get the current sequence number", e);
    }
  }
View Full Code Here


   */
  public BaseReplicationDownloader(File workingDirectory) {
    this.workingDirectory = workingDirectory;
   
    sequenceFormatter = new ReplicationSequenceFormatter(9, 3);
    serverStateReader = new ServerStateReader();
  }
View Full Code Here

   */
  public ReplicationLagReader(File workingDirectory, boolean humanReadable) {
    this.workingDirectory = workingDirectory;
    this.humanReadable = humanReadable;
   
    serverStateReader = new ServerStateReader();
  }
View Full Code Here

TOP

Related Classes of org.openstreetmap.osmosis.replication.common.ServerStateReader

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.