public class DummyConnection extends Object implements Connection
| Constructor and Description |
|---|
DummyConnection(ConnectionInformation connectionInformation) |
public DummyConnection(ConnectionInformation connectionInformation)
public void dispose()
ConnectionA dispose will also act as a disconnect.
Connections must be disposed in order to clean up all resources. In the
past the Connection.disconnect() call was enough and, if possible, most
resources (sockets) should be closed when disconnecting. Still some
resources can be re-used and these need to be cleaned up in the
Connection.dispose() call.
dispose in interface Connectionpublic void setCallbackFactory(CallbackFactory callbackFactory)
setCallbackFactory in interface Connectionpublic void connect(CallbackHandler callbackHandler)
Connectionconnect in interface Connectionpublic void connect()
Connectionconnect in interface Connectionpublic void disconnect()
Connectiondisconnect in interface Connectionpublic void addConnectionStateListener(ConnectionStateListener connectionStateListener)
addConnectionStateListener in interface Connectionpublic void removeConnectionStateListener(ConnectionStateListener connectionStateListener)
removeConnectionStateListener in interface Connectionpublic ConnectionState getState()
ConnectiongetState in interface Connectionpublic ConnectionInformation getConnectionInformation()
getConnectionInformation in interface Connectionpublic Map<String,String> getSessionProperties()
ConnectionConnectionState.BOUNDgetSessionProperties in interface Connectionpublic void addFactoriesListener(FactoriesListener listener)
public void removeFactoriesListener(FactoriesListener listener)
public NotifyFuture<FactoryInformation[]> getFactories()
public NotifyFuture<FactoryInformation> getFactoryWithData(String factoryId)
public NotifyFuture<ConfigurationInformation> getConfiguration(String factoryId, String configurationId)
public NotifyFuture<Void> applyDiff(List<DiffEntry> changeSet, OperationParameters operationParameters, CallbackHandler callbackHandler)
public void addPrivilegeListener(PrivilegeListener listener)
ConnectionWhen adding a new listener it will receive an initial call with the current privileges.
addPrivilegeListener in interface Connectionpublic void removePrivilegeListener(PrivilegeListener listener)
removePrivilegeListener in interface Connectionpublic Set<String> getPrivileges()
ConnectiongetPrivileges in interface Connectionnull.Copyright © 2015 Eclipse SCADA Project. All rights reserved.