public interface NetworkInterface extends Entity, FailureProneEntity
FailureProneEntity.FailureState
Modifier and Type | Method and Description |
---|---|
NetworkInterface |
clone()
The clone will have the same up and down links and ip / mask.
|
NetworkLink |
getDownLink()
Returns the down-link that is associated with this interface.
|
IpAddress |
getIp()
Returns the IP address of this networkInterface or null if no IP is set for this interface.
|
NetworkDevice |
getParent()
Returns the parent of this entity, or null if no parent is set
|
NetworkInterface |
getRemoteNetworkInterface()
Returns null or the remote interface that is connected to this interface through up-link or down-link.
|
NetworkLink |
getUpLink()
Returns the up-link that is associated with this interface.
|
void |
setDownLink(NetworkLink link)
Update the down-link associated with this interface.
This link is used when downloading (ie: receiving data) from the remote interface. |
void |
setIp(IpAddress ip) |
void |
setUpLink(NetworkLink link)
Update the up-link associated with this interface.
This link is used when uploading (ie: sending data) to the remote interface. |
getFailureState, setFailureState, supportsFailureStateUpdate
addEntity, getConfig, getConfigRec, getEntities, getId, getLogger, getName, getProperties, getProperty, getProperty, hasParentRec, lockParent, lockParentRec, removeEntity, setConfig, setName, setParent, setProperty, unlockParent, unlockParentRec, unsetProperty
addGlobalListener, addListener, cancelNotifications, cleanupListeners, disableNotifications, enableNotifications, getGlobalListeners, getListeners, isNotificationsDisabled, notify, notifyNow, removeAllGlobalListeners, removeAllListeners, removeAllListeners, removeGlobalListener, removeListener
addProbe, getProbe, getProbe, getProbes, removeProbe, removeProbe
NetworkInterface clone()
NetworkDevice getParent()
Entity
NetworkInterface getRemoteNetworkInterface()
NetworkLink getUpLink()
This link is used when uploading (ie: sending data) to the remote interface.
void setUpLink(NetworkLink link)
Will also ensure that the down-link of the remote network interface is the same as this interface's up-link. Thus,
you don't need to call setDownLink(NetworkLink)
on the remote interface after calling this.
link
- IllegalArgumentException
- if the given link cannot be assigned to this interface either because this interface
is not one of the end-points of the link, or if the the remote interface of the down-link is not the same as the one
that is specified in the given linkNetworkLink getDownLink()
This link is used when downloading (ie: receiving data) from the remote interface.
void setDownLink(NetworkLink link)
Will also ensure that the up-link of the remote network interface is the same as this interface's down-link. Thus,
you don't need to call setUpLink(NetworkLink)
on the remote interface after calling this.
link
- IllegalArgumentException
- if the given link cannot be assigned to this interface either because this interface
is not one of the end-points of the link, or if the the remote interface of the up-link is not the same as the one
that is specified in the given linkIpAddress getIp()
void setIp(IpAddress ip)