Package org.fisco.bcos.sdk.client
Class ClientImpl
java.lang.Object
org.fisco.bcos.sdk.client.ClientImpl
- All Implemented Interfaces:
Client
public class ClientImpl extends java.lang.Object implements Client
-
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description protectedClientImpl(Channel channel)protectedClientImpl(GroupManagerService groupManagerService, Channel channel, java.lang.Integer groupId, CryptoSuite cryptoSuite, NodeVersion nodeVersion, EventResource eventResource) -
Method Summary
Modifier and Type Method Description Callcall(Transaction transaction)Ledger operation: call contract functions without sending transactionvoidcallAsync(Transaction transaction, RespCallback<Call> callback)Ledger operation: async call contract functions without sending transactionGenerateGroupgenerateGroup(java.lang.Integer groupId, long timestamp, boolean enableFreeStorage, java.util.List<java.lang.String> nodeList, java.lang.String peerIpPort)Group operation: generate a new groupvoidgenerateGroupAsync(java.lang.Integer groupId, long timestamp, boolean enableFreeStorage, java.util.List<java.lang.String> nodeList, java.lang.String peerIpPort, RespCallback<GenerateGroup> callback)Group operation: async generate a new groupBcosTransactionReceiptsDecodergetBatchReceiptsByBlockHashAndRange(java.lang.String blockHash, java.lang.String from, java.lang.String count)get receipt list according to the block hash and the given rangeBcosTransactionReceiptsDecodergetBatchReceiptsByBlockNumberAndRange(java.math.BigInteger blockNumber, java.lang.String from, java.lang.String count)get receipt list according to the block number and the given rangeBcosBlockgetBlockByHash(java.lang.String blockHash, boolean returnFullTransactionObjects)Ledger operation: get block by hashvoidgetBlockByHashAsync(java.lang.String blockHash, boolean returnFullTransactionObjects, RespCallback<BcosBlock> callback)Ledger operation: async get block by hashBcosBlockgetBlockByNumber(java.math.BigInteger blockNumber, boolean returnFullTransactionObjects)Ledger operation: get block by block numbervoidgetBlockByNumberAsync(java.math.BigInteger blockNumber, boolean returnFullTransactionObjects, RespCallback<BcosBlock> callback)Ledger operation: async get block by block numberBlockHashgetBlockHashByNumber(java.math.BigInteger blockNumber)Ledger operation: get block hash by block numbervoidgetBlockHashByNumberAsync(java.math.BigInteger blockNumber, RespCallback<BlockHash> callback)Ledger operation: async get block hash by block numberBcosBlockHeadergetBlockHeaderByHash(java.lang.String blockHash, boolean returnSignatureList)Ledger operation: get block header by block hashvoidgetBlockHeaderByHashAsync(java.lang.String blockHash, boolean returnSignatureList, RespCallback<BcosBlockHeader> callback)Ledger operation: async get block header by block hashBcosBlockHeadergetBlockHeaderByNumber(java.math.BigInteger blockNumber, boolean returnSignatureList)get block header by numbervoidgetBlockHeaderByNumberAsync(java.math.BigInteger blockNumber, boolean returnSignatureList, RespCallback<BcosBlockHeader> callback)java.math.BigIntegergetBlockLimit()Get cached block heightBlockNumbergetBlockNumber()Ledger operation: get block numberBlockNumbergetBlockNumber(java.lang.Integer groupId, java.lang.String peerIpAndPort)voidgetBlockNumberAsync(RespCallback<BlockNumber> callback)Ledger operation: async get block numberNodeVersiongetClientNodeVersion()CodegetCode(java.lang.String address)Ledger operation: get codevoidgetCodeAsync(java.lang.String address, RespCallback<Code> callback)Ledger operation: async get codevoidgetConsensusStates(RespCallback<ConsensusStatus> callback)Peer operation: async get consensus statusConsensusStatusgetConsensusStatus()Peer operation: get consensus statusCryptoSuitegetCryptoSuite()java.lang.IntegergetCryptoType()EventResourcegetEventResource()Get EventPushMsgHandler and FilterManager.java.lang.IntegergetGroupId()get groupId of the clientGroupListgetGroupList()Group operation: get peer group listGroupListgetGroupList(java.lang.String peerIpPort)Group operation: get peer group listvoidgetGroupListAsync(java.lang.String peerIpPort, RespCallback<GroupList> callback)Group operation: async get peer group listvoidgetGroupListAsync(RespCallback<GroupList> callback)Group operation: async get peer group listGroupManagerServicegetGroupManagerService()GroupPeersgetGroupPeers()Group operation: get group peersGroupPeersgetGroupPeers(java.lang.String peerIpPort)Group operation: get group peersvoidgetGroupPeersAsync(java.lang.String peerIpPort, RespCallback<GroupPeers> callback)Group operation: async get group peersvoidgetGroupPeersAsync(RespCallback<GroupPeers> callback)Group operation: async get group peersNodeIDListgetNodeIDList()Peer operation: get node idsNodeIDListgetNodeIDList(java.lang.String endpoint)voidgetNodeIDListAsync(RespCallback<NodeIDList> callback)Peer operation: async get node idsNodeInfogetNodeInfo(java.lang.String endpoint)Peer operation: get node informationvoidgetNodeInfoAsync(java.lang.String endpoint, RespCallback<NodeInfo> callback)Peer operation: get node informationNodeVersiongetNodeVersion()Peer operation: get node versionNodeVersiongetNodeVersion(java.lang.String ipAndPort)voidgetNodeVersion(RespCallback<NodeVersion> callback)Peer operation: get node versionObserverListgetObserverList()Peer operation: get observer node listvoidgetObserverList(RespCallback<ObserverList> callback)Peer operation: async get observer node listPbftViewgetPbftView()Peer operation: get pbft viewvoidgetPbftViewAsync(RespCallback<PbftView> callback)Peer operation: async get pbft viewPeersgetPeers()Peer operation: get connected peersPeersgetPeers(java.lang.String endpoint)Peer operation: get connected peersvoidgetPeersAsync(RespCallback<Peers> callback)Peer operation: async get connected peersPendingTransactionsgetPendingTransaction()Ledger operation: get pending transactions in transaction poolvoidgetPendingTransactionAsync(RespCallback<PendingTransactions> callback)Ledger operation: async get pending transactions in transaction poolPendingTxSizegetPendingTxSize()Ledger operation: get pending transaction sizevoidgetPendingTxSizeAsync(RespCallback<PendingTxSize> callback)Ledger operation: async get pending transaction sizeSealerListgetSealerList()Peer operation: get sealer node listvoidgetSealerListAsync(RespCallback<SealerList> callback)Peer operation: async get sealer node listSyncStatusgetSyncStatus()Peer operation: get sync statusvoidgetSyncStatus(RespCallback<SyncStatus> callback)Peer operation: async get sync statusSystemConfiggetSystemConfigByKey(java.lang.String key)Peer operation: get system configSystemConfiggetSystemConfigByKey(java.lang.String key, java.lang.String peerIpPort)Peer operation: get system configvoidgetSystemConfigByKeyAsync(java.lang.String key, java.lang.String peerIpPort, RespCallback<SystemConfig> callback)Peer operation: async get system configvoidgetSystemConfigByKeyAsync(java.lang.String key, RespCallback<SystemConfig> callback)Peer operation: async get system configTotalTransactionCountgetTotalTransactionCount()Ledger operation: get total transaction countvoidgetTotalTransactionCountAsync(RespCallback<TotalTransactionCount> callback)Ledger operation: async get total transaction countBcosTransactiongetTransactionByBlockHashAndIndex(java.lang.String blockHash, java.math.BigInteger transactionIndex)voidgetTransactionByBlockHashAndIndexAsync(java.lang.String blockHash, java.math.BigInteger transactionIndex, RespCallback<BcosTransaction> callback)BcosTransactiongetTransactionByBlockNumberAndIndex(java.math.BigInteger blockNumber, java.math.BigInteger transactionIndex)Ledger operation: get transaction by block number and indexvoidgetTransactionByBlockNumberAndIndexAsync(java.math.BigInteger blockNumber, java.math.BigInteger transactionIndex, RespCallback<BcosTransaction> callback)Ledger operation: async get transaction by block number and indexBcosTransactiongetTransactionByHash(java.lang.String transactionHash)Ledger operation: get trnasaction by hashvoidgetTransactionByHashAsync(java.lang.String transactionHash, RespCallback<BcosTransaction> callback)Ledger operation: async get trnasaction by hashTransactionWithProofgetTransactionByHashWithProof(java.lang.String transactionHash)Ledger operation: get transaction and proof by hashvoidgetTransactionByHashWithProofAsync(java.lang.String transactionHash, RespCallback<TransactionWithProof> callback)Ledger operation: async get transaction and proof by hashBcosTransactionReceiptgetTransactionReceipt(java.lang.String transactionHash)Ledger operation: get transaction receipt by transaction hashvoidgetTransactionReceiptAsync(java.lang.String transactionHash, RespCallback<BcosTransactionReceipt> callback)Ledger operation: async get transaction receipt by transaction hashTransactionReceiptWithProofgetTransactionReceiptByHashWithProof(java.lang.String transactionHash)Ledger operation: get transaction receipt and proof by transaction hashvoidgetTransactionReceiptByHashWithProofAsync(java.lang.String transactionHash, RespCallback<TransactionReceiptWithProof> callback)Ledger operation: async get transaction receipt and proof by transaction hashQueryGroupStatusqueryGroupStatus(java.lang.Integer groupId)Group operation: query group statusQueryGroupStatusqueryGroupStatus(java.lang.Integer groupId, java.lang.String peerIpPort)Group operation: query group statusvoidqueryGroupStatusAsync(java.lang.Integer groupId, java.lang.String peerIpPort, RespCallback<QueryGroupStatus> callback)Group operation: async query group statusvoidqueryGroupStatusAsync(java.lang.Integer groupId, RespCallback<QueryGroupStatus> callback)Group operation: async query group statusRecoverGrouprecoverGroup(java.lang.Integer groupId, java.lang.String peerIpPort)Group operation: recover a groupvoidrecoverGroupAsync(java.lang.Integer groupId, java.lang.String peerIpPort, RespCallback<RecoverGroup> callback)Group operation: async recover a groupRemoveGroupremoveGroup(java.lang.Integer groupId, java.lang.String peerIpPort)Group operation: remove a groupvoidremoveGroupAsync(java.lang.Integer groupId, java.lang.String peerIpPort, RespCallback<RemoveGroup> callback)Group operation: async remove a groupSendTransactionsendRawTransaction(java.lang.String signedTransactionData)Ledger operation: send transactionSendTransactionsendRawTransactionAndGetProof(java.lang.String signedTransactionData)Ledger operation: send raw transaction and get proofvoidsendRawTransactionAndGetProofAsync(java.lang.String signedTransactionData, RespCallback<SendTransaction> callback)Ledger operation: async send transaction and get proofTransactionReceiptsendRawTransactionAndGetReceipt(java.lang.String signedTransactionData)send transaction and get the receipt as the responsevoidsendRawTransactionAndGetReceiptAsync(java.lang.String signedTransactionData, TransactionCallback callback)send transaction to the node, and calls TransactionCallback when get the transaction receipt responseTransactionReceiptsendRawTransactionAndGetReceiptWithProof(java.lang.String signedTransactionData)calls sendRawTransactionAndGetProof interface and get the transaction receiptvoidsendRawTransactionAndGetReceiptWithProofAsync(java.lang.String signedTransactionData, TransactionCallback callback)calls sendRawTransactionAndGetProof interface, calls TransactionCallback when get the transaction receiptvoidsendRawTransactionAsync(java.lang.String signedTransactionData, RespCallback<SendTransaction> callback)Ledger operation: async send transactionStartGroupstartGroup(java.lang.Integer groupId, java.lang.String peerIpPort)Group operation: start a groupvoidstartGroupAsync(java.lang.Integer groupId, java.lang.String peerIpPort, RespCallback<StartGroup> callback)Group operation: async start a groupvoidstop()StopGroupstopGroup(java.lang.Integer groupId, java.lang.String peerIpPort)Group operation: stop a groupvoidstopGroupAsync(java.lang.Integer groupId, java.lang.String peerIpPort, RespCallback<StopGroup> callback)Group operation: async stop a group
-
Constructor Details
-
ClientImpl
protected ClientImpl(GroupManagerService groupManagerService, Channel channel, java.lang.Integer groupId, CryptoSuite cryptoSuite, NodeVersion nodeVersion, EventResource eventResource) -
ClientImpl
-
-
Method Details
-
getGroupManagerService
- Specified by:
getGroupManagerServicein interfaceClient
-
getCryptoSuite
- Specified by:
getCryptoSuitein interfaceClient
-
getClientNodeVersion
- Specified by:
getClientNodeVersionin interfaceClient
-
getCryptoType
public java.lang.Integer getCryptoType()- Specified by:
getCryptoTypein interfaceClient
-
getGroupId
public java.lang.Integer getGroupId()Description copied from interface:Clientget groupId of the client- Specified by:
getGroupIdin interfaceClient- Returns:
- the groupId
-
sendRawTransaction
Description copied from interface:ClientLedger operation: send transaction- Specified by:
sendRawTransactionin interfaceClient- Parameters:
signedTransactionData- transaction string- Returns:
- SendTransaction
-
sendRawTransactionAsync
public void sendRawTransactionAsync(java.lang.String signedTransactionData, RespCallback<SendTransaction> callback)Description copied from interface:ClientLedger operation: async send transaction- Specified by:
sendRawTransactionAsyncin interfaceClient- Parameters:
signedTransactionData- transaction stringcallback- the callback that will be called when receive the response
-
call
Description copied from interface:ClientLedger operation: call contract functions without sending transaction -
callAsync
Description copied from interface:ClientLedger operation: async call contract functions without sending transaction -
sendRawTransactionAndGetProof
Description copied from interface:ClientLedger operation: send raw transaction and get proof- Specified by:
sendRawTransactionAndGetProofin interfaceClient- Parameters:
signedTransactionData- transaction string- Returns:
- a SendTransaction instance
-
sendRawTransactionAndGetProofAsync
public void sendRawTransactionAndGetProofAsync(java.lang.String signedTransactionData, RespCallback<SendTransaction> callback)Description copied from interface:ClientLedger operation: async send transaction and get proof- Specified by:
sendRawTransactionAndGetProofAsyncin interfaceClient- Parameters:
signedTransactionData- transaction stringcallback- the callback that will be called when receive the response
-
getBlockNumber
Description copied from interface:ClientLedger operation: get block number- Specified by:
getBlockNumberin interfaceClient- Returns:
- block number
-
getBlockNumber
- Specified by:
getBlockNumberin interfaceClient
-
getBlockNumberAsync
Description copied from interface:ClientLedger operation: async get block number- Specified by:
getBlockNumberAsyncin interfaceClient- Parameters:
callback- the callback that will be called when receive the response
-
getCode
Description copied from interface:ClientLedger operation: get code -
getCodeAsync
Description copied from interface:ClientLedger operation: async get code- Specified by:
getCodeAsyncin interfaceClient- Parameters:
address- the address stringcallback- the callback that will be called when receive the response
-
getTotalTransactionCount
Description copied from interface:ClientLedger operation: get total transaction count- Specified by:
getTotalTransactionCountin interfaceClient- Returns:
- TotalTransactionCount
-
getTotalTransactionCountAsync
Description copied from interface:ClientLedger operation: async get total transaction count- Specified by:
getTotalTransactionCountAsyncin interfaceClient- Parameters:
callback- the callback that will be called when receive the response
-
getBlockByHash
Description copied from interface:ClientLedger operation: get block by hash- Specified by:
getBlockByHashin interfaceClient- Parameters:
blockHash- the hashcode of the blockreturnFullTransactionObjects- the boolean define the tx is full or not- Returns:
- a block
-
getBlockByHashAsync
public void getBlockByHashAsync(java.lang.String blockHash, boolean returnFullTransactionObjects, RespCallback<BcosBlock> callback)Description copied from interface:ClientLedger operation: async get block by hash- Specified by:
getBlockByHashAsyncin interfaceClient- Parameters:
blockHash- the hashcode of the blockreturnFullTransactionObjects- the boolean define the tx is full or notcallback- the callback that will be called when receive the response
-
getBlockByNumber
public BcosBlock getBlockByNumber(java.math.BigInteger blockNumber, boolean returnFullTransactionObjects)Description copied from interface:ClientLedger operation: get block by block number- Specified by:
getBlockByNumberin interfaceClient- Parameters:
blockNumber- the number of the blockreturnFullTransactionObjects- the boolean define the tx is full or not- Returns:
- block
-
getBlockByNumberAsync
public void getBlockByNumberAsync(java.math.BigInteger blockNumber, boolean returnFullTransactionObjects, RespCallback<BcosBlock> callback)Description copied from interface:ClientLedger operation: async get block by block number- Specified by:
getBlockByNumberAsyncin interfaceClient- Parameters:
blockNumber- the number of the blockreturnFullTransactionObjects- the boolean define the tx is full or notcallback- the callback that will be called when receive the response
-
getBlockHashByNumber
Description copied from interface:ClientLedger operation: get block hash by block number- Specified by:
getBlockHashByNumberin interfaceClient- Parameters:
blockNumber- the number of the block- Returns:
- block hash
-
getBlockHashByNumberAsync
public void getBlockHashByNumberAsync(java.math.BigInteger blockNumber, RespCallback<BlockHash> callback)Description copied from interface:ClientLedger operation: async get block hash by block number- Specified by:
getBlockHashByNumberAsyncin interfaceClient- Parameters:
blockNumber- the number of the blockcallback- the callback that will be called when receive the response
-
getBlockHeaderByHash
public BcosBlockHeader getBlockHeaderByHash(java.lang.String blockHash, boolean returnSignatureList)Description copied from interface:ClientLedger operation: get block header by block hash- Specified by:
getBlockHeaderByHashin interfaceClient- Parameters:
blockHash- the hashcode of the blockreturnSignatureList- the boolean define the signature list is returned or not- Returns:
- block header
-
getBlockHeaderByHashAsync
public void getBlockHeaderByHashAsync(java.lang.String blockHash, boolean returnSignatureList, RespCallback<BcosBlockHeader> callback)Description copied from interface:ClientLedger operation: async get block header by block hash- Specified by:
getBlockHeaderByHashAsyncin interfaceClient- Parameters:
blockHash- the hashcode of the blockreturnSignatureList- the boolean define the signature list is returned or notcallback- the call back instance
-
getBlockHeaderByNumber
public BcosBlockHeader getBlockHeaderByNumber(java.math.BigInteger blockNumber, boolean returnSignatureList)Description copied from interface:Clientget block header by number- Specified by:
getBlockHeaderByNumberin interfaceClient- Parameters:
blockNumber- the number of the blockreturnSignatureList- the boolean define the signature list is returned or not- Returns:
- the block header response from the blockchain node
-
getBlockHeaderByNumberAsync
public void getBlockHeaderByNumberAsync(java.math.BigInteger blockNumber, boolean returnSignatureList, RespCallback<BcosBlockHeader> callback)- Specified by:
getBlockHeaderByNumberAsyncin interfaceClient
-
getTransactionByHash
Description copied from interface:ClientLedger operation: get trnasaction by hash- Specified by:
getTransactionByHashin interfaceClient- Parameters:
transactionHash- the hashcode of transaction- Returns:
- transaction
-
getTransactionByHashAsync
public void getTransactionByHashAsync(java.lang.String transactionHash, RespCallback<BcosTransaction> callback)Description copied from interface:ClientLedger operation: async get trnasaction by hash- Specified by:
getTransactionByHashAsyncin interfaceClient- Parameters:
transactionHash- the hashcode of transactioncallback- the callback that will be called when receive the response
-
getTransactionByHashWithProof
Description copied from interface:ClientLedger operation: get transaction and proof by hash- Specified by:
getTransactionByHashWithProofin interfaceClient- Parameters:
transactionHash- the hashcode of transaction- Returns:
- transaction with proof
-
getTransactionByHashWithProofAsync
public void getTransactionByHashWithProofAsync(java.lang.String transactionHash, RespCallback<TransactionWithProof> callback)Description copied from interface:ClientLedger operation: async get transaction and proof by hash- Specified by:
getTransactionByHashWithProofAsyncin interfaceClient- Parameters:
transactionHash- the hashcode of transactioncallback- the callback that will be called when receive the response
-
getTransactionByBlockNumberAndIndex
public BcosTransaction getTransactionByBlockNumberAndIndex(java.math.BigInteger blockNumber, java.math.BigInteger transactionIndex)Description copied from interface:ClientLedger operation: get transaction by block number and index- Specified by:
getTransactionByBlockNumberAndIndexin interfaceClient- Parameters:
blockNumber- the number of blocktransactionIndex- the index of transaction- Returns:
- transaction
-
getTransactionByBlockNumberAndIndexAsync
public void getTransactionByBlockNumberAndIndexAsync(java.math.BigInteger blockNumber, java.math.BigInteger transactionIndex, RespCallback<BcosTransaction> callback)Description copied from interface:ClientLedger operation: async get transaction by block number and index- Specified by:
getTransactionByBlockNumberAndIndexAsyncin interfaceClient- Parameters:
blockNumber- the number of blocktransactionIndex- the index of transactioncallback- the callback that will be called when receive the response
-
getTransactionByBlockHashAndIndex
public BcosTransaction getTransactionByBlockHashAndIndex(java.lang.String blockHash, java.math.BigInteger transactionIndex)- Specified by:
getTransactionByBlockHashAndIndexin interfaceClient
-
getTransactionByBlockHashAndIndexAsync
public void getTransactionByBlockHashAndIndexAsync(java.lang.String blockHash, java.math.BigInteger transactionIndex, RespCallback<BcosTransaction> callback)- Specified by:
getTransactionByBlockHashAndIndexAsyncin interfaceClient
-
getTransactionReceipt
Description copied from interface:ClientLedger operation: get transaction receipt by transaction hash- Specified by:
getTransactionReceiptin interfaceClient- Parameters:
transactionHash- the hashcode of transaction- Returns:
- transaction receipt
-
getTransactionReceiptAsync
public void getTransactionReceiptAsync(java.lang.String transactionHash, RespCallback<BcosTransactionReceipt> callback)Description copied from interface:ClientLedger operation: async get transaction receipt by transaction hash- Specified by:
getTransactionReceiptAsyncin interfaceClient- Parameters:
transactionHash- the hashcode of transactioncallback- the callback that will be called when receive the response
-
getTransactionReceiptByHashWithProof
public TransactionReceiptWithProof getTransactionReceiptByHashWithProof(java.lang.String transactionHash)Description copied from interface:ClientLedger operation: get transaction receipt and proof by transaction hash- Specified by:
getTransactionReceiptByHashWithProofin interfaceClient- Parameters:
transactionHash- the hashcode of transaction- Returns:
- receipt and proof
-
getTransactionReceiptByHashWithProofAsync
public void getTransactionReceiptByHashWithProofAsync(java.lang.String transactionHash, RespCallback<TransactionReceiptWithProof> callback)Description copied from interface:ClientLedger operation: async get transaction receipt and proof by transaction hash- Specified by:
getTransactionReceiptByHashWithProofAsyncin interfaceClient- Parameters:
transactionHash- the hashcode of transactioncallback- the callback that will be called when receive the response
-
getPendingTransaction
Description copied from interface:ClientLedger operation: get pending transactions in transaction pool- Specified by:
getPendingTransactionin interfaceClient- Returns:
- pending transactions
-
getPendingTransactionAsync
Description copied from interface:ClientLedger operation: async get pending transactions in transaction pool- Specified by:
getPendingTransactionAsyncin interfaceClient- Parameters:
callback- the callback that will be called when receive the response
-
getPendingTxSize
Description copied from interface:ClientLedger operation: get pending transaction size- Specified by:
getPendingTxSizein interfaceClient- Returns:
- PendingTxSize
-
getPendingTxSizeAsync
Description copied from interface:ClientLedger operation: async get pending transaction size- Specified by:
getPendingTxSizeAsyncin interfaceClient- Parameters:
callback- the callback that will be called when receive the response
-
getBlockLimit
public java.math.BigInteger getBlockLimit()Description copied from interface:ClientGet cached block height- Specified by:
getBlockLimitin interfaceClient- Returns:
- block number
-
generateGroup
public GenerateGroup generateGroup(java.lang.Integer groupId, long timestamp, boolean enableFreeStorage, java.util.List<java.lang.String> nodeList, java.lang.String peerIpPort)Description copied from interface:ClientGroup operation: generate a new group- Specified by:
generateGroupin interfaceClient- Parameters:
groupId- the group idtimestamp- timestampenableFreeStorage- enable free storagenodeList- give the ip string list of the nodes in the grouppeerIpPort- send to the specific peer- Returns:
- generate group reply message
-
generateGroupAsync
public void generateGroupAsync(java.lang.Integer groupId, long timestamp, boolean enableFreeStorage, java.util.List<java.lang.String> nodeList, java.lang.String peerIpPort, RespCallback<GenerateGroup> callback)Description copied from interface:ClientGroup operation: async generate a new group- Specified by:
generateGroupAsyncin interfaceClient- Parameters:
groupId- the group idtimestamp- timestampenableFreeStorage- enable free storagenodeList- the list of the nodes in the grouppeerIpPort- send to the specific peercallback- the callback that will be called when receive the response
-
startGroup
Description copied from interface:ClientGroup operation: start a group- Specified by:
startGroupin interfaceClient- Parameters:
groupId- the group idpeerIpPort- the node that the request sent to- Returns:
- start group rpc reply
-
startGroupAsync
public void startGroupAsync(java.lang.Integer groupId, java.lang.String peerIpPort, RespCallback<StartGroup> callback)Description copied from interface:ClientGroup operation: async start a group- Specified by:
startGroupAsyncin interfaceClient- Parameters:
groupId- the group idpeerIpPort- the node that the request sent tocallback- the callback that will be called when receive the response
-
stopGroup
Description copied from interface:ClientGroup operation: stop a group -
stopGroupAsync
public void stopGroupAsync(java.lang.Integer groupId, java.lang.String peerIpPort, RespCallback<StopGroup> callback)Description copied from interface:ClientGroup operation: async stop a group- Specified by:
stopGroupAsyncin interfaceClient- Parameters:
groupId- the group idpeerIpPort- the node that the request sent tocallback- the callback that will be called when receive the response
-
removeGroup
Description copied from interface:ClientGroup operation: remove a group- Specified by:
removeGroupin interfaceClient- Parameters:
groupId- the group idpeerIpPort- the node that the request sent to- Returns:
- remove group rpc reply
-
removeGroupAsync
public void removeGroupAsync(java.lang.Integer groupId, java.lang.String peerIpPort, RespCallback<RemoveGroup> callback)Description copied from interface:ClientGroup operation: async remove a group- Specified by:
removeGroupAsyncin interfaceClient- Parameters:
groupId- the group idpeerIpPort- the node that the request sent tocallback- the callback that will be called when receive the response
-
recoverGroup
Description copied from interface:ClientGroup operation: recover a group- Specified by:
recoverGroupin interfaceClient- Parameters:
groupId- the group idpeerIpPort- the node that the request sent to- Returns:
- recover group rpc reply
-
recoverGroupAsync
public void recoverGroupAsync(java.lang.Integer groupId, java.lang.String peerIpPort, RespCallback<RecoverGroup> callback)Description copied from interface:ClientGroup operation: async recover a group- Specified by:
recoverGroupAsyncin interfaceClient- Parameters:
groupId- the group idpeerIpPort- the node that the request sent tocallback- the callback that will be called when receive the response
-
queryGroupStatus
Description copied from interface:ClientGroup operation: query group status- Specified by:
queryGroupStatusin interfaceClient- Parameters:
groupId- the group id- Returns:
- group status
-
queryGroupStatus
Description copied from interface:ClientGroup operation: query group status- Specified by:
queryGroupStatusin interfaceClient- Parameters:
groupId- the group idpeerIpPort- the node that the request sent to- Returns:
- group status
-
queryGroupStatusAsync
public void queryGroupStatusAsync(java.lang.Integer groupId, RespCallback<QueryGroupStatus> callback)Description copied from interface:ClientGroup operation: async query group status- Specified by:
queryGroupStatusAsyncin interfaceClient- Parameters:
groupId- the group idcallback- the callback that will be called when receive the response
-
queryGroupStatusAsync
public void queryGroupStatusAsync(java.lang.Integer groupId, java.lang.String peerIpPort, RespCallback<QueryGroupStatus> callback)Description copied from interface:ClientGroup operation: async query group status- Specified by:
queryGroupStatusAsyncin interfaceClient- Parameters:
groupId- the group that the request sent topeerIpPort- the node that the request sent tocallback- the callback that will be called when receive the response
-
getGroupList
Description copied from interface:ClientGroup operation: get peer group list- Specified by:
getGroupListin interfaceClient- Returns:
- group list
-
getGroupList
Description copied from interface:ClientGroup operation: get peer group list- Specified by:
getGroupListin interfaceClient- Parameters:
peerIpPort- send to the specific peer- Returns:
- group list
-
getGroupListAsync
Description copied from interface:ClientGroup operation: async get peer group list- Specified by:
getGroupListAsyncin interfaceClient- Parameters:
callback- the callback that will be called when receive the response
-
getGroupListAsync
Description copied from interface:ClientGroup operation: async get peer group list- Specified by:
getGroupListAsyncin interfaceClient- Parameters:
peerIpPort- send to the specific peercallback- the callback that will be called when receive the response
-
getGroupPeers
Description copied from interface:ClientGroup operation: get group peers- Specified by:
getGroupPeersin interfaceClient- Returns:
- group peers
-
getGroupPeers
Description copied from interface:ClientGroup operation: get group peers- Specified by:
getGroupPeersin interfaceClient- Parameters:
peerIpPort- the target node of the request- Returns:
- group peers
-
getGroupPeersAsync
Description copied from interface:ClientGroup operation: async get group peers- Specified by:
getGroupPeersAsyncin interfaceClient- Parameters:
callback- the callback that will be called when receive the response
-
getGroupPeersAsync
Description copied from interface:ClientGroup operation: async get group peers- Specified by:
getGroupPeersAsyncin interfaceClient- Parameters:
peerIpPort- the target node of the requestcallback- the callback that will be called when receive the response
-
getPeers
Description copied from interface:ClientPeer operation: get connected peers -
getPeers
Description copied from interface:ClientPeer operation: get connected peers -
getPeersAsync
Description copied from interface:ClientPeer operation: async get connected peers- Specified by:
getPeersAsyncin interfaceClient- Parameters:
callback- the callback instance
-
getNodeInfo
Description copied from interface:ClientPeer operation: get node information- Specified by:
getNodeInfoin interfaceClient- Parameters:
endpoint- the target node that receive the request- Returns:
- node information
-
getNodeInfoAsync
Description copied from interface:ClientPeer operation: get node information- Specified by:
getNodeInfoAsyncin interfaceClient- Parameters:
endpoint- the target node that receive the requestcallback- callback the call back instance
-
getNodeIDList
Description copied from interface:ClientPeer operation: get node ids- Specified by:
getNodeIDListin interfaceClient- Returns:
- node id list
-
getNodeIDList
- Specified by:
getNodeIDListin interfaceClient
-
getNodeIDListAsync
Description copied from interface:ClientPeer operation: async get node ids- Specified by:
getNodeIDListAsyncin interfaceClient- Parameters:
callback- the callback instance
-
getObserverList
Description copied from interface:ClientPeer operation: get observer node list- Specified by:
getObserverListin interfaceClient- Returns:
- observer node list
-
getObserverList
Description copied from interface:ClientPeer operation: async get observer node list- Specified by:
getObserverListin interfaceClient- Parameters:
callback- the callback instance
-
getSealerList
Description copied from interface:ClientPeer operation: get sealer node list- Specified by:
getSealerListin interfaceClient- Returns:
- sealer node list
-
getSealerListAsync
Description copied from interface:ClientPeer operation: async get sealer node list- Specified by:
getSealerListAsyncin interfaceClient- Parameters:
callback- the callback instance
-
getPbftView
Description copied from interface:ClientPeer operation: get pbft view- Specified by:
getPbftViewin interfaceClient- Returns:
- pbft view
-
getPbftViewAsync
Description copied from interface:ClientPeer operation: async get pbft view- Specified by:
getPbftViewAsyncin interfaceClient- Parameters:
callback- the callback instance
-
getNodeVersion
Description copied from interface:ClientPeer operation: get node version- Specified by:
getNodeVersionin interfaceClient- Returns:
- node version
-
getNodeVersion
- Specified by:
getNodeVersionin interfaceClient
-
getNodeVersion
Description copied from interface:ClientPeer operation: get node version- Specified by:
getNodeVersionin interfaceClient- Parameters:
callback- the callback instance
-
getConsensusStatus
Description copied from interface:ClientPeer operation: get consensus status- Specified by:
getConsensusStatusin interfaceClient- Returns:
- consensus status
-
getConsensusStates
Description copied from interface:ClientPeer operation: async get consensus status- Specified by:
getConsensusStatesin interfaceClient- Parameters:
callback- the callback instance
-
getSystemConfigByKey
Description copied from interface:ClientPeer operation: get system config- Specified by:
getSystemConfigByKeyin interfaceClient- Parameters:
key- the string of key- Returns:
- system config
-
getSystemConfigByKey
Description copied from interface:ClientPeer operation: get system config- Specified by:
getSystemConfigByKeyin interfaceClient- Parameters:
key- the string of keypeerIpPort- the node that the request sent to- Returns:
- system config
-
getSystemConfigByKeyAsync
Description copied from interface:ClientPeer operation: async get system config- Specified by:
getSystemConfigByKeyAsyncin interfaceClient- Parameters:
key- the string of keycallback- the callback instance
-
getSystemConfigByKeyAsync
public void getSystemConfigByKeyAsync(java.lang.String key, java.lang.String peerIpPort, RespCallback<SystemConfig> callback)Description copied from interface:ClientPeer operation: async get system config- Specified by:
getSystemConfigByKeyAsyncin interfaceClient- Parameters:
key- the string of keypeerIpPort- the port string ofcallback- the callback instance
-
getSyncStatus
Description copied from interface:ClientPeer operation: get sync status- Specified by:
getSyncStatusin interfaceClient- Returns:
- sync status
-
getSyncStatus
Description copied from interface:ClientPeer operation: async get sync status- Specified by:
getSyncStatusin interfaceClient- Parameters:
callback- the callback instance
-
sendRawTransactionAndGetReceipt
Description copied from interface:Clientsend transaction and get the receipt as the response- Specified by:
sendRawTransactionAndGetReceiptin interfaceClient- Parameters:
signedTransactionData- the transaction data sent to the node- Returns:
- the transaction receipt
-
sendRawTransactionAndGetReceiptAsync
public void sendRawTransactionAndGetReceiptAsync(java.lang.String signedTransactionData, TransactionCallback callback)Description copied from interface:Clientsend transaction to the node, and calls TransactionCallback when get the transaction receipt response- Specified by:
sendRawTransactionAndGetReceiptAsyncin interfaceClient- Parameters:
signedTransactionData- the transaction sent to the nodecallback- the TransactionCallback called after get the transaction receipt
-
sendRawTransactionAndGetReceiptWithProofAsync
public void sendRawTransactionAndGetReceiptWithProofAsync(java.lang.String signedTransactionData, TransactionCallback callback)Description copied from interface:Clientcalls sendRawTransactionAndGetProof interface, calls TransactionCallback when get the transaction receipt- Specified by:
sendRawTransactionAndGetReceiptWithProofAsyncin interfaceClient- Parameters:
signedTransactionData- the transaction sent to the nodecallback- the TransactionCallback called after get the transaction receipt
-
sendRawTransactionAndGetReceiptWithProof
public TransactionReceipt sendRawTransactionAndGetReceiptWithProof(java.lang.String signedTransactionData)Description copied from interface:Clientcalls sendRawTransactionAndGetProof interface and get the transaction receipt- Specified by:
sendRawTransactionAndGetReceiptWithProofin interfaceClient- Parameters:
signedTransactionData- the transaction sent to the node- Returns:
- the transaction receipt
-
getBatchReceiptsByBlockNumberAndRange
public BcosTransactionReceiptsDecoder getBatchReceiptsByBlockNumberAndRange(java.math.BigInteger blockNumber, java.lang.String from, java.lang.String count)Description copied from interface:Clientget receipt list according to the block number and the given range- Specified by:
getBatchReceiptsByBlockNumberAndRangein interfaceClient- Parameters:
blockNumber- the block number of the receiptsfrom- the start index of the receipt list requiredcount- the end index of the receipt list required- Returns:
- the receipt list
-
getBatchReceiptsByBlockHashAndRange
public BcosTransactionReceiptsDecoder getBatchReceiptsByBlockHashAndRange(java.lang.String blockHash, java.lang.String from, java.lang.String count)Description copied from interface:Clientget receipt list according to the block hash and the given range- Specified by:
getBatchReceiptsByBlockHashAndRangein interfaceClient- Parameters:
blockHash- the block hash of the receiptsfrom- the start index of the receipt list requiredcount- the end index of the receipt list required- Returns:
- the receipt list
-
getEventResource
Description copied from interface:ClientGet EventPushMsgHandler and FilterManager.- Specified by:
getEventResourcein interfaceClient- Returns:
- EventResource
-
stop
public void stop()
-