com.neeve.ods
Interface IStoreCommitCompletionStatus


public interface IStoreCommitCompletionStatus

Represents the completion status of an ODS store commit operation.

This interface provides the user with access to the completion status of a commit operation. The ODS runtime sets the commit completion status in the commit completion event before notifying the user of the completion of a commit (see IStoreBinding.commit(long, long, com.neeve.ods.IStoreObject[], int, com.neeve.ods.IStoreCommitCompletionEvent, int))

A commit completion status object essentially contains the replication status for each member involved in the commit process.

Threading:
A commit completion status object is not safe for concurrent access by multiple threads.

Method Summary
 int getFailedCount()
          Returns the number of failed replications.
 Map<IStoreMember,IStoreMemberReplicationStatus> getReplicationStatus()
          Get the replication status.
 int getSuccessCount()
          Returns the number of successful replications.
 

Method Detail

getSuccessCount

int getSuccessCount()
Returns the number of successful replications.

Threading:
This method is safe for concurrent access by multiple threads.

This method returns the number of members to which the commit succesfully replicated the changes.


getFailedCount

int getFailedCount()
Returns the number of failed replications.

Threading:
This method is safe for concurrent access by multiple threads.

This method returns the number of members to which the commit failed to replicate the changes. The user can get the cause of failure for each member from the replication status object (@link {getReplicationStatus}).


getReplicationStatus

Map<IStoreMember,IStoreMemberReplicationStatus> getReplicationStatus()
Get the replication status.

Threading:
This method is safe for concurrent access by multiple threads. It is the users responsibility to protect against concurrent access to the returned map.

This method returns the replication status to each of the store members that were part of the commit process.



Copyright © 2016 Neeve Research, LLC. All Rights Reserved.