Interface ISmartDataDistributionMastership
- Namespace
- MASES.DataDistributionManager.Bindings
- Assembly
- DataDistributionManagerNet.dll
Interface to manage underlying mastersip manager
public interface ISmartDataDistributionMastership
Properties
ClusterHealth
Health of the cluster
IDictionary<long, ClusterHealthElement> ClusterHealth { get; }
Property Value
ClusterState
State of the cluster
IDictionary<long, DDM_INSTANCE_STATE> ClusterState { get; }
Property Value
IamNextPrimary
Verify if this server will be elected as next primary
bool IamNextPrimary { get; }
Property Value
- bool
True if this server is the next primary
LocalServerId
Get my server identifier
long LocalServerId { get; }
Property Value
MessageDelay
Gets actual message delay in the cluster
long MessageDelay { get; }
Property Value
MyState
Get my DDM_INSTANCE_STATE
DDM_INSTANCE_STATE MyState { get; }
Property Value
PrimaryServerId
Gets identifier of the primary server
long PrimaryServerId { get; }
Property Value
UpTime
Gets this instance uptime
long UpTime { get; }
Property Value
Methods
ChangeMyState(DDM_INSTANCE_STATE)
Change the state of this instance
void ChangeMyState(DDM_INSTANCE_STATE newState)
Parameters
newState
DDM_INSTANCE_STATEExpected DDM_INSTANCE_STATE
ChangeState(long, DDM_INSTANCE_STATE)
Change the state of the instance instanceId
void ChangeState(long instanceId, DDM_INSTANCE_STATE newState)
Parameters
instanceId
longInstance to change state to
newState
newState
DDM_INSTANCE_STATEExpected DDM_INSTANCE_STATE
GetParameter(string)
Get mastership parameter
string GetParameter(string paramName)
Parameters
paramName
stringParameter to get
Returns
- string
Parameter value
RequestIAmNextPrimary()
Request to be the next primary server
bool RequestIAmNextPrimary()
Returns
- bool
True in case of success
SetParameter(string, string)
Set mastership parameter
void SetParameter(string paramName, string paramValue)
Parameters
Start(uint)
Starts the manager
OPERATION_RESULT Start(uint dwMilliseconds)
Parameters
dwMilliseconds
uintTimeout in ms
Returns
Stop(uint)
Stops the manager
OPERATION_RESULT Stop(uint dwMilliseconds)
Parameters
dwMilliseconds
uintTimeout in ms