org.openanzo.model.event
Class ReplicationFinishedEvent

java.lang.Object
  extended by org.openanzo.model.event.Event
      extended by org.openanzo.model.event.ReplicationFinishedEvent
All Implemented Interfaces:
IEvent

public class ReplicationFinishedEvent
extends Event

Event fired when the client finishes processing the contents of a replication with the server.

Author:
Matthew Roy ( mroy@cambridgesemantics.com )

Field Summary
static org.openrdf.model.URI TYPE
          ReplicationFinished event type
 
Constructor Summary
ReplicationFinishedEvent(java.lang.Long marker)
          Create new ReplicationFinishedEvent
ReplicationFinishedEvent(java.lang.Long marker, java.util.Collection<org.openrdf.model.Statement> additions, java.util.Collection<org.openrdf.model.Statement> deletions)
          Create new ReplicationFinishedEvent
 
Method Summary
 java.util.Collection<org.openrdf.model.Statement> getAdditions()
          Get the statements added during replication
 java.util.Collection<org.openrdf.model.Statement> getDeletions()
          Get the statements deleted during replication
 java.lang.Long getTimestamp()
          Get the timestamp of replication
 
Methods inherited from class org.openanzo.model.event.Event
getType
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE

public static final org.openrdf.model.URI TYPE
ReplicationFinished event type

Constructor Detail

ReplicationFinishedEvent

public ReplicationFinishedEvent(java.lang.Long marker)
Create new ReplicationFinishedEvent

Parameters:
marker - timestamp of replication

ReplicationFinishedEvent

public ReplicationFinishedEvent(java.lang.Long marker,
                                java.util.Collection<org.openrdf.model.Statement> additions,
                                java.util.Collection<org.openrdf.model.Statement> deletions)
Create new ReplicationFinishedEvent

Parameters:
marker - timestamp of replication
additions - set of statements added during replication
deletions - set of statements deleted during replication
Method Detail

getTimestamp

public java.lang.Long getTimestamp()
Get the timestamp of replication

Returns:
timestamp of replication

getAdditions

public java.util.Collection<org.openrdf.model.Statement> getAdditions()
Get the statements added during replication

Returns:
statements added during replication

getDeletions

public java.util.Collection<org.openrdf.model.Statement> getDeletions()
Get the statements deleted during replication

Returns:
statements deleted during replication


Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.