public class DafConfigurationCommunicationListenerSupport extends Object
Modifier and Type | Field and Description |
---|---|
(package private) CopyOnWriteArrayList<ConfigurationCommunicationChangeListener> |
_configComListeners
Speichert alle Beobachter, die an Kommunikationsänderungen zu diesem Objekts interessiert sind.
|
private boolean |
_configurationCommunicationActive |
private static Debug |
_debug
DebugLogger für Debug-Ausgaben
|
private SystemObject |
_object |
private byte |
_subscriptionState |
private static byte |
MANAGED_IN_LOCAL_CONFIGURATION |
private static byte |
MANAGED_IN_UNKNOWN_CONFIGURATION |
private static byte |
NOT_SUBSCRIBED |
private static byte |
SUBSCRIBED |
Constructor and Description |
---|
DafConfigurationCommunicationListenerSupport(SystemObject object) |
Modifier and Type | Method and Description |
---|---|
void |
addConfigurationCommunicationChangeListener(ConfigurationCommunicationChangeListener listener) |
void |
configurationCommunicationChange(ConfigurationCommunicationInterface object,
boolean configComStatus)
Schnittstelle um allen angemeldeten Listenern Bescheid zu geben, dass sich der Zustand der Kommunikation mit der verwaltenden Konfiguration
des angegebenen Objekts geändert hat.
|
private void |
ensureSubscribedState()
Stellt sicher, dass die Anmeldung auf Änderungen des Kommunikationsstatus bei der lokalen Konfiguration erfolgt ist.
|
private void |
ensureUnsubscribedState() |
boolean |
isConfigurationCommunicationActive() |
void |
removeConfigurationCommunicationChangeListener(ConfigurationCommunicationChangeListener listener) |
private static final Debug _debug
CopyOnWriteArrayList<ConfigurationCommunicationChangeListener> _configComListeners
private boolean _configurationCommunicationActive
private static final byte NOT_SUBSCRIBED
private static final byte SUBSCRIBED
private static final byte MANAGED_IN_LOCAL_CONFIGURATION
private static final byte MANAGED_IN_UNKNOWN_CONFIGURATION
private byte _subscriptionState
private final SystemObject _object
public DafConfigurationCommunicationListenerSupport(SystemObject object)
public void addConfigurationCommunicationChangeListener(ConfigurationCommunicationChangeListener listener)
listener
- Beobachter für Zustandsänderungen der Kommunikation.ConfigurationCommunicationInterface.isConfigurationCommunicationActive()
public void removeConfigurationCommunicationChangeListener(ConfigurationCommunicationChangeListener listener)
listener
- Ein bisher für Zustandsänderungen der Kommunikation angemeldeter Beobachter.ConfigurationCommunicationInterface.removeConfigurationCommunicationChangeListener(de.bsvrz.dav.daf.main.config.ConfigurationCommunicationChangeListener)
public void configurationCommunicationChange(ConfigurationCommunicationInterface object, boolean configComStatus)
object
- Objekt (MutableSet
oder DynamicObject
) zu dessen verwaltenden Konfiguration sich der Kommunikationszustand geändert hatconfigComStatus
- der aktuelle Kommunikationszustand. True bedeutet die Kommunikation steht, false zeigt eine Unterbrechung der Kommunikation anpublic boolean isConfigurationCommunicationActive()
private void ensureSubscribedState()
private void ensureUnsubscribedState()