de.bsvrz.dav.daf.main.impl.config
Class DafConfigurationCommunicationListenerSupport

java.lang.Object
  extended by de.bsvrz.dav.daf.main.impl.config.DafConfigurationCommunicationListenerSupport

public class DafConfigurationCommunicationListenerSupport
extends Object

Verwaltet die Listener für die Kommunikation mit der Komfiguration.

Author:
Kappich Systemberatung

Field Summary
(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 Summary
DafConfigurationCommunicationListenerSupport(SystemObject object)
           
 
Method Summary
 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()
           
private  void ensureUnsubscribedState()
           
 boolean isConfigurationCommunicationActive()
           
 void removeConfigurationCommunicationChangeListener(ConfigurationCommunicationChangeListener listener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_debug

private static final Debug _debug
DebugLogger für Debug-Ausgaben


_configComListeners

CopyOnWriteArrayList<ConfigurationCommunicationChangeListener> _configComListeners
Speichert alle Beobachter, die an Kommunikationsänderungen zu diesem Objekts interessiert sind.


_configurationCommunicationActive

private boolean _configurationCommunicationActive

NOT_SUBSCRIBED

private static final byte NOT_SUBSCRIBED
See Also:
Constant Field Values

SUBSCRIBED

private static final byte SUBSCRIBED
See Also:
Constant Field Values

MANAGED_IN_LOCAL_CONFIGURATION

private static final byte MANAGED_IN_LOCAL_CONFIGURATION
See Also:
Constant Field Values

MANAGED_IN_UNKNOWN_CONFIGURATION

private static final byte MANAGED_IN_UNKNOWN_CONFIGURATION
See Also:
Constant Field Values

_subscriptionState

private byte _subscriptionState

_object

private final SystemObject _object
Constructor Detail

DafConfigurationCommunicationListenerSupport

public DafConfigurationCommunicationListenerSupport(SystemObject object)
Method Detail

addConfigurationCommunicationChangeListener

public void addConfigurationCommunicationChangeListener(ConfigurationCommunicationChangeListener listener)
Parameters:
listener - Beobachter für Zustandsänderungen der Kommunikation.
See Also:
ConfigurationCommunicationInterface.isConfigurationCommunicationActive()

removeConfigurationCommunicationChangeListener

public void removeConfigurationCommunicationChangeListener(ConfigurationCommunicationChangeListener listener)
Parameters:
listener - Ein bisher für Zustandsänderungen der Kommunikation angemeldeter Beobachter.
See Also:
ConfigurationCommunicationInterface.removeConfigurationCommunicationChangeListener(de.bsvrz.dav.daf.main.config.ConfigurationCommunicationChangeListener)

configurationCommunicationChange

public 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.

Parameters:
object - Objekt (MutableSet oder DynamicObject) zu dessen verwaltenden Konfiguration sich der Kommunikationszustand geändert hat
configComStatus - der aktuelle Kommunikationszustand. True bedeutet die Kommunikation steht, false zeigt eine Unterbrechung der Kommunikation an

isConfigurationCommunicationActive

public boolean isConfigurationCommunicationActive()

ensureSubscribedState

private void ensureSubscribedState()

ensureUnsubscribedState

private void ensureUnsubscribedState()