Class DefaultSeeqHttpConnection

java.lang.Object
com.seeq.link.sdk.BaseConnection
com.seeq.link.agent.DefaultSeeqHttpConnection
All Implemented Interfaces:
SeeqHttpConnection, com.seeq.link.sdk.interfaces.Connection

public class DefaultSeeqHttpConnection extends com.seeq.link.sdk.BaseConnection implements SeeqHttpConnection
  • Nested Class Summary

    Nested classes/interfaces inherited from interface com.seeq.link.sdk.interfaces.Connection

    com.seeq.link.sdk.interfaces.Connection.ConnectionState, com.seeq.link.sdk.interfaces.Connection.StateChangedEventArgs
  • Field Summary

    Fields inherited from class com.seeq.link.sdk.BaseConnection

    lastException
  • Constructor Summary

    Constructors
    Constructor
    Description
    DefaultSeeqHttpConnection(String restURL, LoginAuthManager loginAuthManager, com.seeq.link.sdk.interfaces.SeeqApiProvider apiProvider, com.seeq.link.sdk.interfaces.SeeqApiProvider indexingApiProvider)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    Handles the act of authenticating against the Seeq REST API.
    void
     
    protected void
    Disconnect from Seeq Application Server by logging out.
    com.seeq.link.sdk.interfaces.SeeqApiProvider
    Provides instances of API objects.
    protected String
     
    com.seeq.link.sdk.interfaces.SeeqApiProvider
    Provides API provider instance that should be used during indexing
    The URL for the REST API this connection is utilizing.
    void
     
    protected void
    Ping the API to determine if the client is connected and authenticated.

    Methods inherited from class com.seeq.link.sdk.BaseConnection

    disable, enable, getBackgroundThreads, getConnectionMessage, getLastException, getMaxReconnectDelay, getMinReconnectDelay, getMonitorPeriod, getState, getStateChangedEvent, handleConnectionMonitorException, setMaxReconnectDelay, setMinReconnectDelay, setMonitorPeriod, setState

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.seeq.link.sdk.interfaces.Connection

    disable, enable, getConnectionMessage, getMaxReconnectDelay, getMinReconnectDelay, getMonitorPeriod, getState, getStateChangedEvent, setMaxReconnectDelay, setMinReconnectDelay, setMonitorPeriod
  • Constructor Details

    • DefaultSeeqHttpConnection

      public DefaultSeeqHttpConnection(String restURL, LoginAuthManager loginAuthManager, com.seeq.link.sdk.interfaces.SeeqApiProvider apiProvider, com.seeq.link.sdk.interfaces.SeeqApiProvider indexingApiProvider)
  • Method Details

    • initialize

      public void initialize()
      Specified by:
      initialize in interface com.seeq.link.sdk.interfaces.Connection
      Specified by:
      initialize in class com.seeq.link.sdk.BaseConnection
    • destroy

      public void destroy()
      Specified by:
      destroy in interface com.seeq.link.sdk.interfaces.Connection
      Specified by:
      destroy in class com.seeq.link.sdk.BaseConnection
    • getConnectionId

      protected String getConnectionId()
      Specified by:
      getConnectionId in class com.seeq.link.sdk.BaseConnection
    • getRestURL

      public String getRestURL()
      Description copied from interface: SeeqHttpConnection
      The URL for the REST API this connection is utilizing.
      Specified by:
      getRestURL in interface SeeqHttpConnection
    • connect

      protected void connect()
      Handles the act of authenticating against the Seeq REST API.
      Specified by:
      connect in class com.seeq.link.sdk.BaseConnection
    • monitor

      protected void monitor()
      Ping the API to determine if the client is connected and authenticated.
      Specified by:
      monitor in class com.seeq.link.sdk.BaseConnection
    • disconnect

      protected void disconnect()
      Disconnect from Seeq Application Server by logging out.
      Specified by:
      disconnect in class com.seeq.link.sdk.BaseConnection
    • getApiProvider

      public com.seeq.link.sdk.interfaces.SeeqApiProvider getApiProvider()
      Description copied from interface: SeeqHttpConnection
      Provides instances of API objects.
      Specified by:
      getApiProvider in interface SeeqHttpConnection
      Returns:
      API provider instance
    • getIndexingApiProvider

      public com.seeq.link.sdk.interfaces.SeeqApiProvider getIndexingApiProvider()
      Description copied from interface: SeeqHttpConnection
      Provides API provider instance that should be used during indexing
      Specified by:
      getIndexingApiProvider in interface SeeqHttpConnection
      Returns:
      API provider instance