Class NetworkDevices
java.lang.Object
org.pidome.server.system.hardware.HardwareComponent
org.pidome.server.system.hardware.network.NetworkDevices
Provider of network devices.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.pidome.server.system.hardware.HardwareComponent
HardwareComponent.Interface
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor for network devices. -
Method Summary
Modifier and TypeMethodDescriptionvoid
discover()
Performs discovery of the network devices on where it is installed.getInterfaceByKey(String key)
Get's a network interface by its registered key.void
start()
Starts a hardware interface.void
stop()
Stops a hardware interface.Methods inherited from class org.pidome.server.system.hardware.HardwareComponent
deregisterRoot, getConnectedPeripherals, getIdentifyingInterface, getPeripheralByKey, getPeripheralByPort, registerPeripheral, toString, unRegisterPeripheral
-
Constructor Details
-
NetworkDevices
Constructor for network devices.- Parameters:
root
- The root interface listener for availability.- Throws:
UnsupportedOperationException
- When network is unavailable to be used.
-
-
Method Details
-
discover
Performs discovery of the network devices on where it is installed.- Specified by:
discover
in classHardwareComponent
- Throws:
UnsupportedOperationException
- When discovery is not supported.
-
getInterfaceByKey
Get's a network interface by its registered key.- Parameters:
key
- The key registered in the peripheral.- Returns:
- The peripheral found.
-
start
public void start()Description copied from class:HardwareComponent
Starts a hardware interface.- Specified by:
start
in classHardwareComponent
-
stop
public void stop()Description copied from class:HardwareComponent
Stops a hardware interface.- Specified by:
stop
in classHardwareComponent
-