DriverDSL |
class DriverDSL : DriverDSLInternalInterface |
DriverDSLExposedInterface |
interface DriverDSLExposedInterface This is the interface thats exposed to DSL users. |
DriverDSLInternalInterface |
interface DriverDSLInternalInterface : DriverDSLExposedInterface |
NodeRunner |
class NodeRunner |
PortAllocation |
sealed class PortAllocation |
addressMustBeBound |
fun addressMustBeBound(hostAndPort: <ERROR CLASS>): Unit |
addressMustNotBeBound |
fun addressMustNotBeBound(hostAndPort: <ERROR CLASS>): Unit |
createNodeRunDirectory |
fun createNodeRunDirectory(directory: Path): Boolean |
driver |
fun <A> driver(baseDirectory: String = "build/${getTimestampAsDirectoryName()}", portAllocation: PortAllocation = PortAllocation.Incremental(10000), debugPortAllocation: PortAllocation = PortAllocation.Incremental(5005), isDebug: Boolean = false, dsl: DriverDSLExposedInterface.() -> A): A driver allows one to start up nodes like this: driver { val noService = startNode("NoService") val notary = startNode("Notary") |
genericDriver |
fun <DI : DriverDSLExposedInterface, D : DriverDSLInternalInterface, A> genericDriver(driverDsl: D, coerce: (D) -> DI, dsl: DI.() -> A): A This is a helper method to allow extending of the DSL, along the lines of interface SomeOtherExposedDSLInterface : DriverDSLExposedInterface interface SomeOtherInternalDSLInterface : DriverDSLInternalInterface, SomeOtherExposedDSLInterface class SomeOtherDSL(val driverDSL : DriverDSL) : DriverDSLInternalInterface by driverDSL, SomeOtherInternalDSLInterface |
poll |
fun <A> poll(pollName: String, pollIntervalMs: Long = 500, warnCount: Int = 120, f: () -> A?): A |
startClient |
fun DriverDSLExposedInterface.startClient(localServer: ArtemisMessagingServer): Future<ArtemisMessagingClient> fun DriverDSLExposedInterface.startClient(remoteNodeInfo: NodeInfo, providedName: String? = null): Future<ArtemisMessagingClient> |
writeConfig |
fun writeConfig(path: String, filename: String, config: <ERROR CLASS>): Unit |