design pattern selection for workers

Asked by At

main goal is to use maximum number of design patterns :)

exist some entrypoint worker script which accept 2 params

1) "start" or "check" if working

2) worker name

#entrypoint start HelloWorld
#entrypoint check HelloWorld

script can check if worker running in different ways so for this part i could use Strategy pattern

workers can do different jobs, so for this part i could use Factory Method

what kind of pattern could be used to select which action should be used "start" or "check"

what other patterns you could imagine for such a task

0 Answers