Interface to be implemented from mastership subsystem.
More...
#include <DataDistributionManager.h>
Interface to be implemented from mastership subsystem.
Interface to be implemented from mastership subsystem
◆ ChangeMyState()
Change DDM_INSTANCE_STATE of this instance.
state
DDM_INSTANCE_STATE expected
◆ ChangeState()
virtual void IDataDistributionMastershipCommon::ChangeState |
( |
int64_t | instanceId, |
|
|
DDM_INSTANCE_STATE | state ) |
|
pure virtual |
Change DDM_INSTANCE_STATE of instanceId
.
instanceId
server id to change state state
DDM_INSTANCE_STATE expected
◆ GetClusterHealth()
virtual ClusterHealth IDataDistributionMastershipCommon::GetClusterHealth |
( |
| ) |
|
|
pure virtual |
Returns the health of the cluster.
- Returns
- the ClusterHealth
◆ GetClusterIndexes()
virtual int64_t * IDataDistributionMastershipCommon::GetClusterIndexes |
( |
size_t * | length | ) |
|
|
pure virtual |
Returns an array of all known indexes of the servers within the cluster.
length
the parameter receiving the length of returned buffer
- Returns
- the buffer of known indexes
◆ GetIamNextPrimary()
virtual BOOL IDataDistributionMastershipCommon::GetIamNextPrimary |
( |
| ) |
|
|
pure virtual |
Verify if this server will be elected as next primary.
- Returns
- TRUE if this server is the next primary
◆ GetLocalServerId()
virtual int64_t IDataDistributionMastershipCommon::GetLocalServerId |
( |
| ) |
|
|
pure virtual |
Returns the server id of the local instance.
- Returns
- the server id
◆ GetMessageDelay()
virtual int64_t IDataDistributionMastershipCommon::GetMessageDelay |
( |
| ) |
|
|
pure virtual |
Returns the message delay within the cluster.
- Returns
- the message delay in milliseconds
◆ GetMyState()
Returns DDM_INSTANCE_STATE of this instance.
- Returns
- the DDM_INSTANCE_STATE
◆ GetParameter()
virtual const char * IDataDistributionMastershipCommon::GetParameter |
( |
const char * | paramName | ) |
|
|
pure virtual |
Reads a parameter at run-time.
paramName
the parameter name
- Returns
- parameter value
◆ GetPrimaryServerId()
virtual int64_t IDataDistributionMastershipCommon::GetPrimaryServerId |
( |
| ) |
|
|
pure virtual |
Returns the server id of the primary instance.
- Returns
- the server id
◆ GetStateOf()
virtual DDM_INSTANCE_STATE IDataDistributionMastershipCommon::GetStateOf |
( |
int64_t | serverId | ) |
|
|
pure virtual |
Returns the DDM_INSTANCE_STATE of a specific server.
serverId
server index to get DDM_INSTANCE_STATE
- Returns
- the DDM_INSTANCE_STATE
◆ GetUpTime()
virtual int64_t IDataDistributionMastershipCommon::GetUpTime |
( |
| ) |
|
|
pure virtual |
Returns the current uptime.
- Returns
- the uptime in milliseconds
◆ Initialize()
Initialize the subsystem.
transportManager
IDataDistributionSubsystem to use cbs
IDataDistributionMastershipCallback to communicate information hostAddress
optional host address or host name arrayParams
an array of string in the form key=value len
length of arrayParams
- Returns
- the OPERATION_RESULT of the operation
◆ RequestIAmNextPrimary()
virtual BOOL IDataDistributionMastershipCommon::RequestIAmNextPrimary |
( |
| ) |
|
|
pure virtual |
Request to be the next primary server.
- Returns
- TRUE in case of success
◆ SetParameter()
virtual void IDataDistributionMastershipCommon::SetParameter |
( |
const char * | paramName, |
|
|
const char * | paramValue ) |
|
pure virtual |
Sets a parameter at run-time.
paramName
the parameter name paramValue
the parameter value
◆ Start()
virtual OPERATION_RESULT IDataDistributionMastershipCommon::Start |
( |
unsigned long | timeout | ) |
|
|
pure virtual |
Start the mastership subsystem.
timeout
the operation timeout in milliseconds
- Returns
- the OPERATION_RESULT of the operation
◆ Stop()
virtual OPERATION_RESULT IDataDistributionMastershipCommon::Stop |
( |
unsigned long | timeout | ) |
|
|
pure virtual |
Stop the mastership subsystem.
timeout
the operation timeout in milliseconds
- Returns
- the OPERATION_RESULT of the operation
The documentation for this class was generated from the following file: