public class ConnectionHolder
extends org.eclipse.scada.utils.beans.AbstractPropertyChange
implements org.eclipse.scada.core.client.ConnectionStateListener, org.eclipse.core.runtime.IAdaptable
| Modifier and Type | Field and Description |
|---|---|
static String |
PROP_CONNECTION_ERROR |
static String |
PROP_CONNECTION_SERVICE |
static String |
PROP_CONNECTION_STATE |
| Constructor and Description |
|---|
ConnectionHolder(ConnectionDiscovererBean discoverer,
ConnectionDescriptor info) |
| Modifier and Type | Method and Description |
|---|---|
void |
connect() |
void |
connect(DisplayCallbackHandler callbackHandler) |
void |
disconnect() |
void |
dispose() |
<T> T |
getAdapter(Class<T> adapter) |
Throwable |
getConnectionError() |
ConnectionDescriptor |
getConnectionInformation() |
org.eclipse.scada.core.connection.provider.ConnectionService |
getConnectionService() |
org.eclipse.scada.core.client.ConnectionState |
getConnectionState() |
ConnectionDiscovererBean |
getDiscoverer() |
void |
setConnectCallbackHandler(org.eclipse.scada.sec.callback.CallbackHandler callbackHandler) |
protected void |
setConnectionError(Throwable connectionError) |
protected void |
setConnectionService(org.eclipse.scada.core.connection.provider.ConnectionService connectionService) |
protected void |
setConnectionState(org.eclipse.scada.core.client.ConnectionState connectionState) |
void |
stateChange(org.eclipse.scada.core.client.Connection connection,
org.eclipse.scada.core.client.ConnectionState state,
Throwable error) |
String |
toString() |
addPropertyChangeListener, addPropertyChangeListener, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, removePropertyChangeListener, removePropertyChangeListenerpublic static final String PROP_CONNECTION_SERVICE
public static final String PROP_CONNECTION_STATE
public static final String PROP_CONNECTION_ERROR
public ConnectionHolder(ConnectionDiscovererBean discoverer, ConnectionDescriptor info)
public void connect()
public void disconnect()
public ConnectionDiscovererBean getDiscoverer()
public void dispose()
public org.eclipse.scada.core.connection.provider.ConnectionService getConnectionService()
public ConnectionDescriptor getConnectionInformation()
public org.eclipse.scada.core.client.ConnectionState getConnectionState()
protected void setConnectionState(org.eclipse.scada.core.client.ConnectionState connectionState)
public Throwable getConnectionError()
protected void setConnectionService(org.eclipse.scada.core.connection.provider.ConnectionService connectionService)
protected void setConnectionError(Throwable connectionError)
public void stateChange(org.eclipse.scada.core.client.Connection connection,
org.eclipse.scada.core.client.ConnectionState state,
Throwable error)
stateChange in interface org.eclipse.scada.core.client.ConnectionStateListenerpublic <T> T getAdapter(Class<T> adapter)
getAdapter in interface org.eclipse.core.runtime.IAdaptablepublic void setConnectCallbackHandler(org.eclipse.scada.sec.callback.CallbackHandler callbackHandler)
public void connect(DisplayCallbackHandler callbackHandler)