×

System and method for supporting a selection service in a server environment

  • US 9,787,561 B2
  • Filed: 11/07/2012
  • Issued: 10/10/2017
  • Est. Priority Date: 10/15/2012
  • Status: Active Grant
First Claim
Patent Images

1. A method for supporting socket programming in a middleware environment executing on one or more microprocessors, the method comprising:

  • configuring a distributed in-memory data grid comprising a cluster of nodes in the middleware environment to support asynchronized message processing,wherein each cluster node includes a message processing thread, and a service thread having an associated service queue,wherein the service thread is configured to preprocess an incoming message, generate a first continuation data structure representing a control state for processing the incoming message, and transmit the processing of the incoming message along with the continuation data structure to the message processing thread, andwherein the message processing thread generates a second continuation data structure based on the first continuation data structure, wraps the second continuation data structure in a return message, and sends the return message to the service queue associated with the service thread for further processing by the service thread;

    providing, in the distributed in-memory data grid, a selection service that implements a plurality of abstract methods of an interface on the distributed in-memory data grid, wherein the selection service is associated with a single physical port configured to be multiplexed into a plurality of sub-ports, and includes a registration method and an invocation method;

    registering a plurality of server socket channels with the selection service using the registration method thereof, wherein each socket channel is configured to bind one of a plurality of server sockets to one of the plurality of sub-ports;

    registering a socket handler for each server socket with the selection service using the registration method thereof, wherein the socket handler provides a callback for use by the selection service to invoke that socket handler to process incoming network streams at the corresponding server socket;

    listening, on one of the plurality of server sockets, for one or more connection requests directed to an application on the distributed in-memory data grid; and

    invoking, via the invocation method of the selection service, the callback provided by the socket handler corresponding to the server socket, to process the one or more connection requests.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×