public final class LowLevelApplicationConnections
extends java.lang.Object
Diese Klasse verwaltet Applikations-Verbindung auf unterster Protokoll-Ebene. Es wird über das ServerConnectionInterface auf neue Applikationsverbindungen gewartet und aus dieser wird eine neue T_A_HighLevelCommunication-Klasse erzeugt und gespeichert. Dabei werden gegebenenfalls Verbindungsaufbau auf Protokollebene, Authentifizierung usw. durchgeführt.
Modifier and Type | Class and Description |
---|---|
private class |
LowLevelApplicationConnections.ApplicationConnectionsSubscriber
Diese Subklasse startet einen Thread, der eine Application bei einem Datenverteiler anmeldet.
|
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.Long,T_A_HighLevelCommunication> |
_applicationConnections |
private LowLevelApplicationConnections.ApplicationConnectionsSubscriber |
_applicationConnectionsSubscriber |
private HighLevelApplicationManager |
_applicationManager |
private ServerConnectionInterface |
_applicationsServerConnection |
private boolean |
_configurationAvailable |
private static Debug |
_debug |
private LowLevelConnectionsManagerInterface |
_lowLevelConnectionsManager |
private ServerDavParameters |
_serverDavParameters |
private java.util.Set<T_A_HighLevelCommunication> |
_unsortedApplicationConnections |
Constructor and Description |
---|
LowLevelApplicationConnections(HighLevelApplicationManager applicationManager,
LowLevelConnectionsManagerInterface lowLevelConnectionsManager,
java.lang.Class<? extends ServerConnectionInterface> communicationProtocolClass,
ServerDavParameters serverDavParameters)
Startet eine neue Klasse, die Applikations-Verbindung auf unterster Protokoll-Ebene entgegennimmt und verwaltet.
|
Modifier and Type | Method and Description |
---|---|
private void |
addApplicationConnection(T_A_HighLevelCommunication highLevelCommunication) |
void |
close(boolean error,
java.lang.String message) |
void |
continueAuthentication() |
private LowLevelCommunication |
createLowLevelConnection(ConnectionInterface connection,
boolean connected) |
(package private) T_A_HighLevelCommunication |
getApplicationConnection(long applicationId) |
java.util.Collection<T_A_HighLevelCommunication> |
getApplicationConnections() |
void |
localConfigurationAvailable()
Wird aufgerufen, wenn die lokale Konfiguration erfolgreich verbunden ist, und ermöglicht der SelfClientDafConnection, mit der Initialisierung fortzufahren (sodass diese dann nicht mehr auf die Konfiguration wartet)
|
boolean |
removeApplicationConnection(T_A_HighLevelCommunication applicationCommunication) |
private void |
startApplicationConnection(ConnectionInterface connection) |
private ServerConnectionInterface |
startApplicationConnectionListener(java.lang.Class<? extends ServerConnectionInterface> communicationProtocolClass) |
java.lang.String |
toString() |
void |
updateId(T_A_HighLevelCommunication communication) |
private final LowLevelApplicationConnections.ApplicationConnectionsSubscriber _applicationConnectionsSubscriber
private final ServerConnectionInterface _applicationsServerConnection
private final java.util.Map<java.lang.Long,T_A_HighLevelCommunication> _applicationConnections
private final java.util.Set<T_A_HighLevelCommunication> _unsortedApplicationConnections
private final HighLevelApplicationManager _applicationManager
private final LowLevelConnectionsManagerInterface _lowLevelConnectionsManager
private final ServerDavParameters _serverDavParameters
private boolean _configurationAvailable
private static final Debug _debug
public LowLevelApplicationConnections(HighLevelApplicationManager applicationManager, LowLevelConnectionsManagerInterface lowLevelConnectionsManager, java.lang.Class<? extends ServerConnectionInterface> communicationProtocolClass, ServerDavParameters serverDavParameters) throws CommunicationError, java.lang.IllegalAccessException, java.lang.InstantiationException
Startet eine neue Klasse, die Applikations-Verbindung auf unterster Protokoll-Ebene entgegennimmt und verwaltet.
lowLevelConnectionsManager
- Authentifizierungs-ModulcommunicationProtocolClass
- Kommunikationsprotokoll-Klasse wie TCP/IPserverDavParameters
- Server-Datenverteiler-ParameterCommunicationError
- Kommunikationsfehlerjava.lang.IllegalAccessException
- Fehler beim Instantiieren der Protokoll-Klassejava.lang.InstantiationException
- Fehler beim Instantiieren der Protokoll-Klasseprivate ServerConnectionInterface startApplicationConnectionListener(java.lang.Class<? extends ServerConnectionInterface> communicationProtocolClass) throws java.lang.InstantiationException, java.lang.IllegalAccessException, CommunicationError
java.lang.InstantiationException
java.lang.IllegalAccessException
CommunicationError
public void continueAuthentication()
public void localConfigurationAvailable()
Wird aufgerufen, wenn die lokale Konfiguration erfolgreich verbunden ist, und ermöglicht der SelfClientDafConnection, mit der Initialisierung fortzufahren (sodass diese dann nicht mehr auf die Konfiguration wartet)
T_A_HighLevelCommunication getApplicationConnection(long applicationId)
public void close(boolean error, java.lang.String message)
public void updateId(T_A_HighLevelCommunication communication)
public java.util.Collection<T_A_HighLevelCommunication> getApplicationConnections()
private void startApplicationConnection(ConnectionInterface connection) throws ConnectionException
ConnectionException
private void addApplicationConnection(T_A_HighLevelCommunication highLevelCommunication)
public boolean removeApplicationConnection(T_A_HighLevelCommunication applicationCommunication)
private LowLevelCommunication createLowLevelConnection(ConnectionInterface connection, boolean connected) throws ConnectionException
ConnectionException
public java.lang.String toString()
toString
in class java.lang.Object