public static enum Peer.PeerRole extends Enum<Peer.PeerRole>
Enum Constant and Description |
---|
CHAINCODE_QUERY
Chaincode query peer will be used to invoke chaincode on chaincode query requests.
|
ENDORSING_PEER
Endorsing peer installs and runs chaincode.
|
EVENT_SOURCE
Peer will monitor block events for the channel it belongs to.
|
LEDGER_QUERY
Ledger Query will be used when query ledger operations are requested.
|
SERVICE_DISCOVERY
Peer will monitor block events for the channel it belongs to.
|
Modifier and Type | Field and Description |
---|---|
static EnumSet<Peer.PeerRole> |
ALL
All roles.
|
static EnumSet<Peer.PeerRole> |
NO_EVENT_SOURCE
All roles except event source.
|
Modifier and Type | Method and Description |
---|---|
String |
getPropertyName() |
static Peer.PeerRole |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Peer.PeerRole[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Peer.PeerRole ENDORSING_PEER
public static final Peer.PeerRole CHAINCODE_QUERY
public static final Peer.PeerRole LEDGER_QUERY
public static final Peer.PeerRole EVENT_SOURCE
public static final Peer.PeerRole SERVICE_DISCOVERY
public static final EnumSet<Peer.PeerRole> ALL
public static final EnumSet<Peer.PeerRole> NO_EVENT_SOURCE
public static Peer.PeerRole[] values()
for (Peer.PeerRole c : Peer.PeerRole.values()) System.out.println(c);
public static Peer.PeerRole valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getPropertyName()
Copyright © 2022. All rights reserved.