com.github.manosbatsis.corda.testacles.containers.cordform.config / CordformNetworkConfig
CordformNetworkConfig¶
data class CordformNetworkConfig :
CordaNetworkConfig
Utility wrapper of a nodes directory,
i.e. one created by the Cordform
Gradle plugin
Constructors¶
Name | Summary |
---|---|
<init> | CordformNetworkConfig(nodesDir: File , cloneNodesDir: Boolean , network: Network, imageName: String , imageCordaArgs: String = EMPTY, entryPointOverride: List < String > = buildEntryPointOverride(imageName), netParamsFile: File = File(nodesDir, "network-parameters"), nodeInfosDir: File = File(nodesDir, "additional-node-infos").apply { mkdirs() }, databaseSettings: CordformDatabaseSettings = CordformDatabaseSettingsFactory.H2, privilegedMode: Boolean = false, clearEnv: Boolean = false)``CordformNetworkConfig(nodesDir: File , network: Network, imageName: String , imageCordaArgs: String = EMPTY, entryPointOverride: List < String > = buildEntryPointOverride(imageName), netParamsFile: File = File(nodesDir, "network-parameters"), nodeInfosDir: File = File(nodesDir, "additional-node-infos").apply { mkdirs() }, databaseSettings: CordformDatabaseSettings = CordformDatabaseSettingsFactory.H2, privilegedMode: Boolean = false, clearEnv: Boolean = false, nodeContainerCreator: (dockerImageName: DockerImageName, nodeContainerConfig: NodeContainerConfig ) -> NodeContainer <*> = ::CordformNodeContainer) Utility wrapper of a nodes directory, i.e. one created by the Cordform Gradle plugin |
Properties¶
Name | Summary |
---|---|
clearEnv | val clearEnv: Boolean |
databaseSettings | val databaseSettings: CordformDatabaseSettings |
entryPointOverride | val entryPointOverride: List < String > Custom entrypoint to use if non-empty. |
imageCordaArgs | val imageCordaArgs: String |
imageName | val imageName: String The name of the docker image used |
netParamsFile | val netParamsFile: File |
network | val network: Network |
nodeConfigs | val nodeConfigs: List < NodeContainerConfig > |
nodeContainerCreator | val nodeContainerCreator: (dockerImageName: DockerImageName, nodeContainerConfig: NodeContainerConfig ) -> NodeContainer <*> |
nodeInfosDir | val nodeInfosDir: File |
nodesDir | val nodesDir: File |
notaryNodeDirs | val notaryNodeDirs: List < File > |
partyNodeDirs | val partyNodeDirs: List < File > |
privilegedMode | val privilegedMode: Boolean |
Companion Object Properties¶
Name | Summary |
---|---|
EMPTY | const val EMPTY: String |
ENTRYPOINT_MIGRATIONS_FLAGS | val ENTRYPOINT_MIGRATIONS_FLAGS: List < String > |
ENTRYPOINT_WITH_MIGRATIONS_FIRST_4_6_PLUS | const val ENTRYPOINT_WITH_MIGRATIONS_FIRST_4_6_PLUS: String |
ENTRYPOINT_WITH_MIGRATIONS_FIRST_CE_PRE_4_6 | const val ENTRYPOINT_WITH_MIGRATIONS_FIRST_CE_PRE_4_6: String |
Companion Object Functions¶
Name | Summary |
---|---|
buildEntryPointOverride | fun buildEntryPointOverride(imageName: String ): List < String > Return the default custom entrypoint based on Corda version. For Corda CE or OS 4.6+, a custom entry point will be returned that runs DB migrations before normal node startup. |
cloneNodesDir | fun cloneNodesDir(nodesDir: File ): File Clone the original source to build/testacles. |