public abstract class IPAutoInterfaceCommons extends java.lang.Object implements NetworkInterfaceChangeListener, NetworkChangeListener, MementoSupport
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String[] |
addressFamilies |
protected java.lang.String |
comManId |
protected CredentialInfo |
credentialInfo |
protected java.lang.String[] |
interfaceNames |
protected HashMap |
interfaces |
static java.lang.String |
IPADDRESS_FAMILY_IPV4 |
static java.lang.String |
IPADDRESS_FAMILY_IPV6 |
protected boolean |
ipv4 |
protected boolean |
ipv6 |
protected DataStructure |
listenerList |
protected HashMap |
loopbackInterfaces |
protected boolean |
suppressLoopbackIfPossible
if suppressLoopbackIfPossible is "true" loopback interface will not used for bindings if any
not loopback interfaces available.
|
protected boolean |
suppressMulticastDisabledInterfaces |
| Modifier | Constructor and Description |
|---|---|
protected |
IPAutoInterfaceCommons() |
protected |
IPAutoInterfaceCommons(java.lang.String comManId) |
protected |
IPAutoInterfaceCommons(java.lang.String comManId,
java.lang.String[] interfacesNames,
java.lang.String[] addressFamilies,
boolean suppressLoopbackIfPossible,
boolean suppressMulticastDisabledInterfaces) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addInterface(NetworkInterface iface) |
boolean |
equals(java.lang.Object obj) |
java.lang.String[] |
getAddressFamilies()
Returns all address families.
|
DataStructure |
getAllInterfaces()
Returns all Interfaces.
|
java.lang.String |
getCommunicationManagerId()
Returns the
CommunicationManager id. |
CredentialInfo |
getCredentialInfo()
Returns the
CredentialInfo. |
java.lang.String[] |
getInterfaceNames()
Returns all interface names.
|
DataStructure |
getInterfaces()
Returns all not loopback interfaces.
|
DataStructure |
getLoopbackInterfaces()
Returns all loopback interfaces.
|
int |
hashCode() |
protected void |
initAutoBinding(java.lang.String[] interfacesNames,
java.lang.String[] addressFamilies) |
protected boolean |
interfaceNamesContainsIfaceName(java.lang.String ifaceName) |
boolean |
isIpv4()
Returns whether ipv4 is enabled for this autoBinding.
|
boolean |
isIpv6()
Returns whether ipv6 is enabled for this autoBinding.
|
boolean |
isSuppressLoopbackIfPossible()
Returns whether suppress loopback interfaces if possible.
|
boolean |
isSuppressMulticastDisabledInterfaces()
Returns whether suppress multicast disabled interfaces.
|
void |
readFromMemento(Memento m) |
void |
saveToMemento(Memento m) |
void |
setCredentialInfo(CredentialInfo credentialInfo)
Sets the
CredentialInfo if given CredentialInfo is not null or CredentialInfo.EMPTY_CREDENTIAL_INFO. |
void |
startUpdates()
Announce all listener that updates can be perfomed from now.
|
void |
stopUpdates()
Announce all listener that no more updates will be announced from now.
|
java.lang.String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitannounceAddressesAdded, announceAddressesChanged, announceAddressesDeleted, announceInterfaceDown, announceInterfaceNotAvailable, announceInterfaceUp, announceSupportsMulticastChangedannounceNewInterfaceAvailablepublic static final java.lang.String IPADDRESS_FAMILY_IPV4
public static final java.lang.String IPADDRESS_FAMILY_IPV6
protected boolean ipv4
protected boolean ipv6
protected boolean suppressLoopbackIfPossible
protected boolean suppressMulticastDisabledInterfaces
protected java.lang.String[] interfaceNames
protected java.lang.String[] addressFamilies
protected HashMap interfaces
protected HashMap loopbackInterfaces
protected CredentialInfo credentialInfo
protected DataStructure listenerList
protected java.lang.String comManId
protected IPAutoInterfaceCommons()
protected IPAutoInterfaceCommons(java.lang.String comManId)
protected IPAutoInterfaceCommons(java.lang.String comManId,
java.lang.String[] interfacesNames,
java.lang.String[] addressFamilies,
boolean suppressLoopbackIfPossible,
boolean suppressMulticastDisabledInterfaces)
protected void initAutoBinding(java.lang.String[] interfacesNames,
java.lang.String[] addressFamilies)
protected void addInterface(NetworkInterface iface)
public java.lang.String getCommunicationManagerId()
CommunicationManager id.CommunicationManager idpublic CredentialInfo getCredentialInfo()
CredentialInfo.CredentialInfopublic void setCredentialInfo(CredentialInfo credentialInfo)
CredentialInfo if given CredentialInfo is not null or CredentialInfo.EMPTY_CREDENTIAL_INFO.credentialInfo - public DataStructure getAllInterfaces()
public DataStructure getInterfaces()
public DataStructure getLoopbackInterfaces()
protected boolean interfaceNamesContainsIfaceName(java.lang.String ifaceName)
public void startUpdates()
NetworkChangeListenerstartUpdates in interface NetworkChangeListenerpublic void stopUpdates()
NetworkChangeListenerstopUpdates in interface NetworkChangeListenerpublic java.lang.String[] getInterfaceNames()
public java.lang.String[] getAddressFamilies()
public boolean isIpv4()
public boolean isIpv6()
public boolean isSuppressLoopbackIfPossible()
public boolean isSuppressMulticastDisabledInterfaces()
public void saveToMemento(Memento m)
saveToMemento in interface MementoSupportpublic void readFromMemento(Memento m) throws java.io.IOException
readFromMemento in interface MementoSupportjava.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object