public interface NetworkDevice extends Entity, FailureProneEntity, PoweredEntity
FailureProneEntity.FailureState
PoweredEntity.PowerState
Modifier and Type | Method and Description |
---|---|
NetworkDevice |
clone()
Creates a clone of this entity and sets its parent to null.
|
CloudProvider |
getCloudProvider()
Returns the
CloudProvider to whom this device belongs to, or null if this device does not belong to any CloudProvider . |
List<NetworkInterface> |
getInterfaces()
Returns the list of interfaces contained within this NetworkDevice.
|
RoutingProtocol |
getRoutingProtocol()
Returns the
RoutingProtocol associated with this NetworkDevice. |
boolean |
isRoutingEnabled()
Returns true if this device can route data received from one interface to another interface.
|
getFailureState, setFailureState, supportsFailureStateUpdate
getPowerState, setPowerState
addEntity, getConfig, getConfigRec, getEntities, getId, getLogger, getName, getParent, 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
NetworkDevice clone()
Entity
This is a deep clone method which also clones almost all children entities and sets their parents
to the newly created clone.
The only children which are not cloned are those implementing the UncloneableEntity
interface.
Implementations must ensure that the new clone will be independent from the current entity.
List<NetworkInterface> getInterfaces()
boolean isRoutingEnabled()
This flag is used by RoutingProtocol
s when looking for routes.
RoutingProtocol getRoutingProtocol()
RoutingProtocol
associated with this NetworkDevice.RoutingProtocol
associated with this NetworkDeviceCloudProvider getCloudProvider()
CloudProvider
to whom this device belongs to, or null if this device does not belong to any CloudProvider
.CloudProvider
to whom this device belongs to, or null