public class IPDiscoveryAutoBinding extends IPAutoInterfaceCommons implements DiscoveryAutoBinding
| Modifier and Type | Field and Description |
|---|---|
protected HashMap |
listener2ipv4DiscoveryBindings |
protected HashMap |
listener2ipv4OutgoingDiscoveryInfos |
protected HashMap |
listener2ipv6DiscoveryBindings |
protected HashMap |
listener2ipv6OutgoingDiscoveryInfos |
addressFamilies, comManId, credentialInfo, interfaceNames, interfaces, IPADDRESS_FAMILY_IPV4, IPADDRESS_FAMILY_IPV6, ipv4, ipv6, listenerList, loopbackInterfaces, suppressLoopbackIfPossible, suppressMulticastDisabledInterfaces| Constructor and Description |
|---|
IPDiscoveryAutoBinding() |
IPDiscoveryAutoBinding(java.lang.String comManId) |
IPDiscoveryAutoBinding(java.lang.String comManId,
java.lang.String[] interfacesNames,
java.lang.String[] addressFamilies,
boolean suppressLoopbackIfPossible) |
addInterface, equals, getAddressFamilies, getAllInterfaces, getCommunicationManagerId, getCredentialInfo, getInterfaceNames, getInterfaces, getLoopbackInterfaces, hashCode, initAutoBinding, interfaceNamesContainsIfaceName, isIpv4, isIpv6, isSuppressLoopbackIfPossible, isSuppressMulticastDisabledInterfaces, setCredentialInfo, startUpdates, stopUpdatesclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetCommunicationManagerIdgetCredentialInfo, setCredentialInfoprotected HashMap listener2ipv4DiscoveryBindings
protected HashMap listener2ipv6DiscoveryBindings
protected HashMap listener2ipv4OutgoingDiscoveryInfos
protected HashMap listener2ipv6OutgoingDiscoveryInfos
public IPDiscoveryAutoBinding()
public IPDiscoveryAutoBinding(java.lang.String comManId)
public IPDiscoveryAutoBinding(java.lang.String comManId,
java.lang.String[] interfacesNames,
java.lang.String[] addressFamilies,
boolean suppressLoopbackIfPossible)
public java.lang.Integer getKey()
AutoBindingAutoBinding.getKey in interface AutoBindingpublic void addAutoBindingListener(AutoBindingAndOutgoingDiscoveryInfoListener bindingListener, NetworkChangeListener networkListener)
AutoBindingAutoBindingAndOutgoingDiscoveryInfoListener to the AutoBinding. This
listener will be announced if changes for bindings are performed.addAutoBindingListener in interface AutoBindingpublic void removeAutoBindingListener(AutoBindingAndOutgoingDiscoveryInfoListener bindingListener, NetworkChangeListener networkListener)
AutoBindingAutoBindingAndOutgoingDiscoveryInfoListener from the AutoBinding.removeAutoBindingListener in interface AutoBindingpublic Iterator getDiscoveryBindings(AutoBindingAndOutgoingDiscoveryInfoListener listener)
DiscoveryAutoBindingDiscoveryBindings will created and Iterator will
returned, else the Iterator for created DiscoveryBindings for AutoBindingAndOutgoingDiscoveryInfoListener will returned.getDiscoveryBindings in interface DiscoveryAutoBindingIterator over DiscoveryBindingspublic Iterator getOutgoingDiscoveryInfos(AutoBindingAndOutgoingDiscoveryInfoListener listener)
DiscoveryAutoBindingOutgoingDiscoveryInfos will created and Iterator will
returned, else the Iterator for created OutgoingDiscoveryInfos for AutoBindingAndOutgoingDiscoveryInfoListener will returned.getOutgoingDiscoveryInfos in interface DiscoveryAutoBindingIterator over OutgoingDiscoveryInfospublic int getDiscoveryBindingsCount(AutoBindingAndOutgoingDiscoveryInfoListener listener)
DiscoveryAutoBindingDiscoveryBindings for AutoBindingAndOutgoingDiscoveryInfoListener.getDiscoveryBindingsCount in interface DiscoveryAutoBindingDiscoveryBindingspublic int getOutgoingDiscoveryInfosCount(AutoBindingAndOutgoingDiscoveryInfoListener listener)
DiscoveryAutoBindingOutgoingDiscoveryInfos for AutoBindingAndOutgoingDiscoveryInfoListener.getOutgoingDiscoveryInfosCount in interface DiscoveryAutoBindingOutgoingDiscoveryInfospublic void announceNewInterfaceAvailable(java.lang.Object iface)
NetworkChangeListenerannounceNewInterfaceAvailable in interface NetworkChangeListenerpublic void announceInterfaceNotAvailable(NetworkInterface iface)
NetworkInterfaceChangeListenerNetworkInterface is not available.announceInterfaceNotAvailable in interface NetworkInterfaceChangeListenerpublic void announceInterfaceUp(NetworkInterface iface)
NetworkInterfaceChangeListenerNetworkInterface changed from down to up.announceInterfaceUp in interface NetworkInterfaceChangeListenerpublic void announceInterfaceDown(NetworkInterface iface)
NetworkInterfaceChangeListenerNetworkInterface changed from up to down.announceInterfaceDown in interface NetworkInterfaceChangeListenerpublic void announceAddressesDeleted(NetworkInterface iface, IPAddress[] deletedIPv4Addresses, IPAddress[] deletedIPv6Addresses)
NetworkInterfaceChangeListenerNetworkInterface are removed.announceAddressesDeleted in interface NetworkInterfaceChangeListenerpublic void announceAddressesAdded(NetworkInterface iface, IPAddress[] addedIPv4Addresses, IPAddress[] addedIPv6Addresses)
NetworkInterfaceChangeListenerNetworkInterface are added.announceAddressesAdded in interface NetworkInterfaceChangeListenerpublic void announceSupportsMulticastChanged(NetworkInterface iface)
NetworkInterfaceChangeListenerNetworkInterface changed.announceSupportsMulticastChanged in interface NetworkInterfaceChangeListenerpublic void announceAddressesChanged(NetworkInterface iface, HashMap changedIPv4Addresses, HashMap changedIPv6Addresses)
NetworkInterfaceChangeListenerNetworkInterface are changed.announceAddressesChanged in interface NetworkInterfaceChangeListenerpublic java.lang.String toString()
toString in class IPAutoInterfaceCommonspublic void saveToMemento(Memento m)
saveToMemento in interface MementoSupportsaveToMemento in class IPAutoInterfaceCommonspublic void readFromMemento(Memento m) throws java.io.IOException
readFromMemento in interface MementoSupportreadFromMemento in class IPAutoInterfaceCommonsjava.io.IOExceptionpublic java.lang.String getInfoText()
getInfoText in interface DiscoveryAutoBinding