public class ConnectionImpl extends ConnectionBaseImpl implements Connection
Modifier and Type | Class and Description |
---|---|
protected static class |
ConnectionImpl.ErrorAwareFuture<Res extends ResponseMessage,M> |
connectCallbackHandler
connectionInformation, 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, setCallbackFactory
addConnectionStateListener, addPrivilegeListener, connect, connect, disconnect, dispose, firePrivilegeChange, getPrivileges, getSession, getSslSession, getState, handleConnectComplete, isDisposed, messageReceived, performClosed, performDisconnected, performOpened, removeConnectionStateListener, removePrivilegeListener, sendMessage, sendMessageChecked, setState, switchState
getConnectionInformation, getSessionProperties, getStatistics, setSessionProperties
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addConnectionStateListener, addPrivilegeListener, connect, connect, disconnect, dispose, getConnectionInformation, getPrivileges, getSessionProperties, getState, removeConnectionStateListener, removePrivilegeListener, setCallbackFactory
public ConnectionImpl(ConnectionInformation connectionInformation) throws Exception
Exception
public 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()
ClientBaseConnection
This method is called while the connection lock is held.
The default implementation does nothing.
onConnectionBound
in class ClientBaseConnection
protected void onConnectionClosed()
ClientBaseConnection
This method is called while the connection lock is held.
The default implementation does nothing.
onConnectionClosed
in class ConnectionBaseImpl
protected 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.