AMPS C# Client  5.3.4.0
AMPS C# Client for .NET
AMPS.Client.SOWRecoveryPointAdapter Class Reference

SOWRecoveryPointAdapter provides functionality for interacting with a SOW (State of the World) topic to facilitate recovery point adaptation. More...

+ Inheritance diagram for AMPS.Client.SOWRecoveryPointAdapter:

Public Member Functions

delegate void ExceptionListener (Exception e)
 
 SOWRecoveryPointAdapter (Client client_, string trackedClientName_, bool closeClient_, bool useTimestamp_, bool throwExceptions_, long timeoutMillis_=0, string topic_="/ADMIN/bookmark_store", string clientNameField_="clientName", string subIdField_="subId", string bookmarkField_="bookmark")
 Creates a new SOWRecoveryPointAdapter. More...
 
 SOWRecoveryPointAdapter (Client client_, string trackedClientName_)
 Creates a new SOWRecoveryPointAdapter with default properties for NOT closing the provided client, using the ExceptionListener, no timeout for sow query of publshFlush, and a SOW topic of /ADMIN/bookmark_store with fields clientName, subId, and bookmark. More...
 
void setExceptionListener (ExceptionListener exceptionListener)
 Sets the ExceptionListener instance used for communicating absorbed exceptions. More...
 
void update (RecoveryPoint recoveryPoint_)
 
void purge ()
 
void purge (Field subId_)
 
void close ()
 
IEnumerator< RecoveryPointGetEnumerator ()
 
bool MoveNext ()
 
void Reset ()
 

Protected Member Functions

virtual bool serialize (RecoveryPoint recoveryPoint_)
 
virtual bool deserialize (Message m_)
 
virtual void initSerialization ()
 

Properties

RecoveryPoint Current [get]
 

Detailed Description

SOWRecoveryPointAdapter provides functionality for interacting with a SOW (State of the World) topic to facilitate recovery point adaptation.

Constructor & Destructor Documentation

AMPS.Client.SOWRecoveryPointAdapter.SOWRecoveryPointAdapter ( Client  client_,
string  trackedClientName_,
bool  closeClient_,
bool  useTimestamp_,
bool  throwExceptions_,
long  timeoutMillis_ = 0,
string  topic_ = "/ADMIN/bookmark_store",
string  clientNameField_ = "clientName",
string  subIdField_ = "subId",
string  bookmarkField_ = "bookmark" 
)
inline

Creates a new SOWRecoveryPointAdapter.

Parameters
client_The Client or HAClient connected to the AMPS server containing the SOW where bookmarks are tracked. This client MUST NOT be the same as the client being tracked.
trackedClientName_The name of the client whose bookmarks are being tracked.
timeoutMillis_The maximum amount of time in ms to wait for sow query completion to occur during recovery and for publishFlush to complete during Dispose. Use 0 for no timeout.
closeClient_If true, then client_ will be closed during Dispose.
useTimestamp_If true, then recovery bookmarks will also include the timestamp when the last update for each subId was stored in the SOW.
throwExceptions_If true, the exceptions will be thrown out of this class instead of sending them to any set ExceptionListener.
topic_Sets the name of the bookmark store SOW topic to be used. It defaults to '/ADMIN/bookmark_store' if null.
clientNameField_Sets the name of the field for the trackedClientName in the bookmark store SOW topic. It defaults to 'clientName' if null.
bookmarkField_Sets the name of the field for the bookmark in the bookmark store SOW topic. It defaults to 'bookmark' if null.
AMPS.Client.SOWRecoveryPointAdapter.SOWRecoveryPointAdapter ( Client  client_,
string  trackedClientName_ 
)
inline

Creates a new SOWRecoveryPointAdapter with default properties for NOT closing the provided client, using the ExceptionListener, no timeout for sow query of publshFlush, and a SOW topic of /ADMIN/bookmark_store with fields clientName, subId, and bookmark.

Parameters
client_The Client or HAClient connected to the AMPS server containing the SOW where bookmarks are tracked. This client MUST NOT be the same as the client being tracked.
trackedClientName_The name of the client whose bookmarks are being tracked.

Member Function Documentation

void AMPS.Client.SOWRecoveryPointAdapter.close ( )
inline

Take any necessary actions to close the underlying storage.

Implements AMPS.Client.RecoveryPointAdapter.

IEnumerator<RecoveryPoint> AMPS.Client.SOWRecoveryPointAdapter.GetEnumerator ( )
inline

Return an enumerator over recovered RecoveryPoints.

bool AMPS.Client.SOWRecoveryPointAdapter.MoveNext ( )
inline

IEnumerator move to next item.

void AMPS.Client.SOWRecoveryPointAdapter.purge ( )
inline

Remove all recovery point information.

Implements AMPS.Client.RecoveryPointAdapter.

void AMPS.Client.SOWRecoveryPointAdapter.purge ( Field  subId_)
inline

Remove all recovery point information for a given sub id.

Implements AMPS.Client.RecoveryPointAdapter.

void AMPS.Client.SOWRecoveryPointAdapter.Reset ( )
inline

IEnumerator reset - not implemented.

void AMPS.Client.SOWRecoveryPointAdapter.setExceptionListener ( ExceptionListener  exceptionListener)
inline

Sets the ExceptionListener instance used for communicating absorbed exceptions.

Parameters
exceptionListenerThe exception listener instance to invoke for exceptions.
void AMPS.Client.SOWRecoveryPointAdapter.update ( RecoveryPoint  recoveryPoint_)
inline

Process an update to the newest recovery point.

Implements AMPS.Client.RecoveryPointAdapter.

Property Documentation

RecoveryPoint AMPS.Client.SOWRecoveryPointAdapter.Current
get

The current RecoveryPoint from SOW recovery for the client.


The documentation for this class was generated from the following file: