The C++ callback interface to be externally implemented. More...
#include <DataDistributionManager.h>
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. | |
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.