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.



Author:
Lakshmi Krishnamurthy
  • Constructor Summary

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

    Modifier and Type Method Description
    java.lang.String computeServerHost()
    Retrieve the Compute Server Host
    int computeServerPort()
    Retrieve the Compute Server Port
    boolean initialize()
    Establish a Connection to the Compute Server Engine
    JSONObject invoke​(JSONObject jsonRequest)
    Invoke a Request on the Compute Server and Retrieve the Response
    static void main​(java.lang.String[] astrArgs)
    Entry Point
    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 strComputeServerHost, int iComputeServerPort) throws java.lang.Exception
      ComputeClient Constructor
      Parameters:
      strComputeServerHost - The Compute Server Host
      iComputeServerPort - 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
    • computeServerHost

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

      public int computeServerPort()
      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 jsonRequest)
      Invoke a Request on the Compute Server and Retrieve the Response
      Parameters:
      jsonRequest - The Input JSON Request
      Returns:
      The Processed JSON Response
    • main

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