Package com.seeq.link.agent
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
ConstructorsConstructorDescriptionDefaultSeeqHttpConnection
(String restURL, LoginAuthManager loginAuthManager, com.seeq.link.sdk.interfaces.SeeqApiProvider apiProvider, com.seeq.link.sdk.interfaces.SeeqApiProvider indexingApiProvider) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
connect()
Handles the act of authenticating against the Seeq REST API.void
destroy()
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 indexingThe URL for the REST API this connection is utilizing.void
protected void
monitor()
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 interfacecom.seeq.link.sdk.interfaces.Connection
- Specified by:
initialize
in classcom.seeq.link.sdk.BaseConnection
-
destroy
public void destroy()- Specified by:
destroy
in interfacecom.seeq.link.sdk.interfaces.Connection
- Specified by:
destroy
in classcom.seeq.link.sdk.BaseConnection
-
getConnectionId
- Specified by:
getConnectionId
in classcom.seeq.link.sdk.BaseConnection
-
getRestURL
Description copied from interface:SeeqHttpConnection
The URL for the REST API this connection is utilizing.- Specified by:
getRestURL
in interfaceSeeqHttpConnection
-
connect
protected void connect()Handles the act of authenticating against the Seeq REST API.- Specified by:
connect
in classcom.seeq.link.sdk.BaseConnection
-
monitor
protected void monitor()Ping the API to determine if the client is connected and authenticated.- Specified by:
monitor
in classcom.seeq.link.sdk.BaseConnection
-
disconnect
protected void disconnect()Disconnect from Seeq Application Server by logging out.- Specified by:
disconnect
in classcom.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 interfaceSeeqHttpConnection
- 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 interfaceSeeqHttpConnection
- Returns:
- API provider instance
-