mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2024-12-01 12:59:18 -06:00
66 lines
1.3 KiB
Plaintext
66 lines
1.3 KiB
Plaintext
|
@startuml
|
||
|
autoactivate on
|
||
|
participant "Workload\nModel" as workload
|
||
|
participant "Driver\nAdapter" as adapter #ff0
|
||
|
participant "Op\nType" as optype #ff0
|
||
|
|
||
|
participant "Standard\nActivity" as activity #0fa
|
||
|
participant "Op\nSource" as opsource #0fa
|
||
|
participant "Standard\nAction" as action #0fa
|
||
|
|
||
|
participant "Native\nDriver" as native #ff00ff
|
||
|
participant "Target\nSystem" as target #ff00ff
|
||
|
|
||
|
=== during initialization ===
|
||
|
activity -> adapter: getOpMapperFunc()
|
||
|
return <OpMapperFunc>
|
||
|
activity -> workload: getWorkloadTemplate()
|
||
|
return <OpTemplate>
|
||
|
|
||
|
|
||
|
note over activity
|
||
|
The activity composes an OpSource
|
||
|
function from the template data
|
||
|
and the op mapping logic
|
||
|
end note
|
||
|
|
||
|
activity -> opsource ** : compose function\n<OpSource<OpType>>
|
||
|
|
||
|
activity -> action ** : create worker\nwith <OpSource<OpType>>
|
||
|
|
||
|
=== during cycling ===
|
||
|
|
||
|
action -> opsource: getOp()
|
||
|
|
||
|
opsource -> optype ** : create
|
||
|
return <op>
|
||
|
|
||
|
return <op:OpType>
|
||
|
|
||
|
action -> action: run(op)
|
||
|
|
||
|
|
||
|
native -> target: execute operation
|
||
|
return <result>
|
||
|
|
||
|
|
||
|
return result
|
||
|
|
||
|
|
||
|
'activity -> workload: getOpTemplate
|
||
|
'activity <- workload: <OpTemplate>
|
||
|
|
||
|
'activity -> workload: getOp
|
||
|
'workload -> activity
|
||
|
'
|
||
|
'activity -> adapter
|
||
|
'
|
||
|
'activity -> adapter: getOpSource
|
||
|
'activate adapter
|
||
|
'activity <- adapter: <OpSource>
|
||
|
'deactivate adapter
|
||
|
'
|
||
|
'activity -> opsource: getOp
|
||
|
'
|
||
|
@end
|