public abstract class AbstractConnectionManager extends Object implements org.eclipse.scada.utils.osgi.SingleServiceListener<DriverFactory>
| Constructor and Description |
|---|
AbstractConnectionManager(BundleContext context,
org.eclipse.scada.core.ConnectionInformation connectionInformation,
String connectionId,
Integer autoReconnectDelay,
boolean initialOpen) |
| Modifier and Type | Method and Description |
|---|---|
void |
addRequest(ConnectionRequest request) |
protected abstract AbstractConnectionService |
createConnection() |
void |
dispose()
Dispose the tracker and the connection
|
protected void |
disposeConnection()
Revoke the service registration and dispose the service
|
Integer |
getAutoReconnectDelay() |
org.eclipse.scada.core.ConnectionInformation |
getConnectionInformation() |
DriverFactory |
getFactory() |
protected abstract Set<String> |
getInterfaces() |
boolean |
isIdle() |
boolean |
isInitialOpen() |
void |
removeRequest(ConnectionRequest request) |
void |
serviceChange(ServiceReference<DriverFactory> reference,
DriverFactory factory) |
void |
update(org.eclipse.scada.core.ConnectionInformation connectionInformation) |
public AbstractConnectionManager(BundleContext context, org.eclipse.scada.core.ConnectionInformation connectionInformation, String connectionId, Integer autoReconnectDelay, boolean initialOpen)
public Integer getAutoReconnectDelay()
public boolean isInitialOpen()
public DriverFactory getFactory()
public org.eclipse.scada.core.ConnectionInformation getConnectionInformation()
public void dispose()
public void update(org.eclipse.scada.core.ConnectionInformation connectionInformation)
public void serviceChange(ServiceReference<DriverFactory> reference, DriverFactory factory)
serviceChange in interface org.eclipse.scada.utils.osgi.SingleServiceListener<DriverFactory>protected abstract AbstractConnectionService createConnection()
protected void disposeConnection()
Does nothing if there is no current registration
public void addRequest(ConnectionRequest request)
public void removeRequest(ConnectionRequest request)
public boolean isIdle()