- Chaincode - Interface in org.hyperledger.fabric.shim
-
Defines methods that all chaincodes must implement.
- Chaincode.Response - Class in org.hyperledger.fabric.shim
-
Wrapper around protobuf Response, contains status, message and payload.
- Chaincode.Response.Status - Enum in org.hyperledger.fabric.shim
-
- ChaincodeException - Exception in org.hyperledger.fabric.shim
-
Contracts should use ChaincodeException
to indicate when an error
occurs in Smart Contract logic.
- ChaincodeException() - Constructor for exception org.hyperledger.fabric.shim.ChaincodeException
-
Constructs a new ChaincodeException
with no detail message.
- ChaincodeException(String) - Constructor for exception org.hyperledger.fabric.shim.ChaincodeException
-
Constructs a new ChaincodeException
with the specified detail
message.
- ChaincodeException(Throwable) - Constructor for exception org.hyperledger.fabric.shim.ChaincodeException
-
Constructs a new ChaincodeException
with the specified cause.
- ChaincodeException(String, Throwable) - Constructor for exception org.hyperledger.fabric.shim.ChaincodeException
-
Constructs a new ChaincodeException
with the specified detail message
and cause.
- ChaincodeException(String, byte[]) - Constructor for exception org.hyperledger.fabric.shim.ChaincodeException
-
Constructs a new ChaincodeException
with the specified detail message
and response payload.
- ChaincodeException(String, byte[], Throwable) - Constructor for exception org.hyperledger.fabric.shim.ChaincodeException
-
Constructs a new ChaincodeException
with the specified detail
message, response payload and cause.
- ChaincodeException(String, String) - Constructor for exception org.hyperledger.fabric.shim.ChaincodeException
-
Constructs a new ChaincodeException
with the specified detail message
and response payload.
- ChaincodeException(String, String, Throwable) - Constructor for exception org.hyperledger.fabric.shim.ChaincodeException
-
Constructs a new ChaincodeException
with the specified detail
message, response payload and cause.
- ChaincodeStub - Interface in org.hyperledger.fabric.shim
-
- ClientIdentity - Class in org.hyperledger.fabric.contract
-
ClientIdentity represents information about the identity that submitted a
transaction.
- ClientIdentity(ChaincodeStub) - Constructor for class org.hyperledger.fabric.contract.ClientIdentity
-
Creates new ClientIdentity helper.
- clientIdentity - Variable in class org.hyperledger.fabric.contract.Context
-
- CompositeKey - Class in org.hyperledger.fabric.shim.ledger
-
- CompositeKey(String, String...) - Constructor for class org.hyperledger.fabric.shim.ledger.CompositeKey
-
- CompositeKey(String, List<String>) - Constructor for class org.hyperledger.fabric.shim.ledger.CompositeKey
-
- Contact - Annotation Type in org.hyperledger.fabric.contract.annotation
-
Class level annotation that identifies this class as being a contact.
- Context - Class in org.hyperledger.fabric.contract
-
This context is available to all 'transaction functions' and provides the
transaction context.
- Context(ChaincodeStub) - Constructor for class org.hyperledger.fabric.contract.Context
-
Creates new client identity and sets it as a property of the stub.
- Contract - Annotation Type in org.hyperledger.fabric.contract.annotation
-
Class level annotation that identifies this class as being a contract.
- ContractInterface - Interface in org.hyperledger.fabric.contract
-
All Contracts should implement this interface, in addition to the
Contract annotation.
- createCompositeKey(String, String...) - Method in interface org.hyperledger.fabric.shim.ChaincodeStub
-
Given a set of attributes, this method combines these attributes to return a
composite key.
- createContext(ChaincodeStub) - Method in interface org.hyperledger.fabric.contract.ContractInterface
-
- getActiveCount() - Method in interface org.hyperledger.fabric.metrics.TaskMetricsCollector
-
Currently executing threads.
- getArgs() - Method in interface org.hyperledger.fabric.shim.ChaincodeStub
-
- getAttributes() - Method in class org.hyperledger.fabric.shim.ledger.CompositeKey
-
- getAttributeValue(String) - Method in class org.hyperledger.fabric.contract.ClientIdentity
-
getAttributeValue returns the value of the client's attribute named
`attrName`.
- getBinding() - Method in interface org.hyperledger.fabric.shim.ChaincodeStub
-
Returns the transaction binding.
- getChannelId() - Method in interface org.hyperledger.fabric.shim.ChaincodeStub
-
Returns the channel id for the current proposal.
- getClientIdentity() - Method in class org.hyperledger.fabric.contract.Context
-
- getCode() - Method in enum org.hyperledger.fabric.shim.Chaincode.Response.Status
-
- getCorePoolSize() - Method in interface org.hyperledger.fabric.metrics.TaskMetricsCollector
-
Gets the core (minimum) pool size.
- getCreator() - Method in interface org.hyperledger.fabric.shim.ChaincodeStub
-
Returns the identity of the agent (or user) submitting the transaction.
- getCurrentQueueCount() - Method in interface org.hyperledger.fabric.metrics.TaskMetricsCollector
-
Currently waiting tasks; should not be a higher number.
- getCurrentTaskCount() - Method in interface org.hyperledger.fabric.metrics.TaskMetricsCollector
-
Currently executing tasks.
- getEvent() - Method in interface org.hyperledger.fabric.shim.ChaincodeStub
-
Returns the CHAINCODE type event that will be posted to interested clients
when the chaincode's result is committed to the ledger.
- getFunction() - Method in interface org.hyperledger.fabric.shim.ChaincodeStub
-
A convenience method that returns the first argument of the chaincode
invocation for use as a function name.
- getHistoryForKey(String) - Method in interface org.hyperledger.fabric.shim.ChaincodeStub
-
Returns a history of key values across time.
- getId() - Method in class org.hyperledger.fabric.contract.ClientIdentity
-
getId returns the ID associated with the invoking identity.
- getKey() - Method in interface org.hyperledger.fabric.shim.ledger.KeyValue
-
Returns the state key.
- getLargestPoolSize() - Method in interface org.hyperledger.fabric.metrics.TaskMetricsCollector
-
Gets the largest pool size so far.
- getLogger(String) - Static method in class org.hyperledger.fabric.Logger
-
- getLogger(Class<?>) - Static method in class org.hyperledger.fabric.Logger
-
- getMaximumPoolSize() - Method in interface org.hyperledger.fabric.metrics.TaskMetricsCollector
-
Gets the upper limit pool size.
- getMessage() - Method in class org.hyperledger.fabric.shim.Chaincode.Response
-
- getMetadata() - Method in interface org.hyperledger.fabric.shim.ledger.QueryResultsIteratorWithMetadata
-
- getMSPID() - Method in class org.hyperledger.fabric.contract.ClientIdentity
-
getMSPID returns the MSP ID of the invoking identity.
- getMspId() - Method in interface org.hyperledger.fabric.shim.ChaincodeStub
-
Get the MSPID of the peer that started this chaincode.
- getObjectType() - Method in class org.hyperledger.fabric.shim.ledger.CompositeKey
-
- getParameters() - Method in interface org.hyperledger.fabric.shim.ChaincodeStub
-
A convenience method that returns all except the first argument of the
chaincode invocation for use as the parameters to the function returned by
#
ChaincodeStub.getFunction()
.
- getPayload() - Method in class org.hyperledger.fabric.shim.Chaincode.Response
-
- getPayload() - Method in exception org.hyperledger.fabric.shim.ChaincodeException
-
Returns the response payload or null
if there is no response.
- getPoolSize() - Method in interface org.hyperledger.fabric.metrics.TaskMetricsCollector
-
Gets the current size of the pool.
- getPrivateData(String, String) - Method in interface org.hyperledger.fabric.shim.ChaincodeStub
-
Returns the value of the specified key
from the specified
collection
.
- getPrivateDataByPartialCompositeKey(String, String) - Method in interface org.hyperledger.fabric.shim.ChaincodeStub
-
Returns all existing keys, and their values, that are prefixed by the
specified partial
CompositeKey
in a given private collection.
- getPrivateDataByPartialCompositeKey(String, CompositeKey) - Method in interface org.hyperledger.fabric.shim.ChaincodeStub
-
Returns all existing keys, and their values, that are prefixed by the
specified partial
CompositeKey
in a given private collection.
- getPrivateDataByPartialCompositeKey(String, String, String...) - Method in interface org.hyperledger.fabric.shim.ChaincodeStub
-
Returns all existing keys, and their values, that are prefixed by the
specified partial
CompositeKey
in a given private collection.
- getPrivateDataByRange(String, String, String) - Method in interface org.hyperledger.fabric.shim.ChaincodeStub
-
Returns all existing keys, and their values, that are lexicographically
between startkey
(inclusive) and the endKey
(exclusive) in a given private collection.
- getPrivateDataHash(String, String) - Method in interface org.hyperledger.fabric.shim.ChaincodeStub
-
- getPrivateDataQueryResult(String, String) - Method in interface org.hyperledger.fabric.shim.ChaincodeStub
-
Perform a rich query against a given private collection.
- getPrivateDataUTF8(String, String) - Method in interface org.hyperledger.fabric.shim.ChaincodeStub
-
Returns the byte array value specified by the key and decoded as a UTF-8
encoded string, from the sidedb collection.
- getPrivateDataValidationParameter(String, String) - Method in interface org.hyperledger.fabric.shim.ChaincodeStub
-
Retrieves the key-level endorsement policy for the private data specified by
key
.
- getProvider() - Static method in class org.hyperledger.fabric.metrics.Metrics
-
- getQueryResult(String) - Method in interface org.hyperledger.fabric.shim.ChaincodeStub
-
Performs a "rich" query against a state database.
- getQueryResultWithPagination(String, int, String) - Method in interface org.hyperledger.fabric.shim.ChaincodeStub
-
Performs a "rich" query against a state database.
- getSignedProposal() - Method in interface org.hyperledger.fabric.shim.ChaincodeStub
-
Returns the signed transaction proposal currently being executed.
- getState(String) - Method in interface org.hyperledger.fabric.shim.ChaincodeStub
-
Returns the value of the specified key
from the ledger.
- getStateByPartialCompositeKey(String) - Method in interface org.hyperledger.fabric.shim.ChaincodeStub
-
Returns all existing keys, and their values, that are prefixed by the
specified partial
CompositeKey
.
- getStateByPartialCompositeKey(String, String...) - Method in interface org.hyperledger.fabric.shim.ChaincodeStub
-
Returns all existing keys, and their values, that are prefixed by the
specified partial
CompositeKey
.
- getStateByPartialCompositeKey(CompositeKey) - Method in interface org.hyperledger.fabric.shim.ChaincodeStub
-
Returns all existing keys, and their values, that are prefixed by the
specified partial
CompositeKey
.
- getStateByPartialCompositeKeyWithPagination(CompositeKey, int, String) - Method in interface org.hyperledger.fabric.shim.ChaincodeStub
-
Queries the state in the ledger based on a given partial composite key.
- getStateByRange(String, String) - Method in interface org.hyperledger.fabric.shim.ChaincodeStub
-
Returns all existing keys, and their values, that are lexicographically
between startkey
(inclusive) and the endKey
(exclusive).
- getStateByRangeWithPagination(String, String, int, String) - Method in interface org.hyperledger.fabric.shim.ChaincodeStub
-
Returns a range iterator over a set of keys in the ledger.
- getStateValidationParameter(String) - Method in interface org.hyperledger.fabric.shim.ChaincodeStub
-
retrieves the key-level endorsement policy for key
.
- getStatus() - Method in class org.hyperledger.fabric.shim.Chaincode.Response
-
- getStatusCode() - Method in class org.hyperledger.fabric.shim.Chaincode.Response
-
- getStringArgs() - Method in interface org.hyperledger.fabric.shim.ChaincodeStub
-
- getStringPayload() - Method in class org.hyperledger.fabric.shim.Chaincode.Response
-
- getStringState(String) - Method in interface org.hyperledger.fabric.shim.ChaincodeStub
-
Returns the byte array value specified by the key and decoded as a UTF-8
encoded string, from the ledger.
- getStringValue() - Method in interface org.hyperledger.fabric.shim.ledger.KeyModification
-
- getStringValue() - Method in interface org.hyperledger.fabric.shim.ledger.KeyValue
-
Returns the state value, decoded as a UTF-8 string.
- getStub() - Method in class org.hyperledger.fabric.contract.Context
-
- getTimestamp() - Method in interface org.hyperledger.fabric.shim.ledger.KeyModification
-
Returns the timestamp of the key modification entry.
- getTransient() - Method in interface org.hyperledger.fabric.shim.ChaincodeStub
-
Returns the transient map associated with the current transaction.
- getTxId() - Method in interface org.hyperledger.fabric.shim.ChaincodeStub
-
Returns the transaction id for the current chaincode invocation request.
- getTxId() - Method in interface org.hyperledger.fabric.shim.ledger.KeyModification
-
Returns the transaction id.
- getTxTimestamp() - Method in interface org.hyperledger.fabric.shim.ChaincodeStub
-
Returns the timestamp when the transaction was created.
- getVal() - Method in enum org.hyperledger.fabric.shim.ext.sbe.StateBasedEndorsement.RoleType
-
- getValue() - Method in interface org.hyperledger.fabric.shim.ledger.KeyModification
-
- getValue() - Method in interface org.hyperledger.fabric.shim.ledger.KeyValue
-
Returns the state value.
- getX509Certificate() - Method in class org.hyperledger.fabric.contract.ClientIdentity
-
getX509Certificate returns the X509 certificate associated with the invoking
identity, or null if it was not identified by an X509 certificate, for
instance if the MSP is implemented with an alternative to PKI such as
[Identity Mixer](https://jira.hyperledger.org/browse/FAB-5673).
- validateSimpleKeys(String...) - Static method in class org.hyperledger.fabric.shim.ledger.CompositeKey
-
To ensure that simple keys do not go into composite key namespace, we
validate simple key to check whether the key starts with 0x00 (which is the
namespace for compositeKey).
- valueOf(String) - Static method in enum org.hyperledger.fabric.contract.annotation.Serializer.TARGET
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.hyperledger.fabric.contract.annotation.Transaction.TYPE
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.hyperledger.fabric.shim.Chaincode.Response.Status
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.hyperledger.fabric.shim.ext.sbe.StateBasedEndorsement.RoleType
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum org.hyperledger.fabric.contract.annotation.Serializer.TARGET
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum org.hyperledger.fabric.contract.annotation.Transaction.TYPE
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum org.hyperledger.fabric.shim.Chaincode.Response.Status
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum org.hyperledger.fabric.shim.ext.sbe.StateBasedEndorsement.RoleType
-
Returns an array containing the constants of this enum type, in
the order they are declared.