public class BcosSDK
extends java.lang.Object
| 构造器和说明 |
|---|
BcosSDK(ConfigOption configOption)
Constructor, init by ConfigOption
|
| 限定符和类型 | 方法和说明 |
|---|---|
static BcosSDK |
build(java.lang.String tomlConfigFilePath)
Build BcosSDK instance
|
Amop |
getAmop()
Get a amop instance of a specific group
|
Client |
getClient()
Get a Client instance of default group in config
|
Client |
getClient(java.lang.String groupId)
Get a Client instance of a specific group
|
ConfigOption |
getConfig() |
EventSubscribe |
getEventSubscribe(java.lang.String groupId)
Get a event subscribe instance of a specific group
|
void |
stopAll()
Stop all module of BcosSDK
|
public BcosSDK(ConfigOption configOption) throws BcosSDKException
configOption - the ConfigOptionBcosSDKExceptionpublic ConfigOption getConfig()
public static BcosSDK build(java.lang.String tomlConfigFilePath) throws BcosSDKException
tomlConfigFilePath - the Toml type config fileBcosSDKExceptionpublic Client getClient(java.lang.String groupId) throws BcosSDKException
BcosSDKExceptionpublic Client getClient() throws BcosSDKException
BcosSDKExceptionpublic Amop getAmop() throws BcosSDKException
BcosSDKExceptionpublic EventSubscribe getEventSubscribe(java.lang.String groupId) throws BcosSDKException
BcosSDKExceptionpublic void stopAll()