×

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

  • US 10,050,857 B2
  • Filed: 08/28/2017
  • Issued: 08/14/2018
  • 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;

    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 a connection request directed to an application on the distributed in-memory data grid;

    invoking, via the invocation method of the selection service, the callback provided by the socket handler corresponding to the server socket, to process the connection request;

    wherein the connection request is processed using a message processing thread, and a service thread; and

    wherein the service thread is configured to generate a data structure representing a control state for processing the connection request, and transmit the processing of the connection request along with the data structure to the message processing thread for further processing.

View all claims
  • 0 Assignments
Timeline View
Assignment View
    ×
    ×