Class ScreenClient

java.lang.Object
com.softwaremining.ui.ScreenClient
All Implemented Interfaces:
IScreenClient

public class ScreenClient extends Object implements IScreenClient
This class is used by program logic to communicate with standalone screen server through network socket
  • Constructor Details

  • Method Details

    • getTaskId

      public int getTaskId()
    • sendDisplayRequest

      public void sendDisplayRequest(DisplayRequest displayRequest)
      serialalize the displayRequest, and send it (thru tcp sockets) to the (web) server.
      Specified by:
      sendDisplayRequest in interface IScreenClient
      Parameters:
      displayRequest -
    • receiveAcceptResponse

      public AcceptResponse receiveAcceptResponse(String serviceName)
      method used internally by softwaremining framework read data from screen client
      Specified by:
      receiveAcceptResponse in interface IScreenClient
      Parameters:
      serviceName - : full path of the BaseService: e.g. com.softwareMining.examples.Loan
    • quit

      public void quit()
      Description copied from interface: IScreenClient
      end program session
      Specified by:
      quit in interface IScreenClient
    • sendException

      public void sendException(ExceptionRequest exceptionRequest)
      Specified by:
      sendException in interface IScreenClient
    • sendReportFrame

      public void sendReportFrame(ReportFrame reportFrame)
      Specified by:
      sendReportFrame in interface IScreenClient
    • forwardOnCompletionSendRequest

      public void forwardOnCompletionSendRequest()
      called at the end of the program termination. Outstanding request is one created by psuedo-conversational application such as CICS ... a SendRequest is needed once the program completes.