org.openstreetmap.osmosis.core.merge.v0_6.impl
Class ServerStateReader

java.lang.Object
  extended by org.openstreetmap.osmosis.core.merge.v0_6.impl.ServerStateReader

public class ServerStateReader
extends java.lang.Object

Retrieves replication state files from the server hosting replication data.


Constructor Summary
ServerStateReader()
          Creates a new instance.
 
Method Summary
 ReplicationState getServerState(java.net.URL baseUrl)
          Retrieves the latest state from the server.
 ReplicationState getServerState(java.net.URL baseUrl, long sequenceNumber)
          Retrieves the specified state from the server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerStateReader

public ServerStateReader()
Creates a new instance.

Method Detail

getServerState

public ReplicationState getServerState(java.net.URL baseUrl)
Retrieves the latest state from the server.

Parameters:
baseUrl - The url of the directory containing change files.
Returns:
The state.

getServerState

public ReplicationState getServerState(java.net.URL baseUrl,
                                       long sequenceNumber)
Retrieves the specified state from the server.

Parameters:
baseUrl - The url of the directory containing change files.
sequenceNumber - The sequence number of the state to be retrieved from the server.
Returns:
The state.