Table of Contents

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

IDictionary<long, ClusterHealthElement>

ClusterState

State of the cluster

IDictionary<long, DDM_INSTANCE_STATE> ClusterState { get; }

Property Value

IDictionary<long, DDM_INSTANCE_STATE>

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

long

MessageDelay

Gets actual message delay in the cluster

long MessageDelay { get; }

Property Value

long

MyState

DDM_INSTANCE_STATE MyState { get; }

Property Value

DDM_INSTANCE_STATE

PrimaryServerId

Gets identifier of the primary server

long PrimaryServerId { get; }

Property Value

long

UpTime

Gets this instance uptime

long UpTime { get; }

Property Value

long

Methods

ChangeMyState(DDM_INSTANCE_STATE)

Change the state of this instance

void ChangeMyState(DDM_INSTANCE_STATE newState)

Parameters

newState DDM_INSTANCE_STATE

Expected 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 long

Instance to change state to newState

newState DDM_INSTANCE_STATE

Expected DDM_INSTANCE_STATE

GetParameter(string)

Get mastership parameter

string GetParameter(string paramName)

Parameters

paramName string

Parameter 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

paramName string

Parameter to set

paramValue string

Value to set

Start(uint)

Starts the manager

OPERATION_RESULT Start(uint dwMilliseconds)

Parameters

dwMilliseconds uint

Timeout in ms

Returns

OPERATION_RESULT

OPERATION_RESULT

Stop(uint)

Stops the manager

OPERATION_RESULT Stop(uint dwMilliseconds)

Parameters

dwMilliseconds uint

Timeout in ms

Returns

OPERATION_RESULT

OPERATION_RESULT