Class ComputeClient

java.lang.Object
org.drip.service.engine.ComputeClient

public class ComputeClient
extends java.lang.Object
ComputeClient contains the Functionality behind the DROP API Compute Service Client. It provides the following Functions:
  • Construct Standard LocalHost-based Instance of the ComputeClient
  • Retrieve the Compute Server Host
  • Retrieve the Compute Server Port
  • Establish a Connection to the Compute Server Engine
  • Invoke a Request on the Compute Server and Retrieve the Response
  • Entry Point

Module Computational Core Module
Library Computation Support
Project Environment, Product/Definition Containers, and Scenario/State Manipulation APIs
Package Compute Engine Request-Response Thunker

Author:
Lakshmi Krishnamurthy
  • Constructor Summary

    Constructors
    Constructor Description
    ComputeClient​(java.lang.String serverHost, int serverPort)
    ComputeClient Constructor
  • Method Summary

    Modifier and Type Method Description
    boolean initialize()
    Establish a Connection to the Compute Server Engine
    JSONObject invoke​(JSONObject requestJSON)
    Invoke a Request on the Compute Server and Retrieve the Response
    static void main​(java.lang.String[] argumentArray)
    Entry Point
    java.lang.String serverHost()
    Retrieve the Compute Server Host
    int serverPort()
    Retrieve the Compute Server Port
    static ComputeClient Standard()
    Construct Standard LocalHost-based Instance of the ComputeClient

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ComputeClient

      public ComputeClient​(java.lang.String serverHost, int serverPort) throws java.lang.Exception
      ComputeClient Constructor
      Parameters:
      serverHost - The Compute Server Host
      serverPort - The Compute Server Port
      Throws:
      java.lang.Exception - Thrown if the Inputs are Invalid
  • Method Details

    • Standard

      public static final ComputeClient Standard()
      Construct Standard LocalHost-based Instance of the ComputeClient
      Returns:
      The Standard LocalHost-based Instance of the ComputeClient
    • serverHost

      public java.lang.String serverHost()
      Retrieve the Compute Server Host
      Returns:
      The Compute Server Host
    • serverPort

      public int serverPort()
      Retrieve the Compute Server Port
      Returns:
      The Compute Server Port
    • initialize

      public boolean initialize()
      Establish a Connection to the Compute Server Engine
      Returns:
      TRUE - Connection to the Compute Server Engine Established
    • invoke

      public JSONObject invoke​(JSONObject requestJSON)
      Invoke a Request on the Compute Server and Retrieve the Response
      Parameters:
      requestJSON - The Input JSON Request
      Returns:
      The Processed JSON Response
    • main

      public static final void main​(java.lang.String[] argumentArray) throws java.lang.Exception
      Entry Point
      Parameters:
      argumentArray - Argument Array
      Throws:
      java.lang.Exception - Propagate Exception Encountered