Class Switch
java.lang.Object
domain.Machine
domain.Network
domain.Switch
Represents a network switch in the system |
Représente un switch réseau dans le système.
- Author:
- FIGUEIRAS Jossua
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a Switch instance with explicit values | Crée une instance Switch avec des valeurs explicites.Creates a Switch instance from a SQL result set | Crée une instance Switch à partir d'un résultat SQL. -
Method Summary
Methods inherited from class Machine
addInDB, deleteMachine, getComponents, getHostname, getId, getIpAddress, getMacAdress, getMachine, getOs, getStatus, modifyInDb, whoami
-
Constructor Details
-
Switch
public Switch(int id, String hostname, String ip_address, String mac_adress, String os, String status) Creates a Switch instance with explicit values | Crée une instance Switch avec des valeurs explicites.- Parameters:
id- the unique identifier of the switch | l'identifiant unique du switchhostname- the hostname of the switch | le nom d'hôte du switchip_address- the IP address of the switch | l'adresse IP du switchmac_adress- the MAC address of the switch | l'adresse MAC du switchos- the operating system installed on the switch | le système d'exploitation installé sur le switchstatus- the current status of the switch | le statut actuel du switch
-
Switch
Creates a Switch instance from a SQL result set | Crée une instance Switch à partir d'un résultat SQL.- Parameters:
sqlResult- the SQL result set containing switch data | le résultat SQL contenant les données du switch
-