com.h3c.sdn.adm.role

## Interface RoleEvent

-     public interface RoleEvent

  Abstraction of Role events.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `Set<DataPathId>` | `datapaths()` List of affected datapaths due to a Role assertion.
    `ControllerNode` | `newMaster()` The controller which has now taken over the responsibility of playing MASTER role to the affected datapaths.
    `ControllerNode` | `oldMaster()` The controller which was replaced as Master to the given datapaths.

- - ### Method Detail

    - #### datapaths

          Set<DataPathId> datapaths()

      List of affected datapaths due to a Role assertion.
      Returns:
        list of datapaths

    - #### oldMaster

          ControllerNode oldMaster()

      The controller which was replaced as Master to the given datapaths.
      Returns:
        controller which experienced failure.

    - #### newMaster

          ControllerNode newMaster()

      The controller which has now taken over the responsibility of playing MASTER role to the affected datapaths.
      Returns:
        controller which assumed mastership

Copyright © 2014. All Rights Reserved.