LocalSubscription, ReceivingSubscription, Subscriptionpublic class LocalReceivingSubscription extends java.lang.Object implements LocalSubscription, ReceivingSubscription
| Constructor | 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 | 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,
long applicationId) |
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()
SubscriptiongetNodeId in interface Subscriptionpublic ConnectionState getConnectionState()
SubscriptiongetConnectionState in interface Subscriptionpublic long getCentralDistributorId()
SubscriptiongetCentralDistributorId in interface Subscriptionpublic void unsubscribe()
Subscriptionunsubscribe in interface Subscriptionpublic ApplicationCommunicationInterface getCommunication()
SubscriptiongetCommunication in interface LocalSubscriptiongetCommunication in interface Subscriptionpublic boolean isDrain()
ReceivingSubscriptiontrue zurück, wenn es sich um eine Senke handeltisDrain in interface ReceivingSubscriptiontrue, wenn es sich um eine Senke handelt, sonst (Empfänger) falsepublic de.bsvrz.dav.daf.main.ReceiveOptions getReceiveOptions()
ReceivingSubscriptiongetReceiveOptions in interface ReceivingSubscriptionpublic void sendDataTelegram(de.bsvrz.dav.daf.communication.lowLevel.telegrams.ApplicationDataTelegram applicationDataTelegram,
long applicationId)
ReceivingSubscriptionsendDataTelegram in interface ReceivingSubscriptionapplicationDataTelegram - TelegrammapplicationId - oder -1 falls nicht bekanntpublic ReceiverState getState()
ReceivingSubscriptiongetState in interface ReceivingSubscriptionpublic void setState(ReceiverState receiverState, long centralTransmitterId)
ReceivingSubscriptionsetState in interface ReceivingSubscriptionreceiverState - neuer Statuspublic void sendStateTelegram(ReceiverState receiverState)
sendStateTelegram in interface ReceivingSubscriptionreceiverState - Empfängerstatuspublic de.bsvrz.dav.daf.communication.lowLevel.telegrams.BaseSubscriptionInfo getBaseSubscriptionInfo()
SubscriptiongetBaseSubscriptionInfo in interface Subscriptionpublic boolean isAllowed()
SubscriptionisAllowed in interface Subscriptionpublic de.bsvrz.dav.daf.communication.protocol.UserLogin getAuthenticationState()
SubscriptiongetAuthenticationState in interface Subscriptionpublic java.lang.String toString()
toString in class java.lang.Object