EventHubDisasterRecoveryPairing Interface

Implements

public interface EventHubDisasterRecoveryPairing
extends NestedResource, HasManager<EventHubsManager>, Refreshable<EventHubDisasterRecoveryPairing>, Updatable<Update>, HasInnerModel<ArmDisasterRecoveryInner>

Type representing disaster recovery pairing for event hub namespaces.

Method Summary

Modifier and Type Method and Description
abstract void breakPairing()

Break the pairing between a primary and secondary namespace.

abstract Mono<Void> breakPairingAsync()

Break the pairing between a primary and secondary namespace.

abstract void failOver()

Perform fail over so that the secondary namespace becomes the primary.

abstract Mono<Void> failOverAsync()

Perform fail over so that the secondary namespace becomes the primary.

abstract PagedIterable<DisasterRecoveryPairingAuthorizationRule> listAuthorizationRules()

Gets the authorization rules for the event hub disaster recovery pairing.

abstract PagedFlux<DisasterRecoveryPairingAuthorizationRule> listAuthorizationRulesAsync()

Gets the authorization rules for the event hub disaster recovery pairing.

abstract RoleDisasterRecovery namespaceRole()

Gets the namespace role.

abstract String primaryNamespaceName()

Gets primary event hub namespace in the pairing.

abstract String primaryNamespaceResourceGroupName()

Gets primary event hub namespace resource group.

abstract ProvisioningStateDR provisioningState()

Gets provisioning state of the pairing.

abstract String secondaryNamespaceId()

Gets secondary event hub namespace in the pairing.

Method Details

breakPairing

public abstract void breakPairing()

Break the pairing between a primary and secondary namespace.

breakPairingAsync

public abstract Mono breakPairingAsync()

Break the pairing between a primary and secondary namespace.

Returns:

completable representing the pairing break action

failOver

public abstract void failOver()

Perform fail over so that the secondary namespace becomes the primary.

failOverAsync

public abstract Mono failOverAsync()

Perform fail over so that the secondary namespace becomes the primary.

Returns:

completable representing the fail-over action

listAuthorizationRules

public abstract PagedIterable listAuthorizationRules()

Gets the authorization rules for the event hub disaster recovery pairing.

Returns:

the authorization rules for the event hub disaster recovery pairing

listAuthorizationRulesAsync

public abstract PagedFlux listAuthorizationRulesAsync()

Gets the authorization rules for the event hub disaster recovery pairing.

Returns:

the authorization rules for the event hub disaster recovery pairing

namespaceRole

public abstract RoleDisasterRecovery namespaceRole()

Gets the namespace role.

Returns:

the namespace role

primaryNamespaceName

public abstract String primaryNamespaceName()

Gets primary event hub namespace in the pairing.

Returns:

primary event hub namespace in the pairing

primaryNamespaceResourceGroupName

public abstract String primaryNamespaceResourceGroupName()

Gets primary event hub namespace resource group.

Returns:

primary event hub namespace resource group

provisioningState

public abstract ProvisioningStateDR provisioningState()

Gets provisioning state of the pairing.

Returns:

provisioning state of the pairing

secondaryNamespaceId

public abstract String secondaryNamespaceId()

Gets secondary event hub namespace in the pairing.

Returns:

secondary event hub namespace in the pairing

Applies to