com.github.manosbatsis.corda.testacles.containers.node / NodeContainer
NodeContainer¶
interface NodeContainer<SELF :
NodeContainer
<
SELF
>> : Container<
SELF
>,
AutoCloseable
, WaitStrategyTarget, Startable
Properties¶
Name | Summary |
---|---|
config | abstract val config: Config |
isEnterprise | abstract val isEnterprise: Boolean |
nodeIdentity | abstract val nodeIdentity: CordaX500Name |
nodeName | abstract val nodeName: String |
rpcAddress | abstract val rpcAddress: String |
rpcNetworkHostAndPort | abstract val rpcNetworkHostAndPort: NetworkHostAndPort |
rpcUsers | abstract val rpcUsers: List <User> |
simpleNodeConfig | abstract val simpleNodeConfig: SimpleNodeConfig |
version | abstract val version: Version |
Functions¶
Name | Summary |
---|---|
addEnvVars | abstract fun addEnvVars(): Unit Add environment variables to the container. Overrides should call super . |
getBinds | abstract fun getBinds(nodeDir: File ): List <Bind> Set the Bind entries for the container. Overrides should call super . |
getDefaultRpcUser | open fun getDefaultRpcUser(): User Get default user user credentials, try for ALL permissions first |
getRpc | open fun getRpc(username: String ): CordaRPCOps abstract fun getRpc(user: User = getDefaultRpcUser()): CordaRPCOps |
Companion Object Properties¶
Name | Summary |
---|---|
NODE_CONF_FILENAME_DEFAULT | const val NODE_CONF_FILENAME_DEFAULT: String |
P2P_PORT | const val P2P_PORT: Int |
RPC_ADMIN_PORT | const val RPC_ADMIN_PORT: Int |
RPC_HOST | const val RPC_HOST: String |
RPC_PORT | const val RPC_PORT: Int |
Companion Object Functions¶
Name | Summary |
---|---|
createRpcConnection | fun createRpcConnection(nodeContainer: NodeContainer <*>, user: User = nodeContainer.getDefaultRpcUser()): LazyNodeRpcConnection fun createRpcConnection(nodeIdentity: CordaX500Name, rpcAddress: String , eager: Boolean , disableGracefulReconnect: Boolean , user: User): LazyNodeRpcConnection |
Inheritors¶
Name | Summary |
---|---|
CordformNodeContainer | open class CordformNodeContainer : GenericContainer< CordformNodeContainer >, NodeContainer < CordformNodeContainer > |