Interface BBjBridgeRequest


public interface BBjBridgeRequest
BBjBridgeRequest is used to specify a program that is to be called by JavaBBjBridge, to pass parameters to that program and to provide data that can be read by that program from an ALIAS bbj channel.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Clear all existing data including program name, program command-line parameters and any data that has been placed in request through calls to setBytes or put().
    void
    Clear all data placed in request through calls to setBytes or put().
    boolean
     
    boolean
    Indicates whether this Request contains record-oriented data.
    void
    put(byte[] key, byte[] value)
    Create a key/value pair available to be read by the BBj program using record-oriented reads.
    void
    put(String key, String value)
    Create a key/value pair available to be read by the BBj program using record-oriented reads.
    void
    setBytes(byte[] p_bytes)
    setBytes() makes bytes available to be read by the BBj program using byte-oriented reads.
    void
    setPersistOnTimeout(boolean p_persist)
    used by BridgeServerInstance to inform heartStopped methods that it does not wish to disconnect on timeout
    void
    setProgramName(String p_programName)
    Sets the name of the program to be run.
    void
    Sets command-line parameters to be provided to the program.
  • Method Details

    • setProgramName

      void setProgramName(String p_programName)
      Sets the name of the program to be run.
    • setProgramParameters

      void setProgramParameters(String p_params)
      Sets command-line parameters to be provided to the program.
    • setBytes

      void setBytes(byte[] p_bytes) throws IllegalStateException
      setBytes() makes bytes available to be read by the BBj program using byte-oriented reads.

      NOTE that either but not both of the methods setBytes() and put() may be used to place data in the ALIASed channel.

      Parameters:
      p_bytes - The bytes that are to be available to the BBj program.
      Throws:
      IllegalStateException - thrown if there has been a previous call to put().
    • put

      void put(byte[] key, byte[] value) throws IllegalStateException, BBjBridgeException
      Create a key/value pair available to be read by the BBj program using record-oriented reads.

      NOTE that either but not both of the methods setBytes() and put() may be used to place data in the ALIASed channel.

      Parameters:
      key - The key[].
      value - The value[].
      Throws:
      IllegalStateException - Thrown if there has been a previous call to setBytes().
      BBjBridgeException
    • put

      void put(String key, String value) throws IllegalStateException, BBjBridgeException
      Create a key/value pair available to be read by the BBj program using record-oriented reads.

      NOTE that either but not both of the methods setBytes() and put() may be used to place data in the ALIASed channel.

      Parameters:
      key - The key.
      value - The value.
      Throws:
      IllegalStateException - Thrown if there has been a previous call to setBytes().
      BBjBridgeException
    • isRecordOriented

      boolean isRecordOriented()
      Indicates whether this Request contains record-oriented data.
    • clear

      void clear()
      Clear all existing data including program name, program command-line parameters and any data that has been placed in request through calls to setBytes or put().
    • clearData

      void clearData()
      Clear all data placed in request through calls to setBytes or put(). It does not clear programName, configFile.
    • setPersistOnTimeout

      void setPersistOnTimeout(boolean p_persist)
      used by BridgeServerInstance to inform heartStopped methods that it does not wish to disconnect on timeout
    • getPersistOnTimeout

      boolean getPersistOnTimeout()