public class ConnectionImpl extends ConnectionBaseImpl implements Connection
| Modifier and Type | Class and Description |
|---|---|
protected static class |
ConnectionImpl.ErrorAwareFuture<Res extends ResponseMessage,M> |
connectCallbackHandlerconnectionInformation, executor, statistics| Constructor and Description |
|---|
ConnectionImpl(ConnectionInformation connectionInformation) |
ConnectionImpl(ConnectionInformation connectionInformation,
org.apache.mina.core.service.IoProcessor<org.apache.mina.transport.socket.nio.NioSession> processor)
Create a new connection
|
| Modifier and Type | Method and Description |
|---|---|
void |
addFactoriesListener(FactoriesListener listener) |
NotifyFuture<Void> |
applyDiff(List<DiffEntry> changeSet,
OperationParameters operationParameters,
CallbackHandler callbackHandler) |
NotifyFuture<ConfigurationInformation> |
getConfiguration(String factoryId,
String configurationId) |
NotifyFuture<FactoryInformation[]> |
getFactories() |
NotifyFuture<FactoryInformation> |
getFactoryWithData(String factoryId) |
protected void |
onConnectionBound()
Called when the connection got bound
|
protected void |
onConnectionClosed()
Called when the connection got closed
|
void |
removeFactoriesListener(FactoriesListener listener) |
protected void |
setFactories(FactoryInformation[] factories) |
handleMessage, makeProperties, nextRequest, onConnectionConnected, processCallbackFuture, registerCallbackHandler, sendRequestMessage, setCallbackFactoryaddConnectionStateListener, addPrivilegeListener, connect, connect, disconnect, dispose, firePrivilegeChange, getPrivileges, getSession, getSslSession, getState, handleConnectComplete, isDisposed, messageReceived, performClosed, performDisconnected, performOpened, removeConnectionStateListener, removePrivilegeListener, sendMessage, sendMessageChecked, setState, switchStategetConnectionInformation, getSessionProperties, getStatistics, setSessionPropertiesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddConnectionStateListener, addPrivilegeListener, connect, connect, disconnect, dispose, getConnectionInformation, getPrivileges, getSessionProperties, getState, removeConnectionStateListener, removePrivilegeListener, setCallbackFactorypublic ConnectionImpl(ConnectionInformation connectionInformation) throws Exception
Exceptionpublic ConnectionImpl(ConnectionInformation connectionInformation, org.apache.mina.core.service.IoProcessor<org.apache.mina.transport.socket.nio.NioSession> processor) throws Exception
connectionInformation - the information where to connect toprocessor - the socket processor, may be null to use the
defaultException - if anything goes wrongprotected void onConnectionBound()
ClientBaseConnectionThis method is called while the connection lock is held.
The default implementation does nothing.
onConnectionBound in class ClientBaseConnectionprotected void onConnectionClosed()
ClientBaseConnectionThis method is called while the connection lock is held.
The default implementation does nothing.
onConnectionClosed in class ConnectionBaseImplprotected void setFactories(FactoryInformation[] factories)
public 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)
Copyright © 2016 Eclipse NeoSCADA Project. All rights reserved.