public class MonitorManager extends Object implements ConnectionStateListener
Constructor and Description |
---|
MonitorManager(Connection connection) |
Modifier and Type | Method and Description |
---|---|
void |
addMonitorListener(String id,
MonitorListener listener) |
boolean |
isConnected() |
void |
removeMonitorListener(String id,
MonitorListener listener) |
void |
stateChange(Connection connection,
ConnectionState state,
Throwable error)
Notify a state change
|
public MonitorManager(Connection connection)
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)public void addMonitorListener(String id, MonitorListener listener)
public void removeMonitorListener(String id, MonitorListener listener)
public boolean isConnected()
Copyright © 2016 Eclipse NeoSCADA Project. All rights reserved.