public class LowLevelConnectionsManager extends Object implements LowLevelConnectionsManagerInterface
Modifier and Type | Field and Description |
---|---|
private ClientDavParameters |
_clientDavParameters |
private boolean |
_closing |
private long |
_configurationId |
private static Debug |
_debug |
private HighLevelConnectionsManager |
_highLevelConnectionsManager |
private LowLevelApplicationConnections |
_lowLevelApplicationConnections |
private LowLevelAuthentication |
_lowLevelAuthentication |
private LowLevelTransmitterConnections |
_lowLevelTransmitterConnections |
private SystemObject |
_myTransmitter |
private SelfClientDavConnection |
_selfClientDavConnection |
private ServerDavParameters |
_serverDavParameters |
private long |
_transmitterId |
private boolean |
_waitForParamDone |
private Object |
_waitForParamLock |
Constructor and Description |
---|
LowLevelConnectionsManager(ServerDavParameters serverDavParameters)
Erzeugt eine neue Verbindungsverwaltung für den Datenverteiler.
|
Modifier and Type | Method and Description |
---|---|
T_A_HighLevelCommunication |
getApplicationConnection(long applicationId)
Gibt die angegebene Applikationsverbindung zurück
|
Collection<T_A_HighLevelCommunication> |
getApplicationConnections()
Gibt alle Appliaktionsverbindungen zurück
|
private AuthentificationComponent |
getAuthenticationComponent() |
ClientDavParameters |
getClientDavParameters()
Gibt die ClientDavParameters für die lokale Dav-Applikation zurück
|
private Class<? extends ServerConnectionInterface> |
getCommunicationsProtocolClass() |
HighLevelConnectionsManager |
getHighLevelConnectionsManager() |
long |
getLocalModeConfigurationId()
Gibt die Id der lokalen Konfiguration zurück
|
String |
getLocalModeConfigurationPid()
Gibt die Pid der lokalen Konfiguration zurück
|
LowLevelAuthenticationInterface |
getLowLevelAuthentication() |
SystemObject |
getMyTransmitter()
Gibt das eigene Datenverteiler-Objekt zurück
|
TransmitterConnectionInfo |
getRemoteTransmitterConnectionInfo(long connectedTransmitterId)
Bestimmt die Verbindungsinformationen für eine Verbindung vom angegebenen Datenverteiler zu diesem Datenverteiler.
|
SelfClientDavConnection |
getSelfClientDavConnection()
Gibt die eigene ClientDavConnection zurück
|
ServerDavParameters |
getServerDavParameters()
Gibt die ServerDavParameters zurück
|
T_T_HighLevelCommunication |
getTransmitterConnection(long transmitterId)
Gibt die angegebene Dav-Dav-Verbindung zurück
|
TransmitterConnectionInfo |
getTransmitterConnectionInfo(long connectedTransmitterId)
Bestimmt die Verbindungsinformationen für eine Verbindung von diesem Datenverteiler zum angegebenen Datenverteiler.
|
Collection<T_T_HighLevelCommunication> |
getTransmitterConnections()
Gibt alle Datenverteilerverbindungen zurück
|
long |
getTransmitterId()
Gibt die eigene Datenverteiler-id zurück
|
private SystemObject |
getTransmitterObject(DataModel dataModel)
Gibt das Transmitter-Objekt zurück.
|
short |
getWeight(long transmitterId)
Diese Methode wird von der Protokollsteuerung aufgerufen, um einer Verbindung ein Gewicht zuzuweisen.
|
boolean |
isClosing()
Gibt true zurück, wenn der Datenverteiler sich gerade beendet
|
long |
login(String userName,
byte[] userPassword,
String authentificationText,
AuthentificationProcess authentificationProcess,
String applicationTypePid)
Loggt einen Benutzer ein, bzw.
|
void |
removeConnection(T_A_HighLevelCommunication connection)
entfernt die angegebene Verbindung
|
void |
removeConnection(T_T_HighLevelCommunication connection)
entfernt die angegebene Verbindung
|
void |
setLocalConfigurationAvailable()
Wird aufgerufen, wenn die lokale konfiguration verfügbar ist
|
void |
setLocalModeParameter(String configurationPid,
long configurationId)
Setzt die Parameter für eien lokale Konfiguration
|
void |
shutdown(boolean error,
String message) |
String |
toString() |
void |
updateApplicationId(T_A_HighLevelCommunication communication)
Wird aufgerufen, sobald die ID einer Verbindung bekannt ist
|
void |
updateTransmitterId(T_T_HighLevelCommunication communication)
Wird aufgerufen, sobald die ID einer Verbindung bekannt ist
|
private void |
waitForParamReady(String paramAppIncarnationName)
Wartet auf die Applikationsfertigmeldung der lokalen Parametrierung.
|
private static final Debug _debug
private final ServerDavParameters _serverDavParameters
private final long _transmitterId
private final long _configurationId
private final LowLevelApplicationConnections _lowLevelApplicationConnections
private final LowLevelTransmitterConnections _lowLevelTransmitterConnections
private final SelfClientDavConnection _selfClientDavConnection
private final SystemObject _myTransmitter
private final ClientDavParameters _clientDavParameters
private final LowLevelAuthentication _lowLevelAuthentication
private volatile boolean _closing
private final HighLevelConnectionsManager _highLevelConnectionsManager
private boolean _waitForParamDone
private final Object _waitForParamLock
public LowLevelConnectionsManager(ServerDavParameters serverDavParameters) throws DavInitializationException
serverDavParameters
- Die Parameter sind u. a. die Adressen und Subadressen der KommunikationskanäleDavInitializationException
private void waitForParamReady(String paramAppIncarnationName) throws InterruptedException
paramAppIncarnationName
- Inkarnationsname der Parametrierung deren Applikationsfertigmeldung abgewartet werden soll oder null
falls auf eine beliebige Parametrierung gewartet werden soll.InterruptedException
public HighLevelConnectionsManager getHighLevelConnectionsManager()
private SystemObject getTransmitterObject(DataModel dataModel)
dataModel
- Datenmodellprivate AuthentificationComponent getAuthenticationComponent() throws ClassNotFoundException, InstantiationException, IllegalAccessException
private Class<? extends ServerConnectionInterface> getCommunicationsProtocolClass() throws ClassNotFoundException
ClassNotFoundException
public final long getTransmitterId()
LowLevelConnectionsManagerInterface
getTransmitterId
in interface LowLevelConnectionsManagerInterface
public final void shutdown(boolean error, String message)
shutdown
in interface LowLevelConnectionsManagerInterface
error
- True: ein Fehler ist aufgetretenmessage
- genauere Beschreibung des Fehlerspublic SelfClientDavConnection getSelfClientDavConnection()
LowLevelConnectionsManagerInterface
getSelfClientDavConnection
in interface LowLevelConnectionsManagerInterface
public SystemObject getMyTransmitter()
LowLevelConnectionsManagerInterface
getMyTransmitter
in interface LowLevelConnectionsManagerInterface
public void removeConnection(T_A_HighLevelCommunication connection)
LowLevelConnectionsManagerInterface
removeConnection
in interface LowLevelConnectionsManagerInterface
public void removeConnection(T_T_HighLevelCommunication connection)
LowLevelConnectionsManagerInterface
removeConnection
in interface LowLevelConnectionsManagerInterface
public String getLocalModeConfigurationPid()
LowLevelConnectionsManagerInterface
getLocalModeConfigurationPid
in interface LowLevelConnectionsManagerInterface
public long getLocalModeConfigurationId()
LowLevelConnectionsManagerInterface
getLocalModeConfigurationId
in interface LowLevelConnectionsManagerInterface
public LowLevelAuthenticationInterface getLowLevelAuthentication()
getLowLevelAuthentication
in interface LowLevelConnectionsManagerInterface
public void setLocalModeParameter(String configurationPid, long configurationId)
LowLevelConnectionsManagerInterface
setLocalModeParameter
in interface LowLevelConnectionsManagerInterface
configurationPid
- Pid der KonfigurationconfigurationId
- Id der Konfigurationpublic void setLocalConfigurationAvailable()
LowLevelConnectionsManagerInterface
setLocalConfigurationAvailable
in interface LowLevelConnectionsManagerInterface
public ServerDavParameters getServerDavParameters()
LowLevelConnectionsManagerInterface
getServerDavParameters
in interface LowLevelConnectionsManagerInterface
public ClientDavParameters getClientDavParameters()
LowLevelConnectionsManagerInterface
getClientDavParameters
in interface LowLevelConnectionsManagerInterface
public T_T_HighLevelCommunication getTransmitterConnection(long transmitterId)
LowLevelConnectionsManagerInterface
getTransmitterConnection
in interface LowLevelConnectionsManagerInterface
transmitterId
- Id den verbundenen Transmitterspublic T_A_HighLevelCommunication getApplicationConnection(long applicationId)
LowLevelConnectionsManagerInterface
getApplicationConnection
in interface LowLevelConnectionsManagerInterface
applicationId
- Id der verbundenen Applikationpublic short getWeight(long transmitterId)
LowLevelConnectionsManagerInterface
getWeight
in interface LowLevelConnectionsManagerInterface
transmitterId
- ID des DAVpublic TransmitterConnectionInfo getTransmitterConnectionInfo(long connectedTransmitterId)
getTransmitterConnectionInfo
in interface LowLevelConnectionsManagerInterface
connectedTransmitterId
- ID des DAVpublic TransmitterConnectionInfo getRemoteTransmitterConnectionInfo(long connectedTransmitterId)
getRemoteTransmitterConnectionInfo
in interface LowLevelConnectionsManagerInterface
connectedTransmitterId
- ID des DAVpublic void updateApplicationId(T_A_HighLevelCommunication communication)
LowLevelConnectionsManagerInterface
updateApplicationId
in interface LowLevelConnectionsManagerInterface
communication
- Verbindungpublic void updateTransmitterId(T_T_HighLevelCommunication communication)
LowLevelConnectionsManagerInterface
updateTransmitterId
in interface LowLevelConnectionsManagerInterface
communication
- Verbindungpublic Collection<T_A_HighLevelCommunication> getApplicationConnections()
LowLevelConnectionsManagerInterface
getApplicationConnections
in interface LowLevelConnectionsManagerInterface
public Collection<T_T_HighLevelCommunication> getTransmitterConnections()
LowLevelConnectionsManagerInterface
getTransmitterConnections
in interface LowLevelConnectionsManagerInterface
public boolean isClosing()
LowLevelConnectionsManagerInterface
isClosing
in interface LowLevelConnectionsManagerInterface
public long login(String userName, byte[] userPassword, String authentificationText, AuthentificationProcess authentificationProcess, String applicationTypePid)
LowLevelConnectionsManagerInterface
login
in interface LowLevelConnectionsManagerInterface
userName
- BenutzernameuserPassword
- BenutzerpasswortapplicationTypePid
- Applikations-Typ-Pid