Uses of Class
org.cloudbus.cloudsim.hosts.network.NetworkHost
Package | Description |
---|---|
org.cloudbus.cloudsim.network |
Provides classes to define network assets, such
as different kinds of
AbstractSwitch
and also the NetworkTopology
that can be specified in some standard file format and read
using a implementation of TopologyReader . |
org.cloudbus.cloudsim.network.switches |
Provides classes that implement the
Switch interface
to allow creating Network Switches that compose a network topology. |
-
Uses of NetworkHost in org.cloudbus.cloudsim.network
Methods in org.cloudbus.cloudsim.network that return NetworkHost Modifier and Type Method Description NetworkHost
HostPacket. getDestination()
Gets the ID of theHost
that the packet is going to.NetworkHost
HostPacket. getSource()
Gets the ID of theHost
that this packet is coming from (the sender).Methods in org.cloudbus.cloudsim.network with parameters of type NetworkHost Modifier and Type Method Description void
HostPacket. setDestination(NetworkHost receiverHost)
Sets the ID of theHost
that the packet is going to.void
HostPacket. setSource(NetworkHost senderHost)
Sets the ID of theHost
that this packet is coming from (the sender).Constructors in org.cloudbus.cloudsim.network with parameters of type NetworkHost Constructor Description HostPacket(NetworkHost senderHost, VmPacket vmPacket)
Creates a new packet to be sent through the network between two hosts. -
Uses of NetworkHost in org.cloudbus.cloudsim.network.switches
Methods in org.cloudbus.cloudsim.network.switches that return NetworkHost Modifier and Type Method Description protected NetworkHost
AbstractSwitch. getVmHost(Vm vm)
Gets the Host where a VM is placed.Methods in org.cloudbus.cloudsim.network.switches that return types with arguments of type NetworkHost Modifier and Type Method Description java.util.List<NetworkHost>
EdgeSwitch. getHostList()
Gets a read-only list of Hosts connected to the switch.Methods in org.cloudbus.cloudsim.network.switches with parameters of type NetworkHost Modifier and Type Method Description protected void
AbstractSwitch. addPacketToSendToHost(NetworkHost host, HostPacket packet)
Adds a packet that will be sent to aNetworkHost
.void
EdgeSwitch. connectHost(NetworkHost host)
Connects aNetworkHost
to the switch, by adding it to theEdgeSwitch.getHostList()
.boolean
EdgeSwitch. disconnectHost(NetworkHost host)
Disconnects aNetworkHost
from the switch, by removing it from theEdgeSwitch.getHostList()
.protected java.util.List<HostPacket>
AbstractSwitch. getHostPacketList(NetworkHost host)
Gets the list of packets to be sent to a host.