-
Notifications
You must be signed in to change notification settings - Fork 514
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FAB-10917 NodeSDK - return channel methods
Peer roles are channel based and as such needed to be set on Peer per channel. A new object has been introduced to hold the peer and information about the peer, ChannelPeer. This object will be unique per channel as a Peer may be on many Channels. User will not get ChannelPeer objects on the channel.getPeers() call. The ChannelPeer will wrapper the Peer calls such that a ChannelPeer may be used as a Peer. The ChannelPeer will also have the isInRole and setRole methods that were incorrectly placed on the Peer. Having the ChannelPeer will make it easier to get the ChannelEventHub, just use the getChannelEventHub() method on the ChannelPeer object. Change-Id: I7b718530805af99336d98210db99f1c46f2bc4e5 Signed-off-by: Bret Harrison <[email protected]>
- Loading branch information
Showing
5 changed files
with
64 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters