Package | Description |
---|---|
org.hyperledger.fabric.sdk |
Modifier and Type | Field and Description |
---|---|
static EnumSet<Peer.PeerRole> |
Peer.PeerRole.ALL
All roles.
|
static EnumSet<Peer.PeerRole> |
Peer.PeerRole.NO_EVENT_SOURCE
All roles except event source.
|
Modifier and Type | Method and Description |
---|---|
static Peer.PeerRole |
Peer.PeerRole.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Peer.PeerRole[] |
Peer.PeerRole.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
EnumSet<Peer.PeerRole> |
Channel.PeerOptions.getPeerRoles()
Return the roles the peer has.
|
Modifier and Type | Method and Description |
---|---|
Channel.PeerOptions |
Channel.PeerOptions.addPeerRole(Peer.PeerRole peerRole)
Add to the roles this peer will have on the chain it will added or joined.
|
Modifier and Type | Method and Description |
---|---|
Collection<Peer> |
Channel.getPeers(EnumSet<Peer.PeerRole> roles)
Get the peers for this channel.
|
Channel.PeerOptions |
Channel.PeerOptions.setPeerRoles(EnumSet<Peer.PeerRole> peerRoles)
Set the roles this peer will have on the chain it will added or joined.
|
Copyright © 2022. All rights reserved.