public class LocalReceivingSubscription extends java.lang.Object implements LocalSubscription, ReceivingSubscription
Constructor and Description |
---|
LocalReceivingSubscription(SubscriptionsManager subscriptionsManager,
de.bsvrz.dav.daf.communication.lowLevel.telegrams.BaseSubscriptionInfo baseSubscriptionInfo,
boolean drain,
de.bsvrz.dav.daf.main.ReceiveOptions receiveOptions,
ApplicationCommunicationInterface applicationConnection) |
Modifier and Type | Method and Description |
---|---|
de.bsvrz.dav.daf.communication.protocol.UserLogin |
getAuthenticationState()
Gibt die Id des angemeldeten Benutzers zurück.
|
de.bsvrz.dav.daf.communication.lowLevel.telegrams.BaseSubscriptionInfo |
getBaseSubscriptionInfo()
Gibt die Objekt-Attributgruppenverwendung-Simulationsvariante-Kombination zurück, auf die diese Anmeldung stattfindet
|
long |
getCentralDistributorId()
Gibt die Zentraldatenverteiler-ID zurück.
|
ApplicationCommunicationInterface |
getCommunication()
Gibt die Schnittstelle zum Kommunikationspartner zurück, also z.B. eine T_A oder T_T-Verbindung
|
ConnectionState |
getConnectionState()
Gibt den Verbindungsstatus zum Kommunikationspartner zurück
|
long |
getNodeId()
Liefert die Id der anmeldenden Applikation bzw. des anmeldenden Datenverteilers (nicht zwingend der direkt verbundene Datenverteiler, sondern
der Kommunikationspartner, der die Daten bereitstellt oder empfängt)
|
de.bsvrz.dav.daf.main.ReceiveOptions |
getReceiveOptions()
Gibt die Empfangsoptionen zurück, die der Empfänger bei der Anmeldung spezifiziert hat
|
ReceiverState |
getState()
Gibt den Status des Empfängers zurück
|
boolean |
isAllowed()
Gibt zurück, ob die Anmeldung von der lokalen Rechteprüfung erlaubt ist
|
boolean |
isDrain()
Gibt true zurück, wenn es sich um eine Senke handelt
|
void |
sendDataTelegram(de.bsvrz.dav.daf.communication.lowLevel.telegrams.ApplicationDataTelegram applicationDataTelegram)
Sendet Daten an den Empfänger
|
void |
sendStateTelegram(ReceiverState receiverState)
Sendet an einen Empfänger falls nötig im Falle eines geänderten Anmeldestatus einen leeren Datensatz mit dem entsprechenden Inhalt.
|
void |
setState(ReceiverState receiverState,
long centralTransmitterId)
Setzt den Status des Empfängers
|
java.lang.String |
toString() |
void |
unsubscribe()
Beendet die Datenanmeldung, sendet eventuelle Abmeldetelegramme
|
public LocalReceivingSubscription(SubscriptionsManager subscriptionsManager, de.bsvrz.dav.daf.communication.lowLevel.telegrams.BaseSubscriptionInfo baseSubscriptionInfo, boolean drain, de.bsvrz.dav.daf.main.ReceiveOptions receiveOptions, ApplicationCommunicationInterface applicationConnection)
public long getNodeId()
Subscription
getNodeId
in interface Subscription
public ConnectionState getConnectionState()
Subscription
getConnectionState
in interface Subscription
public long getCentralDistributorId()
Subscription
getCentralDistributorId
in interface Subscription
public void unsubscribe()
Subscription
unsubscribe
in interface Subscription
public ApplicationCommunicationInterface getCommunication()
Subscription
getCommunication
in interface LocalSubscription
getCommunication
in interface Subscription
public boolean isDrain()
ReceivingSubscription
isDrain
in interface ReceivingSubscription
public de.bsvrz.dav.daf.main.ReceiveOptions getReceiveOptions()
ReceivingSubscription
getReceiveOptions
in interface ReceivingSubscription
public void sendDataTelegram(de.bsvrz.dav.daf.communication.lowLevel.telegrams.ApplicationDataTelegram applicationDataTelegram)
ReceivingSubscription
sendDataTelegram
in interface ReceivingSubscription
applicationDataTelegram
- Telegrammpublic ReceiverState getState()
ReceivingSubscription
getState
in interface ReceivingSubscription
public void setState(ReceiverState receiverState, long centralTransmitterId)
ReceivingSubscription
setState
in interface ReceivingSubscription
receiverState
- neuer Statuspublic void sendStateTelegram(ReceiverState receiverState)
sendStateTelegram
in interface ReceivingSubscription
receiverState
- Empfängerstatuspublic de.bsvrz.dav.daf.communication.lowLevel.telegrams.BaseSubscriptionInfo getBaseSubscriptionInfo()
Subscription
getBaseSubscriptionInfo
in interface Subscription
public boolean isAllowed()
Subscription
isAllowed
in interface Subscription
public de.bsvrz.dav.daf.communication.protocol.UserLogin getAuthenticationState()
Subscription
getAuthenticationState
in interface Subscription
public java.lang.String toString()
toString
in class java.lang.Object