What would you call a class that wraps some external process Worker (starts and stops it, reads stdin, stdout, etc.)?
- WorkerFacade?
- WorkerGateway?
- WorkerWrapper?
What would you call a class that wraps some external process Worker (starts and stops it, reads stdin, stdout, etc.)?
Manager, since it just controls workers
or Executive, if it has stock options!
The name I would choose depends on the problem domain. For example MyProcessWatcher might be OK in some contexts, while ApacheProcessWatcher might be appropriate in others.
I'd say WorkerAdapter, since it translates between your code and the external process.
That the external process is a "worker" is detail of your implementation, so I'd be tempted to call the class "Process" and call the instance "Worker".