Create a client whose responsibility is to finish jobs. It won't start until it knows about some daemons.
A connection factory compatible with the daemons you will use.
A common source and sink used by all remote jobs.
A job orderer that tracks the jobs to be completed.
Sets or gets the default captureRejection value for all emitters.
This symbol shall be used to install a listener for only monitoring 'error'
events. Listeners installed using this symbol are called before the regular
'error'
listeners are called.
Installing a listener using this symbol does not change the behavior once an
'error'
event is emitted, therefore the process will still crash if no
regular 'error'
listener is installed.
Asks the daemon to work on the job. Sends network request and handles response.
The job to assign.
The daemon to which to assign the job.
An agent that claims jobs and runs them using the given daemon. It closes the connection and cleans up resources before resolving.
The daemon that is available.
Asynchronously, when there are no more remaining jobs.
Notify the caller of completion. It's safe to call this multiple times.
Whether the overall operation succeeded.
Add a new daemon to the swarm. The client may now give jobs to this daemon.
hostname or IP address of daemon
port number of daemon on the host
Notify all threads to exit and clean up resources. The overall operation is considered to have failed.
Generated using TypeDoc
A Junknet client implementation using a provided connection factory. It distributes the given jobs among daemons it knows about.