Loading...
Searching...
No Matches
IDataDistributionMastershipCallback Class Referenceabstract

The C++ callback interface to be externally implemented. More...

#include <DataDistributionManager.h>

Inheritance diagram for IDataDistributionMastershipCallback:
SmartDataDistributionBase SmartDataDistribution< T >

Public Member Functions

virtual void OnClusterStateChange (DDM_CLUSTEREVENT change, int64_t serverid)=0
 Callback invoked to report cluster state change.
 
virtual void OnStateChange (DDM_INSTANCE_STATE newState, DDM_INSTANCE_STATE oldState)=0
 Callback invoked to report a state change.
 
virtual void OnStateReady (void *pState, int64_t len)=0
 Callback invoked when a state transfer is completed.
 
virtual void OnRequestedState (void **pState, size_t *len)=0
 Callback invoked when a state transfer is requested.
 
virtual void OnMultiplePrimary (int64_t myId, int64_t otherId)=0
 Callback invoked when multiple primary server are detected.
 
virtual void FirstStateChange (DDM_INSTANCE_STATE newState)=0
 Callback invoked to report a first state change.
 
virtual void ChangingState (DDM_INSTANCE_STATE actualState, DDM_INSTANCE_STATE futureState)=0
 Callback invoked to report a starting instance state change.
 
virtual void ChangedState (DDM_INSTANCE_STATE actualState)=0
 Callback invoked to report a finished instance state change.
 

Detailed Description

The C++ callback interface to be externally implemented.

Implement this interface in an external class and pass the pointer to IDataDistribution::RequestMastershipManager. The external class will be called conseguently.

See also
IDataDistribution::RequestMastershipManager
IDataDistributionMastershipCommon::Initialize

Member Function Documentation

◆ ChangedState()

virtual void IDataDistributionMastershipCallback::ChangedState ( DDM_INSTANCE_STATE actualState)
pure virtual

Callback invoked to report a finished instance state change.

Callback invoked when subsystem needs to report a state change.

actualState reports the actual DDM_INSTANCE_STATE state

Implemented in SmartDataDistributionBase.

◆ ChangingState()

virtual void IDataDistributionMastershipCallback::ChangingState ( DDM_INSTANCE_STATE actualState,
DDM_INSTANCE_STATE futureState )
pure virtual

Callback invoked to report a starting instance state change.

Callback invoked when subsystem needs to report a state change.

futureState reports the future DDM_INSTANCE_STATE state actualState reports the actual DDM_INSTANCE_STATE state

Implemented in SmartDataDistributionBase.

◆ FirstStateChange()

virtual void IDataDistributionMastershipCallback::FirstStateChange ( DDM_INSTANCE_STATE newState)
pure virtual

Callback invoked to report a first state change.

Callback invoked when subsystem needs to to report a first state change

newState DDM_INSTANCE_STATE state

Implemented in SmartDataDistributionBase.

◆ OnClusterStateChange()

virtual void IDataDistributionMastershipCallback::OnClusterStateChange ( DDM_CLUSTEREVENT change,
int64_t serverid )
pure virtual

Callback invoked to report cluster state change.

Callback invoked when subsystem needs to report a cluster state change.

change reports the DDM_CLUSTEREVENT event serverid the server id reporting the change

Implemented in SmartDataDistributionBase.

◆ OnMultiplePrimary()

virtual void IDataDistributionMastershipCallback::OnMultiplePrimary ( int64_t myId,
int64_t otherId )
pure virtual

Callback invoked when multiple primary server are detected.

Callback invoked when subsystem needs to report there are multiple primary server are detected

myId my primary identifier otherId other primary identifier

Implemented in SmartDataDistributionBase.

◆ OnRequestedState()

virtual void IDataDistributionMastershipCallback::OnRequestedState ( void ** pState,
size_t * len )
pure virtual

Callback invoked when a state transfer is requested.

Callback invoked when subsystem needs to request a state transfer. Fill pState and len with state information

pState pointer to the buffer of the state len the length of the buffer

Implemented in SmartDataDistributionBase.

◆ OnStateChange()

virtual void IDataDistributionMastershipCallback::OnStateChange ( DDM_INSTANCE_STATE newState,
DDM_INSTANCE_STATE oldState )
pure virtual

Callback invoked to report a state change.

Callback invoked when subsystem needs to report a state change.

newState reports the new DDM_INSTANCE_STATE state oldState reports the new DDM_INSTANCE_STATE state

Implemented in SmartDataDistributionBase.

◆ OnStateReady()

virtual void IDataDistributionMastershipCallback::OnStateReady ( void * pState,
int64_t len )
pure virtual

Callback invoked when a state transfer is completed.

Callback invoked when subsystem needs to report a completed state transfer

pState pointer to the buffer of the state len the length of the buffer

Implemented in SmartDataDistributionBase.


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