public class ConnectionAnalyzer extends Object implements ConnectionStateListener
Constructor and Description |
---|
ConnectionAnalyzer(ScheduledExecutorService executor,
org.osgi.framework.BundleContext context,
org.osgi.framework.ServiceReference<?> reference,
ConnectionService service) |
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
protected void |
handleConnect() |
protected void |
handleDisconnect() |
protected void |
refresh() |
void |
stateChange(Connection connection,
ConnectionState state,
Throwable error)
Notify a state change
|
public ConnectionAnalyzer(ScheduledExecutorService executor, org.osgi.framework.BundleContext context, org.osgi.framework.ServiceReference<?> reference, ConnectionService service)
protected void refresh()
protected void handleDisconnect()
protected void handleConnect()
public void dispose()
public void stateChange(Connection connection, ConnectionState state, Throwable error)
ConnectionStateListener
stateChange
in interface ConnectionStateListener
connection
- the connection that changedstate
- the new state of the connectionerror
- some error information that lead to the new state (can be null
if it was not an error)Copyright © 2016 Eclipse NeoSCADA Project. All rights reserved.