Package org.jppf.server.nio.nodeserver.async


package org.jppf.server.nio.nodeserver.async
Classes supporting the server node-side of the JPPF asynchronous communication model.

Current flow for standard nodes:
upon connection:
SEND_INITIAL_BUNDLE
--> WAIT_INITIAL_BUNDLE
--> IDLE
when a job is disptached:
SENDING_BUNDLE
--> WAITING_RESULTS
--> IDLE

Current flow for offline nodes:
upon connection:
SEND_INITIAL_BUNDLE
--> WAIT_INITIAL_BUNDLE
--> IDLE
when a job is disptached:
SENDING_BUNDLE
--> channel is closed

Note that offline nodes never transition to WAITING_RESULTS. Getting the results of a previously dispatched job is done in WAIT_INITIAL_BUNDLE.

  • Classes
    Class
    Description
    This class ensures that idle nodes get assigned pending tasks in the queue.
    Context or state information associated with a channel that exchanges heartbeat messages between the server and a node or client.
    Future associated with a context which handles the job cancellation.
    Handles messages received from and to send to the nodes.
    Reads from the channel until no more data is available.
    Writes all messages in the channel's context queue, if any, or keeps writing the current message until the socket send buffer is full.
    The NIO server that handles asynchronous client connections, which can handle multiple jobs concurrently.